Class GRTransform2D

    • Field Detail

      • accumulate

        public Parameter accumulate
        Boolean value determining whether transformations are accumulated or reset for each firing.
      • sceneGraphIn

        public TypedIOPort sceneGraphIn
        The input port for connecting to other GR Actors in the scene graph.
      • sceneGraphOut

        public TypedIOPort sceneGraphOut
        The output port for connecting to other GR Actors in the scene graph.
    • Method Detail

      • _isAccumulating

        protected boolean _isAccumulating()
                                   throws IllegalActionException
        Return the value of the accumulate parameter.
        Returns:
        the accumulation mode.
        Throws:
        IllegalActionException - If the value of some parameters can't be obtained
      • _applyInitialTransform

        protected abstract void _applyInitialTransform​(Figure figure)
                                                throws IllegalActionException
        Set the initial transform of the given figure. This method is invoked by this base class during the initialize() method. Derived classes should implement it to provide class-specific behavior.
        Parameters:
        figure - The figure to transform.
        Throws:
        IllegalActionException - If the value of some parameters can't be obtained.
      • _applyTransform

        protected abstract void _applyTransform​(Figure figure)
                                         throws IllegalActionException
        Consume input tokens, and transform the given figure according to the current state of the transform. This method is invoked by this base classes during the fire() method. Derived classes should implement it to provide class-specific behavior.
        Parameters:
        figure - The figure to transform.
        Throws:
        IllegalActionException - If the value of some parameters can't be obtained.