CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Segment.h
1 
2 #pragma once
3 
4 namespace Larson
5 {
7  class CSegment : public CElementList
8  {
9  public:
11  CSegment(long name, CCgmObjects* pOwner);
12  virtual ~CSegment();
13 
15  CSegment* Clone();
17  DRect GetBounds(bool locus = false);
19  DRect GetBoundsList(vector<PicElement> &elList, bool locus = false);
21  void Draw(CDrawBase *pDB);
23  bool HitTest(DPoint point, double margin);
25  void TransformBy(CMatrix* pXF);
26 
27  void Restore(CSegment* pSegment);
28 
31 
33  long m_name;
35  vector<long> m_inheritance;
46  };
47 }
CSegment(long name, CCgmObjects *pOwner)
Constructor.
Definition: Segment.cpp:8
vector< long > m_inheritance
segment inheritance filter
Definition: Segment.h:35
void Draw(CDrawBase *pDB)
Draw segment contents.
Definition: Segment.cpp:74
DRect GetBounds(bool locus=false)
Get segment bounds.
Definition: Segment.cpp:32
CSegment – Segment class- a segment is a list of picture elements.
Definition: Segment.h:7
long m_name
segment name
Definition: Segment.h:33
CMatrix m_xForm
segment transformation
Definition: Segment.h:39
long m_clipInheritance
segment clip inheritance
Definition: Segment.h:37
long m_pickPriority
segment pick priority
Definition: Segment.h:45
CElementList – Picture elements list.
Definition: ElementList.h:69
CDrawBase – drawing base class from which all output specific draw classes are derived.
Definition: DrawBase.h:19
CCgmObjects * m_pOwner
pointer to owner of this Segment
Definition: Segment.h:30
void TransformBy(CMatrix *pXF)
Transform segment contents by specfied matrix.
Definition: Segment.cpp:103
CSegment * Clone()
clone a segment
Definition: Segment.cpp:22
long m_displayPriority
segment display priority
Definition: Segment.h:43
DRect GetBoundsList(vector< PicElement > &elList, bool locus=false)
Get bounds in elements list specify by elList.
Definition: Segment.cpp:41
CMatrix – transform matrix class.
Definition: Matrix.h:16
long m_highlighting
segment highlighting
Definition: Segment.h:41
bool HitTest(DPoint point, double margin)
true if point touches this segment within margin
Definition: Segment.cpp:85
CCgmObjects – CGM Picture container.
Definition: CgmObjects.h:472