Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

GITransition Class Reference

Stores information about the graphical object of the initial transition. More...

#include <GITransition.h>

Inheritance diagram for GITransition::

GObject Transition List of all members.

Public Methods

 GITransition ()
 Constructor.

 GITransition (State *, GState *)
 Constructor. More...

 ~GITransition ()
 Destructor.

void getEndPos (double &x, double &y)
 Gets coordinates of end point.

void setEndPos (double x, double y)
 Sets coordinates of end point.

void setEndPosX (double x)
 Sets the x coordinate of the end point.

void setEndPosY (double y)
 Sets the y coordinate of the end point.

void move (double, double)
 Moves object by x rightwards and y downwards.

bool contains (double, double)
 Checks if a point lies upon the initial transition. More...

int onControlPoint (double, double, double)
 Checks if a point lies upon one of the control points. More...

QString getToolTipInfo ()
 Returns the tooltip string for this object.

QRect getToolTipRect (const QPoint &)
 Returns the tooltip rectangle.


Private Attributes

double endx
 End x position.

double endy
 End y position.


Detailed Description

Stores information about the graphical object of the initial transition.


Constructor & Destructor Documentation

GITransition::GITransition State * s,
GState * e
 

Constructor.

Initialises GITransition object.

Parameters:
s   starting state (must be phantom state)
e   end state (is initial state)


Member Function Documentation

bool GITransition::contains double x,
double y
 

Checks if a point lies upon the initial transition.

Parameters:
x   x coordinate of the point
y   y coordinate of the point

int GITransition::onControlPoint double x,
double y,
double scale
 

Checks if a point lies upon one of the control points.

Parameters:
x   x coordinate of the point
y   y coordinate of the point
scale   current scale factor


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:15 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001