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
CTimeSnapping Class Reference

#include <timeSnapping.h>

Collaboration diagram for CTimeSnapping:
Collaboration graph

Static Public Member Functions

static void snap (Visio::IVShapePtr timeShape)
 

Static Private Member Functions

static const double snapDistance ()
 
static void disconnectShape (Visio::IVShapePtr timeShape, bool begin, Visio::IVShapePtr to)
 
static double getTimeDist (double timeX, double timeY, double shapeX, double shapeY)
 
static std::vector
< Visio::IVShapePtr > 
getTimeShapes (Visio::IVShapePtr timeShape)
 
static bool isTimeAcceptingShape (Visio::IVShapePtr shape)
 

Detailed Description

Definition at line 27 of file timeSnapping.h.

Member Function Documentation

void CTimeSnapping::disconnectShape ( Visio::IVShapePtr  timeShape,
bool  begin,
Visio::IVShapePtr  to 
)
staticprivate
double CTimeSnapping::getTimeDist ( double  timeX,
double  timeY,
double  shapeX,
double  shapeY 
)
staticprivate

calculate distance between points

Definition at line 24 of file timeSnapping.cpp.

Referenced by snap().

std::vector< Visio::IVShapePtr > CTimeSnapping::getTimeShapes ( Visio::IVShapePtr  timeShape)
staticprivate

find all time accepting shapes

Definition at line 43 of file timeSnapping.cpp.

References isTimeAcceptingShape().

Referenced by snap().

bool CTimeSnapping::isTimeAcceptingShape ( Visio::IVShapePtr  shape)
staticprivate

check if passed shape accept times

Definition at line 29 of file timeSnapping.cpp.

References get_shape_type(), ST_BMSC_MESSAGE, ST_BMSC_MESSAGE_FOUND, ST_BMSC_MESSAGE_LOST, and ST_HMSC_REFERENCE.

Referenced by getTimeShapes(), and snap().

void CTimeSnapping::snap ( Visio::IVShapePtr  timeShape)
static

automatically snaps current time shape to nearest time accepting shape

Parameters
timeShapea shape to snap

Definition at line 116 of file timeSnapping.cpp.

References disconnectShape(), get_shape_type(), CShapeUtils::getShapeCell(), getTimeDist(), getTimeShapes(), isTimeAcceptingShape(), snapDistance(), ST_BMSC_MESSAGE, ST_BMSC_MESSAGE_FOUND, ST_BMSC_MESSAGE_LOST, ST_HMSC_REFERENCE, and ST_TIME_INTERVAL.

Referenced by CStudioAddon::HandleNonePending(), and CDocumentMonitor::OnDropShape().

static const double CTimeSnapping::snapDistance ( )
inlinestaticprivate

Definition at line 32 of file timeSnapping.h.

Referenced by snap().


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

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