Class CircularSweep3D

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

    public class CircularSweep3D
    extends GRShadedShape
    This actor contains the geometry and appearance specifications for a circularly swept object. 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 polyline determines the silhouette of the object. One will need to enter an array of coordinates in the X-Y plane to specify the contour for this silhouette. The parameter angleSpan determines the angle in which the silhouette is swept. The parameter slices determines the number of polygonal slices used in the sweep.

    Since:
    Ptolemy II 1.0
    Version:
    $Id$
    Author:
    C. Fong (contributor: Edward A. Lee)
    Pt.AcceptedRating:
    Red (chf)
    Pt.ProposedRating:
    Red (chf)
    • Field Detail

      • polyline

        public Parameter polyline
        The line segment array that is to be swept. This is an array of doubles that defaults to a square with sides of 0.25 shifted right from the origin so its left edge is at x = 0.25. This results in an annular sweep.
      • angleSpan

        public Parameter angleSpan
        The span of sweep angle. This is a double that defaults to "2.0 * PI".
      • slices

        public Parameter slices
        The number of slices. This is an integer that defaults to 32. Higher numbers result in a smoother sweep.
    • 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 circular sweep.
        Specified by:
        _getNodeObject in class GRActor3D
        Returns:
        the Java3D circular sweep