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

#include <connectionArrowSnapping.h>

Collaboration diagram for CConnectionArrowSnapping:
Collaboration graph

Static Public Member Functions

static void snap (Visio::IVShapePtr connectionShape)
 

Static Private Member Functions

static bool isHmscShape (Visio::IVShapePtr shape)
 
static void disconnectShape (Visio::IVShapePtr connectionShape, Visio::IVCellPtr fromCell, Visio::IVShapePtr to)
 
static bool isCorrectConnected (Visio::IVShapePtr connectionShape, Visio::IVConnectPtr connect)
 
static void connectArrowCorretly (Visio::IVCellPtr from, Visio::IVShapePtr to)
 
static bool shouldBeSnapped (double xPosition, double yPosition, Visio::IVShapePtr shape)
 
static Visio::IVCellPtr getProperConnectionPoint (double xPosition, double yPosition, Visio::IVShapePtr shapeToSnapped)
 

Detailed Description

Definition at line 27 of file connectionArrowSnapping.h.

Member Function Documentation

void CConnectionArrowSnapping::connectArrowCorretly ( Visio::IVCellPtr  from,
Visio::IVShapePtr  to 
)
staticprivate

connect connection arrow correctly to shape

Definition at line 110 of file connectionArrowSnapping.cpp.

References get_shape_type(), ST_HMSC_CONNECTION, ST_HMSC_END, ST_HMSC_REFERENCE, ST_HMSC_START, and ST_MSC_CONDITION.

Referenced by snap().

void CConnectionArrowSnapping::disconnectShape ( Visio::IVShapePtr  connectionShape,
Visio::IVCellPtr  fromCell,
Visio::IVShapePtr  to 
)
staticprivate
Visio::IVCellPtr CConnectionArrowSnapping::getProperConnectionPoint ( double  xPosition,
double  yPosition,
Visio::IVShapePtr  shapeToSnapped 
)
staticprivate

find the best connection point where connection arrow should be connected

Definition at line 216 of file connectionArrowSnapping.cpp.

References get_shape_type(), CShapeUtils::getShapeCell(), and ST_HMSC_CONNECTION.

Referenced by snap().

bool CConnectionArrowSnapping::isCorrectConnected ( Visio::IVShapePtr  connectionShape,
Visio::IVConnectPtr  connect 
)
staticprivate

check if connection arrow is connected correctly

Definition at line 37 of file connectionArrowSnapping.cpp.

References get_shape_type(), isHmscShape(), ST_HMSC_CONNECTION, ST_HMSC_END, ST_HMSC_REFERENCE, ST_HMSC_START, and ST_MSC_CONDITION.

Referenced by snap().

bool CConnectionArrowSnapping::isHmscShape ( Visio::IVShapePtr  shape)
staticprivate
bool CConnectionArrowSnapping::shouldBeSnapped ( double  xPosition,
double  yPosition,
Visio::IVShapePtr  shape 
)
staticprivate

check whether connection point occurs in the area of snapable shape

Definition at line 197 of file connectionArrowSnapping.cpp.

References CShapeUtils::getShapeCell().

Referenced by snap().

void CConnectionArrowSnapping::snap ( Visio::IVShapePtr  connectionShape)
static

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