GME  13
Public Member Functions | Public Attributes
CGuiConnection Class Reference

#include <GUIObject.h>

Inheritance diagram for CGuiConnection:
Inheritance graph
[legend]
Collaboration diagram for CGuiConnection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CGuiConnection (CComPtr< IMgaFCO > &pt, CComPtr< IMgaMetaRole > &role, CGMEView *vw, int numAsp, bool resolve=true)
virtual ~CGuiConnection ()
virtual CGuiConnectiondynamic_cast_CGuiConnection (void)
void RefreshAttributeCache ()
CAutoRouterPathGetRouterPath ()
void SetRouterPath (CAutoRouterPath *path)
void GrayOutEndPoints ()
void ToggleHover ()
void SetSelect (bool sel)
bool IsSelected ()
void GiveConnectionEndErroMessage (const TCHAR *mainMsg, const TCHAR *srcOrDst, const CGuiPort *otherPort) const
void Resolve ()
void ReadARPreferences ()
bool GetARPref (int dir) const
void GetPointList (CPointList &points) const
int GetEdgeCount (void) const
CRect GetBounds (void) const
CPoint GetCenter (void) const
bool AdjustCoordLimits (CPointList &points, int edgeIndex, bool isPathEnd, bool xOrY, POSITION pos, int ptCoord, int lastlastCoord, long &coordMinLimit, long &coordMaxLimit) const
int GetEdgeIndex (const CPoint &point, CPoint &startPoint, CPoint &endPoint, CPoint &thirdPoint, ConnectionPartMoveType &connectionMoveMethod, bool &horizontalOrVerticalEdge, bool &isPartFixed, long &xMinLimit, long &xMaxLimit, long &yMinLimit, long &yMaxLimit, bool checkPointOnEdge=true) const
int IsPathAt (const CPoint &point, ConnectionPartMoveType &connectionMoveMethod, bool &horizontalOrVerticalEdge, bool &isPartFixed) const
long IsPointOnSectionAndDeletable (long edgeIndex, const CPoint &point)
std::vector< long > GetRelevantCustomizedEdgeIndexes (void)
void FillOutCustomPathData (CustomPathData &pathData, PathCustomizationType custType, long asp, int newPosX, int newPosY, int edgeIndex, int edgeCount, bool horizontalOrVerticalEdge)
std::vector< CustomPathDataGetCurrentPathCustomizations (void)
bool HasPathCustomization (void) const
bool HasPathCustomizationForCurrentAspect (int edgeIndex=-1) const
bool HasPathCustomizationForAspect (long asp, int edgeIndex=-1) const
bool HasPathCustomizationForTypeAndCurrentAspect (PathCustomizationType custType=Invalid, int edgeIndex=-1) const
bool HasPathCustomizationForTypeAndAspect (long asp, PathCustomizationType custType=Invalid, int edgeIndex=-1) const
void ReadCustomPathData (void)
void WriteCustomPathData (bool handleTransaction=true)
void InsertCustomPathData (const CustomPathData &pathData)
void UpdateCustomPathData (const CustomPathData &pathData)
void DeletePathCustomization (const CustomPathData &pathData)
bool DeleteAllPathCustomizationsForAnAspect (long asp)
bool DeleteAllPathCustomizationsForCurrentAspect (void)
void DeleteAllPathCustomizationsForAllAspects (void)
void RemoveDeletedPathCustomizations (const std::vector< CustomPathData > &customPathDat)
void SnapCoordIfApplicable (CustomPathData *coordToSet, const CPoint &last, const CPoint &pt)
bool VerticalAndHorizontalSnappingOfConnectionLineSegments (long asp, int edgeIndex=-1)
bool IsAutoRouted (void) const
void SetAutoRouted (bool autoRouteState)
bool NeedsRouterPathConversion (bool expectedAutoRouterState=true)
void ConvertAutoRoutedPathToCustom (long asp, bool handleTransaction=false, bool expectedAutoRouterState=true)
bool ReadAutoRouteState (void)
void WriteAutoRouteState (bool handleTransaction=true)
CGuiConnectionLabelSetGetLabelSet (void)
virtual bool IsVisible (int aspect=-1)
virtual void RemoveFromRouter (CAutoRouter &router)
virtual void Draw (HDC pDC, Gdiplus::Graphics *gdip)

Public Attributes

CGuiObjectsrc
CGuiPortsrcPort
CGuiObjectdst
CGuiPortdstPort
CMapStringToString attributeCache

Detailed Description

Definition at line 430 of file GUIObject.h.


Constructor & Destructor Documentation

CGuiConnection::CGuiConnection ( CComPtr< IMgaFCO > &  pt,
CComPtr< IMgaMetaRole > &  role,
CGMEView vw,
int  numAsp,
bool  resolve = true 
)

Definition at line 2376 of file GUIObject.cpp.

virtual CGuiConnection::~CGuiConnection ( ) [inline, virtual]

Definition at line 434 of file GUIObject.h.


Member Function Documentation

bool CGuiConnection::AdjustCoordLimits ( CPointList points,
int  edgeIndex,
bool  isPathEnd,
bool  xOrY,
POSITION  pos,
int  ptCoord,
int  lastlastCoord,
long &  coordMinLimit,
long &  coordMaxLimit 
) const

Definition at line 2923 of file GUIObject.cpp.

void CGuiConnection::ConvertAutoRoutedPathToCustom ( long  asp,
bool  handleTransaction = false,
bool  expectedAutoRouterState = true 
)

Definition at line 3549 of file GUIObject.cpp.

Definition at line 3432 of file GUIObject.cpp.

Definition at line 3409 of file GUIObject.cpp.

Definition at line 3427 of file GUIObject.cpp.

Definition at line 3360 of file GUIObject.cpp.

void CGuiConnection::Draw ( HDC  pDC,
Gdiplus::Graphics *  gdip 
) [virtual]

Implements CGuiFco.

Definition at line 2677 of file GUIObject.cpp.

virtual CGuiConnection* CGuiConnection::dynamic_cast_CGuiConnection ( void  ) [inline, virtual]

Reimplemented from CGuiFco.

Definition at line 437 of file GUIObject.h.

void CGuiConnection::FillOutCustomPathData ( CustomPathData pathData,
PathCustomizationType  custType,
long  asp,
int  newPosX,
int  newPosY,
int  edgeIndex,
int  edgeCount,
bool  horizontalOrVerticalEdge 
)

Definition at line 3195 of file GUIObject.cpp.

bool CGuiConnection::GetARPref ( int  dir) const [inline]

Definition at line 449 of file GUIObject.h.

CRect CGuiConnection::GetBounds ( void  ) const

Definition at line 2887 of file GUIObject.cpp.

CPoint CGuiConnection::GetCenter ( void  ) const

Definition at line 2917 of file GUIObject.cpp.

Definition at line 3213 of file GUIObject.cpp.

Definition at line 2880 of file GUIObject.cpp.

int CGuiConnection::GetEdgeIndex ( const CPoint &  point,
CPoint &  startPoint,
CPoint &  endPoint,
CPoint &  thirdPoint,
ConnectionPartMoveType connectionMoveMethod,
bool &  horizontalOrVerticalEdge,
bool &  isPartFixed,
long &  xMinLimit,
long &  xMaxLimit,
long &  yMinLimit,
long &  yMaxLimit,
bool  checkPointOnEdge = true 
) const

Definition at line 2973 of file GUIObject.cpp.

Definition at line 3610 of file GUIObject.cpp.

void CGuiConnection::GetPointList ( CPointList points) const

Definition at line 2855 of file GUIObject.cpp.

std::vector< long > CGuiConnection::GetRelevantCustomizedEdgeIndexes ( void  )

Definition at line 3176 of file GUIObject.cpp.

Definition at line 440 of file GUIObject.h.

void CGuiConnection::GiveConnectionEndErroMessage ( const TCHAR *  mainMsg,
const TCHAR *  srcOrDst,
const CGuiPort otherPort 
) const

Definition at line 2474 of file GUIObject.cpp.

Definition at line 2754 of file GUIObject.cpp.

bool CGuiConnection::HasPathCustomization ( void  ) const

Definition at line 3223 of file GUIObject.cpp.

bool CGuiConnection::HasPathCustomizationForAspect ( long  asp,
int  edgeIndex = -1 
) const

Definition at line 3233 of file GUIObject.cpp.

Definition at line 3228 of file GUIObject.cpp.

bool CGuiConnection::HasPathCustomizationForTypeAndAspect ( long  asp,
PathCustomizationType  custType = Invalid,
int  edgeIndex = -1 
) const

Definition at line 3243 of file GUIObject.cpp.

Definition at line 3238 of file GUIObject.cpp.

Definition at line 3308 of file GUIObject.cpp.

bool CGuiConnection::IsAutoRouted ( void  ) const

Definition at line 3528 of file GUIObject.cpp.

int CGuiConnection::IsPathAt ( const CPoint &  point,
ConnectionPartMoveType connectionMoveMethod,
bool &  horizontalOrVerticalEdge,
bool &  isPartFixed 
) const

Definition at line 3124 of file GUIObject.cpp.

long CGuiConnection::IsPointOnSectionAndDeletable ( long  edgeIndex,
const CPoint &  point 
)

Definition at line 3141 of file GUIObject.cpp.

bool CGuiConnection::IsSelected ( ) [inline]

Definition at line 445 of file GUIObject.h.

virtual bool CGuiConnection::IsVisible ( int  aspect = -1) [inline, virtual]

Implements CGuiFco.

Definition at line 491 of file GUIObject.h.

bool CGuiConnection::NeedsRouterPathConversion ( bool  expectedAutoRouterState = true)

Definition at line 3541 of file GUIObject.cpp.

Definition at line 2831 of file GUIObject.cpp.

Definition at line 3577 of file GUIObject.cpp.

Definition at line 3256 of file GUIObject.cpp.

Definition at line 2760 of file GUIObject.cpp.

void CGuiConnection::RemoveDeletedPathCustomizations ( const std::vector< CustomPathData > &  customPathDat)

Definition at line 3437 of file GUIObject.cpp.

void CGuiConnection::RemoveFromRouter ( CAutoRouter router) [virtual]

Implements CGuiFco.

Definition at line 2749 of file GUIObject.cpp.

Definition at line 2506 of file GUIObject.cpp.

void CGuiConnection::SetAutoRouted ( bool  autoRouteState)

Definition at line 3536 of file GUIObject.cpp.

Definition at line 441 of file GUIObject.h.

void CGuiConnection::SetSelect ( bool  sel) [inline]

Definition at line 444 of file GUIObject.h.

void CGuiConnection::SnapCoordIfApplicable ( CustomPathData coordToSet,
const CPoint &  last,
const CPoint &  pt 
)

Definition at line 3457 of file GUIObject.cpp.

void CGuiConnection::ToggleHover ( ) [inline]

Definition at line 443 of file GUIObject.h.

Definition at line 3342 of file GUIObject.cpp.

Definition at line 3490 of file GUIObject.cpp.

void CGuiConnection::WriteAutoRouteState ( bool  handleTransaction = true)

Definition at line 3596 of file GUIObject.cpp.

void CGuiConnection::WriteCustomPathData ( bool  handleTransaction = true)

Definition at line 3275 of file GUIObject.cpp.


Member Data Documentation

CMapStringToString CGuiConnection::attributeCache

Definition at line 502 of file GUIObject.h.

Definition at line 500 of file GUIObject.h.

Definition at line 501 of file GUIObject.h.

Definition at line 498 of file GUIObject.h.

Definition at line 499 of file GUIObject.h.


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