Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
CMessageJump Class Reference

Class enables messages to jump between instances (coregions) More...

#include <messageJump.h>

Collaboration diagram for CMessageJump:
Collaboration graph

Static Public Member Functions

static bool isEdgeTreatmentEnabled ()
 
static int getEdgeInstanceTreatment ()
 
static Visio::IVShapePtr getJumpMessage (Visio::IVApplicationPtr vsoApp)
 
static bool jump (Visio::IVShapePtr &msgShape, std::vector< Visio::IVShapePtr > connectedInstances, MsgJumpDirection direction, bool asCopy)
 
static Visio::IVShapePtr getClosestInstanceFromShape (const MscPoint &pointOnShape, Visio::IVShapePtr shape, std::vector< Visio::IVShapePtr > instances, MsgJumpDirection direction)
 
static bool getMsgNeedsResnap (Visio::IVShapePtr msgShape)
 
static void setMsgNeedsResnap (Visio::IVShapePtr msgShape, bool bTrueIfNeeds)
 
static bool changeMsgType (Visio::IVShapePtr &msgShape, TShapeType shapeType)
 

Detailed Description

Class enables messages to jump between instances (coregions)

Definition at line 26 of file messageJump.h.

Member Function Documentation

bool CMessageJump::changeMsgType ( Visio::IVShapePtr &  msgShape,
TShapeType  shapeType 
)
static

Changes message's type and deletes previous one

Parameters
msgShapea message which type we want to change
shapeTypetype of a new message (ST_BMSC_MESSAGE, ST_BMSC_MESSAGE_FOUND, ST_BMSC_MESSAGE_LOST)
Returns
Returns true if change succeeded, false otherwise

Definition at line 202 of file messageJump.cpp.

References CShapeUtils::duplicateShape(), and isMessageShape().

Referenced by jump(), CDocumentMonitor::OnMenuFlipMessageDirection(), and CDocumentMonitor::OnShortcutDropInstace().

Visio::IVShapePtr CMessageJump::getClosestInstanceFromShape ( const MscPoint pointOnShape,
Visio::IVShapePtr  shape,
std::vector< Visio::IVShapePtr >  instances,
MsgJumpDirection  direction 
)
static
int CMessageJump::getEdgeInstanceTreatment ( )
static

Definition at line 31 of file messageJump.cpp.

References Registry::get(), Registry::getRegistry(), and SNAP_REG_PATH.

Referenced by jump().

Visio::IVShapePtr CMessageJump::getJumpMessage ( Visio::IVApplicationPtr  vsoApp)
static
bool CMessageJump::getMsgNeedsResnap ( Visio::IVShapePtr  msgShape)
static
bool CMessageJump::isEdgeTreatmentEnabled ( )
static

Definition at line 27 of file messageJump.cpp.

References Registry::get(), Registry::getRegistry(), and SNAP_REG_PATH.

Referenced by jump().

bool CMessageJump::jump ( Visio::IVShapePtr &  msgShape,
std::vector< Visio::IVShapePtr >  connectedInstances,
MsgJumpDirection  direction,
bool  asCopy 
)
static
void CMessageJump::setMsgNeedsResnap ( Visio::IVShapePtr  msgShape,
bool  bTrueIfNeeds 
)
static

Definition at line 189 of file messageJump.cpp.

Referenced by jump().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:57 for Sequence Chart Studio by  doxygen