Class Rotate3D

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class Rotate3D
    extends GRTransform
    Conceptually, this actor takes 3D geometry in its input and produces a rotated version in its output. In reality, this actor encapsulates a Java3D TransformGroup which is converted into a node in the resulting Java3D scene graph. This actor will only have meaning in the GR domain. The parameters axisDirectionX,axisDirectionY, and axisDirectionZ determine the direction of the axis of rotation. The parameters baseX, baseY, and baseZ determine the pivot point for axis of the rotation. The parameter initialAngle determines the initial angle of rotation.
    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    C. Fong
    Pt.AcceptedRating:
    Red (chf)
    Pt.ProposedRating:
    Red (chf)
    • Field Detail

      • angle

        public TypedIOPort angle
        The amount of rotation during firing. If this transform is in accumulate mode, the angle value is accumulated for each firing.
      • initialAngle

        public Parameter initialAngle
        The initial angle of rotation. This parameter should contain a DoubleToken. The default value of this parameter is 0.0.
      • axisDirection

        public Parameter axisDirection
        The direction of the axis of rotation. The parameter should contain a DoubleMatrixToken The default value of this parameter is [0.0, 1.0, 0.0]
      • pivotLocation

        public PortParameter pivotLocation
        The pivot location of the axis of rotation. This parameter should contain a DoubleMatrixToken The default value of this parameter is [0.0, 0.0, 0.0]
    • Method Detail

      • _addChild

        protected void _addChild​(javax.media.j3d.Node node)
        Connect other Java3D nodes as children of the encapsulated node in this actor.
        Overrides:
        _addChild in class GRActor3D
        Parameters:
        node - The child Java3D node.
      • _getNodeObject

        protected javax.media.j3d.Node _getNodeObject()
        Return the encapsulated Java3D node of this 3D actor. The encapsulated node for this actor TransformGroup
        Specified by:
        _getNodeObject in class GRActor3D
        Returns:
        the Java3D TransformGroup