|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.CustomWidget
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_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,
buoy.widget.RowContainer p,
EditingWindow fr)
|
|
SceneViewer(Scene s,
buoy.widget.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(buoy.event.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. |
| Methods inherited from class buoy.widget.CustomWidget |
|---|
isOpaque, setMaximumSize, setMinimumSize, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getMaximumSize, getName, getParent, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SceneViewer(Scene s,
buoy.widget.RowContainer p,
EditingWindow fr)
public SceneViewer(Scene s,
buoy.widget.RowContainer p,
EditingWindow fr,
boolean forceSoftwareRendering)
| Method Detail |
|---|
public EditingWindow getEditingWindow()
public Scene getScene()
getScene in class ViewerCanvaspublic void rebuildCameraList()
public ObjectInfo[] getCameras()
public void setOrientation(int which)
setOrientation in class ViewerCanvaspublic double[] estimateDepthRange()
estimateDepthRange in class ViewerCanvaspublic Vec3 getDefaultRotationCenter()
ViewerCanvasViewerCanvas.getRotationCenter() returns null.
getDefaultRotationCenter in class ViewerCanvaspublic void updateImage()
ViewerCanvas
updateImage in class ViewerCanvas
public void beginDraggingBox(java.awt.Point p,
boolean square)
public void mouseClicked(buoy.event.MouseClickedEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||