public class GridPlane extends RenderableComponentBase
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
GridPlane(RigidTransform3d trans,
Vector2d size,
Vector2d resolution) |
| Modifier and Type | Method and Description |
|---|---|
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
static RenderProps |
defaultRenderProps(GridPlane comp) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
AxisAngle |
getOrientation()
Gets the orientation of the display
|
Point3d |
getPosition()
Gets the 3D position of the centre of the display
|
Vector2d |
getResolution()
Gets the resolution of the display, integers (nx,ny) corresponding
to the number of divisions along the x and y axes
|
Vector2d |
getSize()
Gets the size of the display grid
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
void |
setGridToWorld(RigidTransform3d X)
Sets the transform between the display grid and World
|
void |
setOrientation(AxisAngle axisAng)
Sets the orientation of the display
|
void |
setPosition(Point3d pos)
Sets the 3D position of the centre of the display
|
void |
setResolution(Vector2d res)
Sets the resolution fo teh display, integers (nx, ny) corresponding
to the number of divisions along the x and y axes.
|
void |
setSize(Vector2d size)
Sets the size of the display grid
|
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
copy, defaultRenderPropsAreNull, getRenderHints, getRenderProps, getSelection, isSelectable, isVisible, numSelectionQueriesNeeded, prerender, setRenderProps, setVisible, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static PropertyList myProps
public GridPlane(RigidTransform3d trans, Vector2d size, Vector2d resolution)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class RenderableComponentBasepublic static RenderProps defaultRenderProps(GridPlane comp)
public RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropscreateRenderProps in class RenderableComponentBasepublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerender in class RenderableComponentBaserenderer - provides the functionality used to perform the rendering.flags - flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT and
Renderer.SORT_FACES.public Vector2d getSize()
public void setSize(Vector2d size)
public Vector2d getResolution()
public void setResolution(Vector2d res)
public Point3d getPosition()
public void setPosition(Point3d pos)
public AxisAngle getOrientation()
public void setOrientation(AxisAngle axisAng)
public void setGridToWorld(RigidTransform3d X)
public void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderableupdateBounds in interface IsRenderableupdateBounds in class RenderableComponentBasepmin - minimum pointpmax - maximum point