Perspective


This method is the Perspective class constructor. It creates an instance of Perspective.

Syntax:

class Perspective ( );

class Perspective ( Applet a );

Input:

a: Applet (optional)

Return:

class

Example:

/* A basic extension of the java.applet.Applet class */
import java.awt.*;
import java.applet.*;
import tdg.Perspective;
public class Applet1 extends Applet
{
     public void init()
     {
          setLayout(null);
          setSize(300,200);
          perspective1 = new tdg.Perspective();
          perspective1.setBounds(0,0,300,200);
          add(perspective1);
     }
     TDG.Perspective perspective1;
}

perspectiveEvent()


This method is called to listen for Perspective events.

Syntax:

void perspectiveEvent ( TDGEvent e );

Input:

e: A location to store the event. On return, it will be set to the perspective event. Currently defined events include:

TDG_SELECTION_CHANGE: Perspective selection changes

TDG_APPLY_COLOR: Apply color change to current selection

TDG_3DPRESET_CHANGED: 3D Preset Changed

TDG_GRAPHTYPE_CHANGED: GraphType was changed

TDG_CALC_PERFORMED: CALC has been performed

TDG_EDITOR_STATE_TOGGLE: Editing state has been toggled

TDG_MOUSE_RELEASED: Notify listener of mouse release

TDG_MOUSE_DRAGGED: Notify listener of mouse drag

TDG_MOUSE_PRESSED: Notify listener of mouse key pressed

Notes:

See Appendix D for example code that processes these events.

Return:

None

Example:

See FullMetalListener() in Appendix D