|
CGM Objects Library
|
CSegment – Segment class- a segment is a list of picture elements. More...
#include <Segment.h>
Public Member Functions | |
| CSegment (long name, CCgmObjects *pOwner) | |
| Constructor. | |
| CSegment * | Clone () |
| clone a segment | |
| DRect | GetBounds (bool locus=false) |
| Get segment bounds. | |
| DRect | GetBoundsList (vector< PicElement > &elList, bool locus=false) |
| Get bounds in elements list specify by elList. More... | |
| void | Draw (CDrawBase *pDB) |
| Draw segment contents. | |
| bool | HitTest (DPoint point, double margin) |
| true if point touches this segment within margin | |
| void | TransformBy (CMatrix *pXF) |
| Transform segment contents by specfied matrix. | |
| void | Restore (CSegment *pSegment) |
Public Member Functions inherited from Larson::CElementList | |
| CElementList () | |
| Constructor. | |
| void | add (CCgmBaseObj *pObj) |
| add graphical element | |
| void | add (CAppStruct *pAppStruct) |
| add Application Structure | |
| void | add (CSegment *pSegment) |
| add local segment list | |
| void | add (PicElement &elem) |
| add element | |
| int | find (PicElement &elem) |
| find element in list | |
| bool | erase (int index) |
| erase element at specified index in elements list | |
| bool | insert (int index, PicElement &elem) |
| insert element in elements list | |
Public Attributes | |
| CCgmObjects * | m_pOwner |
| pointer to owner of this Segment | |
| long | m_name |
| segment name | |
| vector< long > | m_inheritance |
| segment inheritance filter | |
| long | m_clipInheritance |
| segment clip inheritance | |
| CMatrix | m_xForm |
| segment transformation | |
| long | m_highlighting |
| segment highlighting | |
| long | m_displayPriority |
| segment display priority | |
| long | m_pickPriority |
| segment pick priority | |
Public Attributes inherited from Larson::CElementList | |
| std::vector< PicElement > | m_elements |
| elements list | |
| CElementList * | m_pParent |
| pointer to owner of this element list | |
| int | m_growSize |
CSegment – Segment class- a segment is a list of picture elements.
| DRect CSegment::GetBoundsList | ( | vector< PicElement > & | elList, |
| bool | locus = false |
||
| ) |
Get bounds in elements list specify by elList.
Get bounds in elList.
1.8.6