GME
13
|
#include <GUIObject.h>
Public Member Functions | |
CGuiConnection (CComPtr< IMgaFCO > &pt, CComPtr< IMgaMetaRole > &role, CGMEView *vw, int numAsp, bool resolve=true) | |
virtual | ~CGuiConnection () |
virtual CGuiConnection * | dynamic_cast_CGuiConnection (void) |
void | RefreshAttributeCache () |
CAutoRouterPath * | GetRouterPath () |
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< CustomPathData > | GetCurrentPathCustomizations (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) |
CGuiConnectionLabelSet & | GetLabelSet (void) |
virtual bool | IsVisible (int aspect=-1) |
virtual void | RemoveFromRouter (CAutoRouter &router) |
virtual void | Draw (HDC pDC, Gdiplus::Graphics *gdip) |
Public Attributes | |
CGuiObject * | src |
CGuiPort * | srcPort |
CGuiObject * | dst |
CGuiPort * | dstPort |
CMapStringToString | attributeCache |
Definition at line 430 of file GUIObject.h.
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.
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.
void CGuiConnection::DeleteAllPathCustomizationsForAllAspects | ( | void | ) |
Definition at line 3432 of file GUIObject.cpp.
bool CGuiConnection::DeleteAllPathCustomizationsForAnAspect | ( | long | asp | ) |
Definition at line 3409 of file GUIObject.cpp.
Definition at line 3427 of file GUIObject.cpp.
void CGuiConnection::DeletePathCustomization | ( | const CustomPathData & | pathData | ) |
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.
std::vector< CustomPathData > CGuiConnection::GetCurrentPathCustomizations | ( | void | ) |
Definition at line 3213 of file GUIObject.cpp.
int CGuiConnection::GetEdgeCount | ( | void | ) | const |
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.
CAutoRouterPath* CGuiConnection::GetRouterPath | ( | ) | [inline] |
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.
void CGuiConnection::GrayOutEndPoints | ( | ) |
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.
bool CGuiConnection::HasPathCustomizationForCurrentAspect | ( | int | edgeIndex = -1 | ) | const |
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.
bool CGuiConnection::HasPathCustomizationForTypeAndCurrentAspect | ( | PathCustomizationType | custType = Invalid , |
int | edgeIndex = -1 |
||
) | const |
Definition at line 3238 of file GUIObject.cpp.
void CGuiConnection::InsertCustomPathData | ( | const CustomPathData & | pathData | ) |
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.
void CGuiConnection::ReadARPreferences | ( | ) |
Definition at line 2831 of file GUIObject.cpp.
bool CGuiConnection::ReadAutoRouteState | ( | void | ) |
Definition at line 3577 of file GUIObject.cpp.
void CGuiConnection::ReadCustomPathData | ( | void | ) |
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.
void CGuiConnection::Resolve | ( | ) |
Definition at line 2506 of file GUIObject.cpp.
void CGuiConnection::SetAutoRouted | ( | bool | autoRouteState | ) |
Definition at line 3536 of file GUIObject.cpp.
void CGuiConnection::SetRouterPath | ( | CAutoRouterPath * | path | ) | [inline] |
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.
void CGuiConnection::UpdateCustomPathData | ( | const CustomPathData & | pathData | ) |
Definition at line 3342 of file GUIObject.cpp.
bool CGuiConnection::VerticalAndHorizontalSnappingOfConnectionLineSegments | ( | long | asp, |
int | edgeIndex = -1 |
||
) |
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.
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.