Class PolyCylinder3D

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

    public class PolyCylinder3D
    extends GRShadedShape
    This actor produces a generalized cylindrical shape in the GR domain. The output port is used to connect this actor to the Java3D scene graph. This actor will only have meaning in the GR domain. The parameter polygon determines the polygonal shape of the base of this generalized cylinder. One will need to enter an array of coordinates in the X-Y plane to specify the polygonal shape for the base. The parameter thickness determines the thickness of the generalized cylinder.
    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    C. Fong and Edward A. Lee
    Pt.AcceptedRating:
    Yellow (liuxj)
    Pt.ProposedRating:
    Green (eal)
    • Field Detail

      • polygon

        public Parameter polygon
        The polygonal shape of the base This parameter should contain a ArrayToken with an even number of DoubleToken values. The default shape for this polygon is a triangle
      • thickness

        public Parameter thickness
        The thickness of the generalized cylinder This parameter should contain a DoubleToken. The default value of this parameter is the DoubleToken 0.3
    • Method Detail

      • _getNodeObject

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