Public Types | Public Member Functions | Protected Attributes

TransitionLoop Class Reference

#include <transitionLoop.h>

Inheritance diagram for TransitionLoop:
Collaboration diagram for TransitionLoop:

List of all members.

Public Types

enum  ELoopType {
  eLoop,
  eCLoop,
  eLoopVar
}

Public Member Functions

 TransitionLoop (Editor *parent, State *state, const QString &label, int type=eLoop, bool dimmed=false, int direction=0)
 ~TransitionLoop ()
virtual void adjust ()
 The only method where graphics changes are computed.
virtual int getDirection () const
virtual StategetEndState () const
virtual QString getTypeName () const
virtual QString getVCCommand () const
 VauCanSon-G transition command.
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
virtual QPainterPath path () const
 Return path mapped to scene.
virtual void setDirection (int d)
virtual void setLabelPosition ()

Protected Attributes

int direction
int loopType

Detailed Description

Definition at line 6 of file transitionLoop.h.


Member Enumeration Documentation

Enumerator:
eLoop 
eCLoop 
eLoopVar 

Definition at line 9 of file transitionLoop.h.


Constructor & Destructor Documentation

TransitionLoop::TransitionLoop ( Editor parent,
State state,
const QString &  label,
int  type = eLoop,
bool  dimmed = false,
int  direction = 0 
)
TransitionLoop::~TransitionLoop (  ) 

Definition at line 24 of file transitionLoop.cpp.

References DBGLOG.


Member Function Documentation

void TransitionLoop::adjust (  )  [virtual]
int TransitionLoop::getDirection (  )  const [virtual]

Reimplemented from Transition.

Definition at line 118 of file transitionLoop.cpp.

References direction.

Referenced by getVCCommand().

Here is the caller graph for this function:

virtual State* TransitionLoop::getEndState (  )  const [inline, virtual]

Reimplemented from Transition.

Definition at line 27 of file transitionLoop.h.

References Transition::startState.

QString TransitionLoop::getTypeName (  )  const [virtual]

Implements Transition.

Definition at line 101 of file transitionLoop.cpp.

References eCLoop, eLoopVar, and loopType.

QString TransitionLoop::getVCCommand (  )  const [virtual]
void TransitionLoop::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [virtual]
virtual QPainterPath TransitionLoop::path (  )  const [inline, virtual]

Return path mapped to scene.

Reimplemented from Transition.

Definition at line 29 of file transitionLoop.h.

References Transition::p.

void TransitionLoop::setDirection ( int  d  )  [virtual]

Reimplemented from Transition.

Definition at line 111 of file transitionLoop.cpp.

References adjust(), direction, and setLabelPosition().

Here is the call graph for this function:

void TransitionLoop::setLabelPosition (  )  [virtual]

Reimplemented from Transition.

Definition at line 123 of file transitionLoop.cpp.

References direction, EAST, LabelX::getHeight(), LabelX::getWidth(), Transition::label, NORTH, NORTH_EAST, and LabelX::posParam().

Referenced by adjust(), and setDirection().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int TransitionLoop::direction [protected]

Definition at line 38 of file transitionLoop.h.

Referenced by adjust(), getDirection(), setDirection(), and setLabelPosition().

int TransitionLoop::loopType [protected]

Definition at line 37 of file transitionLoop.h.

Referenced by adjust(), getTypeName(), and getVCCommand().


The documentation for this class was generated from the following files: