PeriDyno 1.2.1
Loading...
Searching...
No Matches
WtConnectionGraphicsObject Class Reference

Graphic Object for connection. Adds itself to scene. More...

#include <WtConnectionGraphicsObject.h>

Collaboration diagram for WtConnectionGraphicsObject:

Public Types

enum  { Type = 65538 }
 

Public Member Functions

 WtConnectionGraphicsObject (WtFlowScene &scene, WtConnection &connection, Wt::WPainter *painter)
 
virtual ~WtConnectionGraphicsObject ()
 
int type () const
 
WtConnectionconnection ()
 
Wt::WRectF boundingRect () const
 
Wt::WPainterPath shape () const
 
void setGeometryChanged ()
 
void move ()
 Updates the position of both ends.
 
void lock (bool locked)
 
void setPos (int x, int y)
 
void setPos (Wt::WPointF pos)
 
bool isSelected () const
 

Protected Member Functions

void paint (Wt::WPainter *painter)
 

Private Member Functions

void addGraphicsEffect ()
 

Private Attributes

WtFlowScene_scene
 
WtConnection_connection
 
Wt::WPointF _origin = Wt::WPointF(0, 0)
 
Wt::WPainter * _painter
 

Detailed Description

Graphic Object for connection. Adds itself to scene.

Definition at line 27 of file WtConnectionGraphicsObject.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Definition at line 35 of file WtConnectionGraphicsObject.h.

Constructor & Destructor Documentation

◆ WtConnectionGraphicsObject()

WtConnectionGraphicsObject::WtConnectionGraphicsObject ( WtFlowScene & scene,
WtConnection & connection,
Wt::WPainter * painter )

Definition at line 226 of file WtConnectionGraphicsObject.cpp.

Here is the call graph for this function:

◆ ~WtConnectionGraphicsObject()

WtConnectionGraphicsObject::~WtConnectionGraphicsObject ( )
virtual

Definition at line 245 of file WtConnectionGraphicsObject.cpp.

Member Function Documentation

◆ addGraphicsEffect()

void WtConnectionGraphicsObject::addGraphicsEffect ( )
private

Definition at line 322 of file WtConnectionGraphicsObject.cpp.

◆ boundingRect()

Wt::WRectF WtConnectionGraphicsObject::boundingRect ( ) const

Definition at line 255 of file WtConnectionGraphicsObject.cpp.

◆ connection()

WtConnection & WtConnectionGraphicsObject::connection ( )

Definition at line 250 of file WtConnectionGraphicsObject.cpp.

Here is the caller graph for this function:

◆ isSelected()

bool WtConnectionGraphicsObject::isSelected ( ) const
inline

Definition at line 74 of file WtConnectionGraphicsObject.h.

Here is the caller graph for this function:

◆ lock()

void WtConnectionGraphicsObject::lock ( bool locked)

Definition at line 308 of file WtConnectionGraphicsObject.cpp.

◆ move()

void WtConnectionGraphicsObject::move ( )

Updates the position of both ends.

Definition at line 274 of file WtConnectionGraphicsObject.cpp.

Here is the call graph for this function:

◆ paint()

void WtConnectionGraphicsObject::paint ( Wt::WPainter * painter)
protected

Definition at line 315 of file WtConnectionGraphicsObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setGeometryChanged()

void WtConnectionGraphicsObject::setGeometryChanged ( )

Definition at line 268 of file WtConnectionGraphicsObject.cpp.

◆ setPos() [1/2]

void WtConnectionGraphicsObject::setPos ( int x,
int y )
inline

Definition at line 53 of file WtConnectionGraphicsObject.h.

Here is the call graph for this function:

◆ setPos() [2/2]

void WtConnectionGraphicsObject::setPos ( Wt::WPointF pos)
inline

Definition at line 64 of file WtConnectionGraphicsObject.h.

Here is the call graph for this function:

◆ shape()

Wt::WPainterPath WtConnectionGraphicsObject::shape ( ) const

◆ type()

int WtConnectionGraphicsObject::type ( ) const
inline

Definition at line 36 of file WtConnectionGraphicsObject.h.

Member Data Documentation

◆ _connection

WtConnection& WtConnectionGraphicsObject::_connection
private

Definition at line 105 of file WtConnectionGraphicsObject.h.

◆ _origin

Wt::WPointF WtConnectionGraphicsObject::_origin = Wt::WPointF(0, 0)
private

Definition at line 108 of file WtConnectionGraphicsObject.h.

◆ _painter

Wt::WPainter* WtConnectionGraphicsObject::_painter
private

Definition at line 110 of file WtConnectionGraphicsObject.h.

◆ _scene

WtFlowScene& WtConnectionGraphicsObject::_scene
private

Definition at line 103 of file WtConnectionGraphicsObject.h.


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