Class Scale3D

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

    public class Scale3D
    extends GRTransform
    Conceptually, this actor takes 3D geometry in its input and produces a scaled 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. Scaling can be done uniformly or non-uniformly. Uniform scaling scales the input geometry equally in all directions. Uniform scaling is done through modification of the scaleFactor parameter. Non-uniform scaling involves preferential scaling of the input geometry in a specified Cartesian axis. Non-uniform scaling is done through modification of the xScale, yScale, and zScale parameters.
    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    C. Fong
    Pt.AcceptedRating:
    Red (chf)
    Pt.ProposedRating:
    Red (chf)
    • Field Detail

      • scaleInput

        public TypedIOPort scaleInput
        The amount of rescaling during firing. If this transform is in accumulate mode, the scaling value is accumulated
      • scaleFactor

        public Parameter scaleFactor
        The scale factor. This parameter should contain a DoubleToken. The default value of this parameter is the DoubleToken 1.0
      • xScale

        public Parameter xScale
        The scale factor in the Cartesian x-axis. This parameter should contain a DoubleToken. The default value of this parameter is the DoubleToken 1.0
      • yScale

        public Parameter yScale
        The scale factor in the Cartesian y-axis. This parameter should contain a DoubleToken. The default value of this parameter is the DoubleToken 1.0
      • zScale

        public Parameter zScale
        The scale factor in the Cartesian z-axis. This parameter should contain a DoubleToken. The default value of this parameter is the DoubleToken 1.0
      • _transformNode

        protected javax.media.j3d.TransformGroup _transformNode
        The encapsulated Java 3D node of this actor.
    • Method Detail

      • _addChild

        protected void _addChild​(javax.media.j3d.Node node)
        Add a scene graph child node to this actor.
        Overrides:
        _addChild in class GRActor3D
        Parameters:
        node - The child node to be attached.
      • _getNodeObject

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