CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
Larson::CSegment Class Reference

CSegment – Segment class- a segment is a list of picture elements. More...

#include <Segment.h>

Inheritance diagram for Larson::CSegment:
Larson::CElementList

Public Member Functions

 CSegment (long name, CCgmObjects *pOwner)
 Constructor.
 
CSegmentClone ()
 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

CCgmObjectsm_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< PicElementm_elements
 elements list
 
CElementListm_pParent
 pointer to owner of this element list
 
int m_growSize
 

Detailed Description

CSegment – Segment class- a segment is a list of picture elements.

Member Function Documentation

DRect CSegment::GetBoundsList ( vector< PicElement > &  elList,
bool  locus = false 
)

Get bounds in elements list specify by elList.

Get bounds in elList.


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