Module imp3d

Interface Transformation

All Known Implementing Classes:
ArgShoot, Arrange, Axis, AxisBase, BlockColor, BlockScale, Box, Cell, CollectionDisplay, CollectionMesh, CollectionPoint, ColoredNull, Cone, CSGNode, Cylinder, DTGShoot, F, F0, FAdd, FirmamentNode, FlexNode, FMul, Frustum, FrustumBase, FrustumIrregular, GPP, GraphInstance, GridClonerNode, GRotation, GRSVertex, GWedge, HDir, Horn, Hydra, Instance, Instance3D, Label, Lamella, LeafLineImpl, LeafMeshImpl, LeafPointImpl, Legend, LightModelVisualizer, LightNode, Line, M, M0, MAdd, Mark, MeshNode, Minus, MMul, Move, MRel, MTGNode, MTGRoot, Null, NullWithShaderNode, NumericLabel, NURBSCurve, NURBSSurface, Parallelogram, Patch, PhiBall, Plane, Plus, Point, PointCloud, PointCloudD, PointCloudImpl, Polygon, PrismRectangular, RD, RG, RH, RL, RN, RO, Rotate, Rotate, Rotation, RP, RU, RV, RV0, RVAdd, RVMul, Scale, Scale, SensorNode, ShadedNull, Shoot, Sky, Sphere, SphereSegment, SphereSegmentSolid, Supershape, TextBlock, TextLabel, TextLabelBase, ToolRoot3D, TransformTool, Translate, Translate, Tree, Tropism, TurtleStep, URotation, Vertex, VoronoiCell, VoxelSpaceNode

public interface Transformation
This interface represents affine 3D coordinate transformations for an object in a graph. The preTransform is applied to the post-transformation of the object's parent in the scene hierarchy in order to obtain the transformation of the object. The postTransform is applied to this transformation in order to obtain the object's post-transformation.
Author:
Ole Kniemeyer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    postTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, Matrix4d parent, GraphState gs)
    Implements the change from object's transformation in to the object's post-transformation out.
    void
    preTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, GraphState gs)
    Implements the change from the parent's post-transformation in to the object's transformation out.
  • Method Details

    • preTransform

      void preTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, GraphState gs)
      Implements the change from the parent's post-transformation in to the object's transformation out.
      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

      void postTransform(Object object, boolean asNode, Matrix4d in, Matrix4d out, Matrix4d parent, GraphState gs)
      Implements the change from object's transformation in to the object's post-transformation out.
      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
      parent - the post-transformation of the object's parent
      gs - the graph state in which the computation has to be done