|
||||||||||
| 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.ObjectPreviewCanvas
public class ObjectPreviewCanvas
The ObjectPreviewCanvas class displays a single object which the user can move and rotate, but not edit.
| 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 | |
|---|---|
ObjectPreviewCanvas(ObjectInfo obj)
Create an ObjectPreviewCanvas for previewing a particular object. |
|
ObjectPreviewCanvas(ObjectInfo obj,
buoy.widget.RowContainer p)
Create an ObjectPreviewCanvas for previewing a particular object. |
|
| Method Summary | |
|---|---|
double[] |
estimateDepthRange()
Estimate the range of depth values that the camera will need to render. |
ObjectInfo |
getObject()
Get the object being previewed. |
void |
objectChanged()
This should be called whenever the object has changed. |
void |
setObject(Object3D obj)
Set the object being previewed. |
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 ObjectPreviewCanvas(ObjectInfo obj)
public ObjectPreviewCanvas(ObjectInfo obj,
buoy.widget.RowContainer p)
| Method Detail |
|---|
public void objectChanged()
public ObjectInfo getObject()
public void setObject(Object3D obj)
public double[] estimateDepthRange()
estimateDepthRange in class ViewerCanvaspublic void updateImage()
ViewerCanvas
updateImage in class ViewerCanvas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||