Package org.jzy3d.plot3d.transform
Class Transform
java.lang.Object
org.jzy3d.plot3d.transform.Transform
A
Transform stores a sequence of Transformers, that are of concrete type
Rotate, Scale, Translate.
When a Transform is executed by default, it first loads the identity matrix before executing the
sequence of Transformers.- Author:
- Martin Pernollet
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize a list of Transformer.Initialize a list of Transformer with the sequence hold by the given Transform.Transform(Transformer transformer) Initialize a list of Transformer with a single Transformer as sequence.Transform(Transformer... transformer) -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends a Transform to the current Transform.voidadd(Transformer next) Appends a Transformer to the sequence that this Transform must performs.Apply the transformations to the input coordinatevoidLoad the identity matrix and executes the stored sequence of Transformer.voidtoString()
-
Constructor Details
-
Transform
public Transform()Initialize a list of Transformer. -
Transform
Initialize a list of Transformer with a single Transformer as sequence. -
Transform
-
Transform
Initialize a list of Transformer with the sequence hold by the given Transform.
-
-
Method Details
-
add
Appends a Transformer to the sequence that this Transform must performs.- Parameters:
next-
-
add
Appends a Transform to the current Transform.- Parameters:
next-
-
execute
Load the identity matrix and executes the stored sequence of Transformer.- Parameters:
painter- TODO
-
execute
-
compute
Apply the transformations to the input coordinate -
toString
-