Module imp3d

Class Axis

All Implemented Interfaces:
Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable
Direct Known Subclasses:
Box, FrustumBase, Lamella, Parallelogram

public abstract class Axis extends AxisBase
See Also:
  • Field Details

    • length

      protected float length
    • startPosition

      protected float startPosition
    • endPosition

      protected float endPosition
    • $TYPE

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

      public static final Node.NType.Field length$FIELD
    • startPosition$FIELD

      public static final Node.NType.Field startPosition$FIELD
    • endPosition$FIELD

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

    • Axis

      public Axis()
    • Axis

      public Axis(Transform3D transform)
  • Method Details

    • getPivotShift

      protected float getPivotShift(Object object, boolean asNode, GraphState gs)
    • preTransform

      public void preTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, GraphState gs)
      Description copied from interface: Transformation
      Implements the change from the parent's post-transformation in to the object's transformation out.
      Specified by:
      preTransform in interface Transformation
      Overrides:
      preTransform in class Null
      Parameters:
      object - the object for which the transformation is computed
      asNode - is object a node or an edge?
      in - the post-transformation of the object's parent
      out - the tranformation of the object to be computed
      gs - the graph state in which the computation has to be done
    • postTransform

      public void postTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, Matrix4d pre, GraphState gs)
      Description copied from interface: Transformation
      Implements the change from object's transformation in to the object's post-transformation out.
      Specified by:
      postTransform in interface Transformation
      Overrides:
      postTransform in class Null
      Parameters:
      object - the object for which the transformation is computed
      asNode - is object a node or an edge?
      in - the transformation of the object
      out - the post-tranformation of the object to be computed
      pre - the post-transformation of the object's parent
      gs - the graph state in which the computation has to be done
    • setEndPoints

      public void setEndPoints(Tuple3d start, Tuple3d end)
    • setEndPoints

      public void setEndPoints(double xs, double ys, double zs, double xe, double ye, double ze)
    • setEndPoints

      public void setEndPoints(Matrix4d coords, Tuple3d target)
    • getLength

      public float getLength()
    • setLength

      public void setLength(float value)
    • getStartPosition

      public float getStartPosition()
    • setStartPosition

      public void setStartPosition(float value)
    • getEndPosition

      public float getEndPosition()
    • setEndPosition

      public void setEndPosition(float value)