Class CollectionDisplayHandler

java.lang.Object
de.grogra.graph.impl.Edge
de.grogra.graph.impl.Node
de.grogra.mesh.renderer.handler.CollectionDisplayHandler
All Implemented Interfaces:
ResolutionSensitive, Pickable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable
Direct Known Subclasses:
CollectionMeshHandler, CollectionPointHandler, FloatArrayHandler

public abstract class CollectionDisplayHandler extends Node implements Renderable, Pickable, ResolutionSensitive
A collectiondisplay object. The node is the parent
See Also:
  • Field Details

    • update

      protected transient boolean update
    • $TYPE

      public static final Node.NType $TYPE
  • Constructor Details

    • CollectionDisplayHandler

      public CollectionDisplayHandler()
  • Method Details

    • init

      public CollectionDisplayHandler init(Node p)
    • getNode

      protected Node getNode()
    • setNode

      public void setNode(Node n)
    • getState

      public ResolutionSensitive.State getState()
      Specified by:
      getState in interface ResolutionSensitive
    • update

      public static void update(Item item, Object info, Context ctx)
    • setState

      public void setState(ResolutionSensitive.State s)
      Specified by:
      setState in interface ResolutionSensitive
    • getUpdate

      public boolean getUpdate()
    • setUpdate

      public void setUpdate(boolean b)
    • dispose

      public abstract void dispose()
    • createNew

      public abstract CollectionDisplayHandler createNew(Node parent)
    • draw

      public void draw(Object object, boolean asNode, RenderState rs)
      Specified by:
      draw in interface Renderable
    • drawImpl

      protected abstract void drawImpl(Object object, boolean asNode, RenderState rs)
    • pick

      public void pick(Object object, boolean asNode, Point3d origin, Vector3d direction, Matrix4d transformation, PickList list)
      Description copied from interface: Pickable
      Computes intersections of a given ray with this shape.
      Specified by:
      pick in interface Pickable
      Parameters:
      object - the object of which this shape is an attribute
      asNode - true iff object is a node
      origin - the origin of the ray, in local coordinates
      direction - the direction of the ray, in local coordinates
      transformation - the transformation from local coordinates to world coordinates
      list - the list to which intersections have to be added
    • pickImpl

      protected abstract void pickImpl(Object object, boolean asNode, Point3d origin, Vector3d direction, Matrix4d transformation, PickList list)