public class J3DTriangle extends J3DGeomGroup<GeomTriangle>
Modified by: Joseph A. Huwaldt
USERDATA_KEY
Constructor and Description |
---|
J3DTriangle(GeomSSCanvas3D canvas,
GeomTriangle geometry)
Construct a J3DTriangle using the specified GeomTriangle as a reference.
|
Modifier and Type | Method and Description |
---|---|
Node |
cloneNode(boolean forceDuplicate)
Creates a new instance of the node.
|
void |
setDisplayed(boolean visible)
Sets the display of this geometry group to either displayed (true) or not displayed
(false).
|
void |
setMirrored(boolean mirrored)
Set the display of a copy of this geometry mirrored across the XZ plane to either
DISPLAYED (true) or NOT_DISPLAYED (false).
|
void |
setRenderType(RenderType type)
Set the render type used for this group.
|
getDefaultRenderingPrefs, getGeomElement, getRenderingPrefs, getRenderType, isDisplayed, isMirrored, setDefaultRenderingPrefs, setDrawTolerance, setLineColor, setLineWidth, setPointColor, setPointSize
public J3DTriangle(GeomSSCanvas3D canvas, GeomTriangle geometry)
canvas
- The canvas that the geometry is being rendered into.geometry
- The GeomSS geometry to be turned into a Java3D node.public void setDisplayed(boolean visible)
setDisplayed
in class J3DGeomGroup<GeomTriangle>
visible
- Flag indicating if the geometry is displayed or not.public void setMirrored(boolean mirrored)
setMirrored
in class J3DGeomGroup<GeomTriangle>
mirrored
- Flag indicating if the mirrored geometry should be displayed or
not.J3DGeomGroup.isMirrored()
,
J3DGeomGroup.internalSetMirrored(boolean)
public void setRenderType(RenderType type)
setRenderType
in class J3DGeomGroup<GeomTriangle>
type
- Value indicating the way that some objects should be rendered.J3DGeomGroup.getRenderType()
public Node cloneNode(boolean forceDuplicate)
cloneTree
to duplicate the current node.forceDuplicate
- when set to true
, causes the
duplicateOnCloneTree
flag to be ignored. When
false
, the value of each node's
duplicateOnCloneTree
variable determines whether
NodeComponent data is duplicated or copied.