|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCustomWidget
artofillusion.ViewerCanvas
artofillusion.ObjectViewer
public abstract class ObjectViewer
The ObjectViewer class is the abstract superclass of components which display a single object and allow the user to edit it.
Field Summary |
---|
Fields inherited from class artofillusion.ViewerCanvas |
---|
backgroundColor, disabledColor, handleColor, highlightColor, highValueColor, lineColor, lowValueColor, RENDER_FLAT, RENDER_RENDERED, RENDER_SMOOTH, RENDER_TEXTURED, RENDER_TRANSPARENT, RENDER_WIREFRAME, specialHighlightColor, surfaceColor, surfaceRGBColor, transparentColor, VIEW_BACK, VIEW_BOTTOM, VIEW_FRONT, VIEW_LEFT, VIEW_OTHER, VIEW_RIGHT, VIEW_TOP |
Constructor Summary | |
---|---|
ObjectViewer(MeshEditController controller,
RowContainer p)
|
Method Summary | |
---|---|
void |
beginDraggingSelection(java.awt.Point p,
boolean square)
Begin dragging a selection region. |
void |
endDraggingSelection()
Finish dragging a selection region. |
double[] |
estimateDepthRange()
Estimate the range of depth values that the camera will need to render. |
MeshEditController |
getController()
Get the controller which maintains the state for this viewer. |
CoordinateSystem |
getDisplayCoordinates()
Get the coordinate system in which the object is displayed. |
boolean |
getFreehandSelection()
Get whether freehand selection mode is currently in use. |
Scene |
getScene()
Get the scene this object is part of, or null if there is none. |
boolean |
getSceneVisible()
Get whether the entire scene is visible. |
boolean |
getUseWorldCoords()
Get whether to use world coordinates. |
void |
previewObject()
|
boolean |
selectionRegionContains(java.awt.Point p)
Determine whether the selection region contains the specified point. |
boolean |
selectionRegionIntersects(java.awt.Point p1,
java.awt.Point p2)
Determine whether the selection region intersects the segment specified by the 2 points. |
void |
setFreehandSelection(boolean freehand)
Set whether to use freehand selection mode. |
void |
setScene(Scene sc,
ObjectInfo thisObject)
Set the scene this object is part of. |
void |
setSceneVisible(boolean visible)
Set whether the entire scene is visible. |
void |
setUseWorldCoords(boolean use)
Set whether to use world coordinates. |
void |
updateImage()
Subclasses should override this to draw the contents of the canvas, but should begin by calling super.updateImage() to display the grid. |
void |
viewChanged(boolean selectionOnly)
This is called when the content of the view has changed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectViewer(MeshEditController controller, RowContainer p)
Method Detail |
---|
public MeshEditController getController()
public double[] estimateDepthRange()
estimateDepthRange
in class ViewerCanvas
public void viewChanged(boolean selectionOnly)
ViewerCanvas
viewChanged
in class ViewerCanvas
selectionOnly
- if true, the only change to the view is what is currently selectedpublic void updateImage()
ViewerCanvas
updateImage
in class ViewerCanvas
public CoordinateSystem getDisplayCoordinates()
public boolean getFreehandSelection()
public void setFreehandSelection(boolean freehand)
public Scene getScene()
getScene
in class ViewerCanvas
public void setScene(Scene sc, ObjectInfo thisObject)
public boolean getSceneVisible()
public void setSceneVisible(boolean visible)
public boolean getUseWorldCoords()
public void setUseWorldCoords(boolean use)
public void beginDraggingSelection(java.awt.Point p, boolean square)
public void endDraggingSelection()
public boolean selectionRegionContains(java.awt.Point p)
public boolean selectionRegionIntersects(java.awt.Point p1, java.awt.Point p2)
The selection intersects the line if either:
public void previewObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |