|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCustomWidget
artofillusion.ViewerCanvas
artofillusion.SceneViewer
public class SceneViewer
The SceneViewer class is a component which displays a view of a Scene.
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 | |
---|---|
SceneViewer(Scene s,
RowContainer p,
EditingWindow fr)
|
|
SceneViewer(Scene s,
RowContainer p,
EditingWindow fr,
boolean forceSoftwareRendering)
|
Method Summary | |
---|---|
void |
beginDraggingBox(java.awt.Point p,
boolean square)
Begin dragging a box. |
double[] |
estimateDepthRange()
Estimate the range of depth values that the camera will need to render. |
ObjectInfo[] |
getCameras()
Get the list of cameras in the scene which can be used as predefined orientations. |
Vec3 |
getDefaultRotationCenter()
Get the default location around which the view should be rotated. |
EditingWindow |
getEditingWindow()
Get the EditingWindow in which this canvas is displayed. |
Scene |
getScene()
Get the Scene displayed in this canvas. |
void |
mouseClicked(MouseClickedEvent e)
Double-clicking on object should bring up its editor. |
void |
rebuildCameraList()
Add all SceneCameras in the scene to list of available views. |
void |
setOrientation(int which)
Deal with selecting a SceneCamera from the choice menu. |
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 SceneViewer(Scene s, RowContainer p, EditingWindow fr)
public SceneViewer(Scene s, RowContainer p, EditingWindow fr, boolean forceSoftwareRendering)
Method Detail |
---|
public EditingWindow getEditingWindow()
public Scene getScene()
getScene
in class ViewerCanvas
public void rebuildCameraList()
public ObjectInfo[] getCameras()
public void setOrientation(int which)
setOrientation
in class ViewerCanvas
public double[] estimateDepthRange()
estimateDepthRange
in class ViewerCanvas
public Vec3 getDefaultRotationCenter()
ViewerCanvas
ViewerCanvas.getRotationCenter()
returns null.
getDefaultRotationCenter
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 void beginDraggingBox(java.awt.Point p, boolean square)
public void mouseClicked(MouseClickedEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |