Module imp3d

Class GlobalTransformation

All Implemented Interfaces:
Described, KeyDescription, Comparable

public final class GlobalTransformation extends ObjectTreeAttribute<Matrix34dPair>
  • Field Details

  • Method Details

    • derive

      protected Matrix34dPair derive(Object object, boolean asNode, Matrix34dPair parentValue, Matrix34dPair placeIn, GraphState gs)
      Specified by:
      derive in class ObjectTreeAttribute<Matrix34dPair>
    • dependsOn

      public boolean dependsOn(Attribute[] a)
      Specified by:
      dependsOn in class ObjectTreeAttribute<Matrix34dPair>
    • getInitialValue

      protected Matrix34dPair getInitialValue(GraphState gs)
      Specified by:
      getInitialValue in class ObjectTreeAttribute<Matrix34dPair>
    • get

      public static Matrix34d get(Object object, boolean asNode, GraphState gs, boolean post)
      Returns the global coordinate system of object. If post is true, the coordinate system behind the object is returned, which is the basis for the coordinate system of children, otherwise the method returns the coordinate system in which the shape of the object is defined.

      The returned matrix must not be modified.

      Parameters:
      object - an object in the scene graph
      asNode - is object a node or an edge?
      gs - the current graph state
      post - include the post-transformation (behind the object)?
      Returns:
      global coordinate system, matrix must not be modified
    • getParentValue

      public static Matrix34d getParentValue(Object object, boolean asNode, GraphState gs, boolean post)
      Returns the global coordinate system of the parent of object. If post is true, the coordinate system behind the parent is returned, which is the basis for the coordinate system of object, otherwise the method returns the coordinate system in which the shape of the parent is defined.

      The returned matrix must not be modified.

      Parameters:
      object - an object in the scene graph
      asNode - is object a node or an edge?
      gs - the current graph state
      post - include the post-transformation (behind the parent)?
      Returns:
      global coordinate system of parent, matrix must not be modified