VR-Forces 5.0.2 Developer's Guide
 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  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 };
int myNumberOfDescriptors
Definition: lineSegmentDescriptor.h:139
float myPercentage
Definition: lineSegmentDescriptor.h:81
int myColorG
Definition: lineSegmentDescriptor.h:87
int myLineWidth
Definition: lineSegmentDescriptor.h:83
int myColorR
Definition: lineSegmentDescriptor.h:86
int myArrowStyle
Definition: lineSegmentDescriptor.h:85
voidpf void uLong size
Definition: ioapi.h:39
int myColorA
Definition: lineSegmentDescriptor.h:89
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Definition: lineSegmentDescriptor.h:32
DtNetU32 myLinePattern
Definition: lineSegmentDescriptor.h:22
DtNetU8 myLineStyle
Definition: lineSegmentDescriptor.h:25
int myLinePattern
Definition: lineSegmentDescriptor.h:84
DtLineSegmentDescriptor myEmptyDescriptor
Definition: lineSegmentDescriptor.h:141
DtNetU16 myLineWidth
Definition: lineSegmentDescriptor.h:24
int myLineStyle
Definition: lineSegmentDescriptor.h:82
DtNetFloat32 myPercentage
Definition: lineSegmentDescriptor.h:21
Definition: lineSegmentDescriptor.h:92
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
int myColorB
Definition: lineSegmentDescriptor.h:88
DtLineSegmentDescriptor * myDescriptors
Definition: lineSegmentDescriptor.h:140
void * myNetRep
Definition: lineSegmentDescriptor.h:142
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23
Definition: lineSegmentDescriptor.h:18
DtNetU8 myArrowStyle
Definition: lineSegmentDescriptor.h:26

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)