Module imp3d

Class Null

All Implemented Interfaces:
Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable
Direct Known Subclasses:
BlockColor, BlockScale, ColoredNull, GridClonerNode, Label, LightModelVisualizer, LightNode, ShadedNull

public class Null extends Node implements Transformation
See Also:
  • Field Details

  • Constructor Details

    • Null

      public Null(Transform3D transform)
    • Null

      public Null()
    • Null

      public Null(double x, double y, double z)
  • Method Details

    • setTransform

      public void setTransform(TVector3d t)
    • setTransform

      public void setTransform(TMatrix4d t)
    • setTransform

      public void setTransform(double x, double y, double z)
      This method sets the local transformation to a TVector3d, i.e., a translation.
      Parameters:
      x - the x-coordinate of the translation vector
      y - the y-coordinate of the translation vector
      z - the z-coordinate of the translation vector
    • setTranslation

      public void setTranslation(double x, double y, double z)
      This method sets the local transformation to a TVector3d, i.e., a translation.
      Parameters:
      x - the x-coordinate of the translation vector
      y - the y-coordinate of the translation vector
      z - the z-coordinate of the translation vector
    • setRotation

      public void setRotation(double x, double y, double z)
      This method sets the local transformation to a rotation about the coordinate axes
      Parameters:
      x - the x-coordinate of the translation vector
      y - the y-coordinate of the translation vector
      z - the z-coordinate of the translation vector
    • setTransform

      public void setTransform(Tuple3d t)
    • setTransform

      public void setTransform(Tuple3f t)
    • setTransform

      public void setTransform(Matrix3d t)
    • setTransform

      public void setTransform(Matrix4d t)
    • setScale

      public void setScale(float scale)
    • getTranslation

      public Vector3d getTranslation()
    • 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
      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
      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
    • getLocalTransformation

      public Matrix4d getLocalTransformation()
      Returns a new transformation matrix which contains the local transformations of the node.
      Returns:
    • 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 Node
      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 Node
      Returns:
      new instance of class of this node
    • getTransform

      public Transform3D getTransform()
    • setTransform

      public void setTransform(Transform3D value)
    • isTransforming

      public boolean isTransforming()
    • setTransforming

      public void setTransforming(boolean v)