Class GRActor3D

    • Field Detail

      • _viewScreen

        protected ViewScreen3D _viewScreen
        The actor displaying the scene, if there is one.
    • Constructor Detail

      • GRActor3D

        public GRActor3D​(CompositeEntity container,
                         java.lang.String name)
                  throws IllegalActionException,
                         NameDuplicationException
        Create a new GRActor3D in the specified container with the specified name. The name must be unique within the container or an exception is thrown. The container argument must not be null, or a NullPointerException will be thrown.
        Parameters:
        container - The container.
        name - The name of this actor within the container.
        Throws:
        IllegalActionException - If this actor cannot be contained by the proposed container (see the setContainer() method).
        NameDuplicationException - If the name coincides with an entity already in the container.
    • Method Detail

      • _addChild

        protected void _addChild​(javax.media.j3d.Node node)
                          throws IllegalActionException
        Add the node argument as a child to the encapsulated Java3D node in this actor. Derived GR Actors should override this method if they aggregate graphical nodes to treat a group as a unit.
        Parameters:
        node - The node to add.
        Throws:
        IllegalActionException - Always thrown for this base class.
      • _getNodeObject

        protected abstract javax.media.j3d.Node _getNodeObject()
        Return the Java3D node associated with this actor. Derived GR Actors should override this method.
        Returns:
        The Java3D node associated with this actor.