OpenASIP  2.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ConnectionFigure Class Reference

#include <ConnectionFigure.hh>

Inheritance diagram for ConnectionFigure:
Inheritance graph
Collaboration diagram for ConnectionFigure:
Collaboration graph

Public Member Functions

virtual ~ConnectionFigure ()
 
void setSource (Figure *figure)
 
void setTarget (Figure *figure)
 
Figuresource () const
 
Figuretarget () const
 
- Public Member Functions inherited from Figure
 Figure ()
 
virtual ~Figure ()
 
wxPoint location () const
 
void setLocation (wxPoint point)
 
void setX (int x)
 
void setY (int y)
 
void setPreferredX (int x)
 
bool xSet () const
 
void clearXSetFlag ()
 
virtual wxRect bounds () const
 
virtual wxRect virtualBounds () const
 
void setBounds (wxSize bounds)
 
void setWidth (int width)
 
void setHeight (int height)
 
virtual void addChild (Figure *child)
 
int childCount () const
 
Figurechild (int index) const
 
virtual void layout (wxDC *dc)
 
virtual void draw (wxDC *dc)
 
void highlight (const wxColour &colour)
 
void clearHighlight ()
 
void setOptions (MachineCanvasOptions *options)
 
MachineCanvasOptionsoptions ()
 

Protected Member Functions

 ConnectionFigure ()
 
- Protected Member Functions inherited from Figure
virtual void drawSelf (wxDC *dc)
 
void drawChildren (wxDC *dc)
 
virtual void layoutSelf (wxDC *)
 
virtual void layoutChildren (wxDC *)
 

Protected Attributes

Figuresource_
 Source of connection. More...
 
Figuretarget_
 Target of connection. More...
 
- Protected Attributes inherited from Figure
wxPoint location_
 Top-left location of the Figure's bounding rectangle. More...
 
wxSize size_
 wxSize of the Figure's bounding rectangle. More...
 
wxSize minSize_
 Figure's minimum size. More...
 
std::vector< Figure * > children_
 Figure's children. More...
 
bool xSet_
 Tells if x-coordinate has been fixed. More...
 
bool laidOut_
 Tells whether the Figure and its children have been laid out or not. More...
 
bool drawn_
 Tells whether the Figure and its children have been drawn or not. More...
 
wxColour highlight_
 Highlight colour. More...
 
bool highlighted_
 Tells if the figure is highlighted. More...
 
MachineCanvasOptionsoptions_
 Options which are used for customizing figures. More...
 

Private Member Functions

ConnectionFigureoperator= (ConnectionFigure &old)
 Assignment not allowed. More...
 
 ConnectionFigure (ConnectionFigure &old)
 Copying not allowed. More...
 

Detailed Description

Figure of a connection.

Definition at line 44 of file ConnectionFigure.hh.

Constructor & Destructor Documentation

◆ ~ConnectionFigure()

ConnectionFigure::~ConnectionFigure ( )
virtual

The Destructor.

Definition at line 48 of file ConnectionFigure.cc.

48  {
49 }

◆ ConnectionFigure() [1/2]

ConnectionFigure::ConnectionFigure ( )
protected

The Constructor.

Definition at line 41 of file ConnectionFigure.cc.

41  :
42  Figure(), source_(NULL), target_(NULL){
43 }

◆ ConnectionFigure() [2/2]

ConnectionFigure::ConnectionFigure ( ConnectionFigure old)
private

Copying not allowed.

Member Function Documentation

◆ operator=()

ConnectionFigure& ConnectionFigure::operator= ( ConnectionFigure old)
private

Assignment not allowed.

◆ setSource()

void ConnectionFigure::setSource ( Figure figure)

◆ setTarget()

void ConnectionFigure::setTarget ( Figure figure)

◆ source()

Figure* ConnectionFigure::source ( ) const

◆ target()

Figure* ConnectionFigure::target ( ) const

Member Data Documentation

◆ source_

Figure* ConnectionFigure::source_
protected

◆ target_

Figure* ConnectionFigure::target_
protected

The documentation for this class was generated from the following files:
ConnectionFigure::target_
Figure * target_
Target of connection.
Definition: ConnectionFigure.hh:58
ConnectionFigure::source_
Figure * source_
Source of connection.
Definition: ConnectionFigure.hh:56
Figure::Figure
Figure()
Definition: Figure.cc:44