- 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 TypeMethodDescriptionvoid
postTransform
(Object object, boolean asNode, Matrix4d in, Matrix4d out, Matrix4d parent, GraphState gs) Implements the change from object's transformationin
to the object's post-transformationout
.void
preTransform
(Object object, boolean asNode, Matrix4d in, Matrix4d out, GraphState gs) Implements the change from the parent's post-transformationin
to the object's transformationout
.
-
Method Details
-
preTransform
Implements the change from the parent's post-transformationin
to the object's transformationout
.- Parameters:
object
- the object for which the transformation is computedasNode
- isobject
a node or an edge?in
- the post-transformation of the object's parentout
- the tranformation of the object to be computedgs
- 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 transformationin
to the object's post-transformationout
.- Parameters:
object
- the object for which the transformation is computedasNode
- isobject
a node or an edge?in
- the transformation of the objectout
- the post-tranformation of the object to be computedparent
- the post-transformation of the object's parentgs
- the graph state in which the computation has to be done
-