Package geomss.j3d
Class J3DPointArray
- java.lang.Object
-
- org.jogamp.java3d.SceneGraphObject
-
- org.jogamp.java3d.Node
-
- org.jogamp.java3d.Group
-
- org.jogamp.java3d.BranchGroup
-
- geomss.j3d.J3DGeomGroup<PointArray>
-
- geomss.j3d.J3DPointArray
-
public class J3DPointArray extends J3DGeomGroup<PointArray>
A Java 3D node that represents a PointArray in a Java 3D scene graph.Modified by: Joseph A. Huwaldt
- Version:
- June 4, 2023
- Author:
- Joseph A. Huwaldt, Date: April 13, 2009
-
-
Field Summary
-
Fields inherited from class geomss.j3d.J3DGeomGroup
USERDATA_KEY
-
Fields inherited from class org.jogamp.java3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
-
Fields inherited from class org.jogamp.java3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
-
-
Constructor Summary
Constructors Constructor Description J3DPointArray(GeomSSCanvas3D canvas, PointArray geometry)
Construct a J3DPointArray using the specified PointArray as a reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jogamp.java3d.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.-
Methods inherited from class geomss.j3d.J3DGeomGroup
getDefaultRenderingPrefs, getGeomElement, getRenderingPrefs, getRenderType, isDisplayed, isMirrored, setDefaultRenderingPrefs, setDrawTolerance, setLineColor, setLineWidth, setPointColor, setPointSize
-
Methods inherited from class org.jogamp.java3d.BranchGroup
compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest
-
Methods inherited from class org.jogamp.java3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
-
Methods inherited from class org.jogamp.java3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
-
-
-
-
Constructor Detail
-
J3DPointArray
public J3DPointArray(GeomSSCanvas3D canvas, PointArray geometry)
Construct a J3DPointArray using the specified PointArray as a reference.- Parameters:
canvas
- The canvas that the geometry is being rendered into.geometry
- The GeomSS geometry to be turned into a Java3D node.
-
-
Method Detail
-
setDisplayed
public void setDisplayed(boolean visible)
Sets the display of this geometry group to either displayed (true) or not displayed (false).- Overrides:
setDisplayed
in classJ3DGeomGroup<PointArray>
- Parameters:
visible
- Flag indicating if the geometry is displayed or not.
-
setMirrored
public 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).- Overrides:
setMirrored
in classJ3DGeomGroup<PointArray>
- Parameters:
mirrored
- Flag indicating if the mirrored geometry should be displayed or not.- See Also:
J3DGeomGroup.isMirrored()
,J3DGeomGroup.internalSetMirrored(boolean)
-
setRenderType
public void setRenderType(RenderType type)
Set the render type used for this group.- Overrides:
setRenderType
in classJ3DGeomGroup<PointArray>
- Parameters:
type
- Value indicating the way that PointArray objects should be rendered.- See Also:
J3DGeomGroup.getRenderType()
-
cloneNode
public org.jogamp.java3d.Node cloneNode(boolean forceDuplicate)
Creates a new instance of the node. This routine is called bycloneTree
to duplicate the current node.- Overrides:
cloneNode
in classorg.jogamp.java3d.BranchGroup
- Parameters:
forceDuplicate
- when set totrue
, causes theduplicateOnCloneTree
flag to be ignored. Whenfalse
, the value of each node'sduplicateOnCloneTree
variable determines whether NodeComponent data is duplicated or copied.- Returns:
- A new instance of this Java3D node.
-
-