Package geomss.j3d

Class GeomShape3D

  • Direct Known Subclasses:
    PointArrayShape3D, TriangleListShape3D, TriangleShape3D

    public class GeomShape3D
    extends org.jogamp.java3d.Shape3D
    A Shape3D object that maintains a reference to the GeomElement with which it is associated.

    Modified by: Joseph A. Huwaldt

    Version:
    June 4, 2023
    Author:
    Joseph A. Huwaldt, Date: October 19, 2011
    • Field Summary

      • Fields inherited from class org.jogamp.java3d.Shape3D

        ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_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
      GeomShape3D​(GeomElement parent)
      Constructs a Shape3D node with default parameters.
      GeomShape3D​(GeomElement parent, org.jogamp.java3d.Geometry geometry)
      Constructs and initializes a Shape3D node with the specified geometry component and a null appearance component.
      GeomShape3D​(GeomElement parent, org.jogamp.java3d.Geometry geometry, org.jogamp.java3d.Appearance appearance)
      Constructs and initializes a Shape3D node with the specified geometry and appearance components.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jogamp.java3d.Node cloneNode​(boolean forceDuplicate)
      Used to create a new instance of the node.
      GeomElement getGeometryElement()
      Return a reference to the GeomSS geometry element that this shape is associated with.
      • Methods inherited from class org.jogamp.java3d.Shape3D

        addGeometry, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
      • Methods inherited from class org.jogamp.java3d.Node

        cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
      • Methods inherited from class org.jogamp.java3d.SceneGraphObject

        clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GeomShape3D

        public GeomShape3D​(GeomElement parent)
        Constructs a Shape3D node with default parameters.
        Parameters:
        parent - The GeomSS geometry element that this Shape3D is associated with.
      • GeomShape3D

        public GeomShape3D​(GeomElement parent,
                           org.jogamp.java3d.Geometry geometry)
        Constructs and initializes a Shape3D node with the specified geometry component and a null appearance component. The list of geometry components is initialized with the specified geometry component as the single element with an index of 0. A null appearance component specifies that default values are used for all appearance attributes.
        Parameters:
        parent - The GeomSS geometry element that this Shape3D is associated with.
        geometry - The geometry component with which to initialize this shape node.
      • GeomShape3D

        public GeomShape3D​(GeomElement parent,
                           org.jogamp.java3d.Geometry geometry,
                           org.jogamp.java3d.Appearance appearance)
        Constructs and initializes a Shape3D node with the specified geometry and appearance components. The list of geometry components is initialized with the specified geometry component as the single element with an index of 0.
        Parameters:
        parent - The GeomSS geometry element that this Shape3D is associated with.
        geometry - The geometry component with which to initialize this shape node.
        appearance - The appearance component of the shape node.
    • Method Detail

      • getGeometryElement

        public GeomElement getGeometryElement()
        Return a reference to the GeomSS geometry element that this shape is associated with.
        Returns:
        A reference to the GeomElement that this shape is associated with.
      • cloneNode

        public org.jogamp.java3d.Node cloneNode​(boolean forceDuplicate)
        Used to create a new instance of the node. This routine is called by cloneTree to duplicate the current node. cloneNode should be overridden by any user sub-classed objects.
        Overrides:
        cloneNode in class org.jogamp.java3d.Shape3D
        Parameters:
        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.
        Returns:
        A new instance of this Java3D node.