|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCustomWidget
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_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 | |
---|---|
ObjectPreviewCanvas(ObjectInfo obj)
Create an ObjectPreviewCanvas for previewing a particular object. |
|
ObjectPreviewCanvas(ObjectInfo obj,
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectPreviewCanvas(ObjectInfo obj)
public ObjectPreviewCanvas(ObjectInfo obj, RowContainer p)
Method Detail |
---|
public void objectChanged()
public ObjectInfo getObject()
public void setObject(Object3D obj)
public double[] estimateDepthRange()
estimateDepthRange
in class ViewerCanvas
public void updateImage()
ViewerCanvas
updateImage
in class ViewerCanvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |