VR-Forces 4.1.1 Class Documentation
3dLineSegmentDescriptor.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: 3dLineSegmentDescriptor.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 #ifndef Dt3dLineSegmentDescriptor_H_
9 #define Dt3dLineSegmentDescriptor_H_
10 
12 
13 #include <vlutil/vlNetTypes.h>
14 
16 
18 {
19 public:
20  DtNetFloat32 myPercentage;
21  DtNetU32 myLinePattern;
22  DtNetU8 myColor[4];
23  DtNetU16 myLineWidth;
24  DtNetU8 myLineStyle;
25  DtNetU8 myArrowStyle;
26 
29 };
30 
32 {
33 public:
36 
38  DtLineSegmentDescriptor(float percent, int style, int width, int pattern,
39  int arrow, int colorR, int colorG, int colorB, int colorA);
40 
43 
45  DtLineSegmentDescriptor& operator=(const DtLineSegmentDescriptor& orig);
46 
49 
51  operator DtNetLineSegmentDescriptor() const;
52 
54  bool operator==(const DtLineSegmentDescriptor& other) const;
55  bool operator!=(const DtLineSegmentDescriptor& other) const;
56 
58 
59  virtual void setPercentage(float percent);
60  virtual float percentage() const;
61 
62  virtual void setLineStyle(int style);
63  virtual int lineStyle() const;
64 
65  virtual void setLineWidth(int width);
66  virtual int lineWidth() const;
67 
68  virtual void setLinePattern(int pattern);
69  virtual int linePattern() const;
70 
71  virtual void setArrowStyle(int style);
72  virtual int arrowStyle() const;
73 
74  virtual void setColor(int r, int g, int b, int a);
75  virtual void getColor(int& r, int&g, int& b, int& a) const;
77 
78 protected:
79  float myPercentage;
84  int myColorR;
85  int myColorG;
86  int myColorB;
87  int myColorA;
88 };
89 
91 {
92 public:
95 
97  virtual ~DtLineSegmentDescriptorList();
98 
101 
103  DtLineSegmentDescriptorList& operator=(
104  const DtLineSegmentDescriptorList& orig);
105 
107  int operator==(const DtLineSegmentDescriptorList& other) const;
108  int operator!=(const DtLineSegmentDescriptorList& other) const;
109 
112  virtual void setNumDescriptors(int num);
113  virtual int numDescriptors() const;
114 
116  virtual bool setDescriptor(int index,
117  const DtLineSegmentDescriptor& desc);
118 
121  virtual const DtLineSegmentDescriptor& descriptor(
122  int index, bool* valid = 0) const;
123 
125  virtual void setFromNet(const void* netRep, int length);
126 
130  virtual const void* netRep(int* size = 0) const;
131 
133  virtual int netSize() const;
134 
135 protected:
139  void* myNetRep;
140 };
141 
142 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)