Class CollectionMesh

All Implemented Interfaces:
ResolutionSensitive, Transformation, Pickable, Polygonizable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class CollectionMesh extends CollectionDisplay implements Polygonizable
A collection to display a graph of polygonizable object into meshes. The mesh is cached and can be reused. It require a lot of memory
See Also:
  • Field Details

    • visibleSides

      protected int visibleSides
    • polygons

      protected Polygons polygons
    • $TYPE

      public static final Node.NType $TYPE
    • visibleSides$FIELD

      public static final Node.NType.Field visibleSides$FIELD
    • polygons$FIELD

      public static final Node.NType.Field polygons$FIELD
  • Constructor Details

    • CollectionMesh

      public CollectionMesh()
  • Method Details

    • drawImpl

      protected void drawImpl(Object object, boolean asNode, RenderState rs)
      Specified by:
      drawImpl in class CollectionDisplay
    • pickImpl

      protected void pickImpl(Object object, boolean asNode, Point3d origin, Vector3d direction, Matrix4d transformation, PickList list)
      Specified by:
      pickImpl in class CollectionDisplay
    • getVertices

      public FloatListArray getVertices(RenderState rs, View v)
    • getPolygonizableSource

      public ContextDependent getPolygonizableSource(GraphState gs)
      Description copied from interface: Polygonizable
      Defines the data source on which the polygonization depends.
      Specified by:
      getPolygonizableSource in interface Polygonizable
      Parameters:
      gs - the current graph state
      Returns:
      the data source
    • getPolygonization

      public Polygonization getPolygonization()
      Description copied from interface: Polygonizable
      Defines the algorithm which is used to decompose the data into a polygon mesh representation.
      Specified by:
      getPolygonization in interface Polygonizable
      Returns:
      polygonization algorithm
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Null
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Null
      Returns:
      new instance of class of this node
    • getVisibleSides

      public int getVisibleSides()
    • setVisibleSides

      public void setVisibleSides(int value)
    • getPolygons

      public Polygons getPolygons()
    • setPolygons

      public void setPolygons(Polygons value)