VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lineSegmentDescriptor.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vlutil/vlNetTypes.h>
15 
17 
19 {
20 public:
21  DtNetFloat32 myPercentage;
22  DtNetU32 myLinePattern;
23  DtNetU8 myColor[4];
24  DtNetU16 myLineWidth;
25  DtNetU8 myLineStyle;
26  DtNetU8 myArrowStyle;
27 
30 };
31 
33 {
34 public:
35 
38 
40  DtLineSegmentDescriptor(float percent, int style, int width, int pattern,
41  int arrow, int colorR, int colorG, int colorB, int colorA);
42 
45 
47  DtLineSegmentDescriptor& operator=(const DtLineSegmentDescriptor& orig);
48 
51 
53  operator DtNetLineSegmentDescriptor() const;
54 
56  bool operator==(const DtLineSegmentDescriptor& other) const;
57  bool operator!=(const DtLineSegmentDescriptor& other) const;
58 
60 
61  virtual void setPercentage(float percent);
62  virtual float percentage() const;
63 
64  virtual void setLineStyle(int style);
65  virtual int lineStyle() const;
66 
67  virtual void setLineWidth(int width);
68  virtual int lineWidth() const;
69 
70  virtual void setLinePattern(int pattern);
71  virtual int linePattern() const;
72 
73  virtual void setArrowStyle(int style);
74  virtual int arrowStyle() const;
75 
76  virtual void setColor(int r, int g, int b, int a);
77  virtual void getColor(int& r, int&g, int& b, int& a) const;
79 
80 protected:
81  float myPercentage;
86  int myColorR;
87  int myColorG;
88  int myColorB;
89  int myColorA;
90 };
91 
93 {
94 public:
97 
99  virtual ~DtLineSegmentDescriptorList();
100 
103 
105  DtLineSegmentDescriptorList& operator=(
106  const DtLineSegmentDescriptorList& orig);
107 
109  int operator==(const DtLineSegmentDescriptorList& other) const;
110  int operator!=(const DtLineSegmentDescriptorList& other) const;
111 
114  virtual void setNumDescriptors(int num);
115  virtual int numDescriptors() const;
116 
118  virtual bool setDescriptor(int index,
119  const DtLineSegmentDescriptor& desc);
120 
123  virtual const DtLineSegmentDescriptor& descriptor(
124  int index, bool* valid = 0) const;
125 
127  virtual void setFromNet(const void* netRep, int length);
128 
132  virtual const void* netRep(int* size = 0) const;
133 
135  virtual int netSize() const;
136 
137 protected:
138 
142  void* myNetRep;
143 
144 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)