de.jreality.plugin.content
Class ContentTools

java.lang.Object
  extended by Plugin
      extended by de.jreality.plugin.content.ContentTools

public class ContentTools
extends Plugin

A plugin that adds tools to the viewer: rotate, drag, encompass, snap to grid, and pick faces, edges, and vertices to the scene; and corresponding enable/disable buttons to the tool bar and to the "Content" menu.


Constructor Summary
ContentTools()
           
 
Method Summary
 Class<? extends PerspectiveFlavor> getPerspective()
           
 PluginInfo getPluginInfo()
           
 void install()
           
 void install(Controller c)
           
 boolean isDragEnabled()
           
 boolean isEncompassEnabled()
           
 boolean isPickEdges()
           
 boolean isPickFaces()
           
 boolean isPickVertices()
           
 boolean isRotationEnabled()
           
 boolean isSnapToGrid()
           
 void restoreStates(Controller c)
           
 void setDragEnabled(boolean b)
           
 void setEncompassEnabled(boolean b)
           
 void setPickEdges(boolean b)
           
 void setPickFaces(boolean b)
           
 void setPickVertices(boolean b)
           
 void setRotationEnabled(boolean b)
           
 void setSnapToGrid(boolean b)
           
 void storeStates(Controller c)
           
 void uninstall(Controller c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTools

public ContentTools()
Method Detail

install

public void install()

setSnapToGrid

public void setSnapToGrid(boolean b)

isSnapToGrid

public boolean isSnapToGrid()

setPickVertices

public void setPickVertices(boolean b)

setPickEdges

public void setPickEdges(boolean b)

setPickFaces

public void setPickFaces(boolean b)

isDragEnabled

public boolean isDragEnabled()

setDragEnabled

public void setDragEnabled(boolean b)

isRotationEnabled

public boolean isRotationEnabled()

setRotationEnabled

public void setRotationEnabled(boolean b)

isPickFaces

public boolean isPickFaces()

isPickEdges

public boolean isPickEdges()

isPickVertices

public boolean isPickVertices()

isEncompassEnabled

public boolean isEncompassEnabled()

setEncompassEnabled

public void setEncompassEnabled(boolean b)

install

public void install(Controller c)
             throws Exception
Throws:
Exception

uninstall

public void uninstall(Controller c)
               throws Exception
Throws:
Exception

getPluginInfo

public PluginInfo getPluginInfo()

restoreStates

public void restoreStates(Controller c)
                   throws Exception
Throws:
Exception

storeStates

public void storeStates(Controller c)
                 throws Exception
Throws:
Exception

getPerspective

public Class<? extends PerspectiveFlavor> getPerspective()