VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
attachmentDescriptor.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 
15 #include <vlutil/vlNetTypes.h>
16 
18 {
19 public:
20  DtNetInt32 myVertexIndex;
21  DtNetFloat32 myPercentage;
22 
25 };
26 
28 {
29 public:
32 
34  DtAttachmentDescriptor(int vIndex, float percent);
35 
38 
40  DtAttachmentDescriptor& operator=(const DtAttachmentDescriptor& orig);
41 
44 
46  operator DtNetAttachmentDescriptor() const;
47 
49  bool operator==(const DtAttachmentDescriptor& other) const;
50  bool operator!=(const DtAttachmentDescriptor& other) const;
51 
53  virtual void setVertexIndex(int index);
54  virtual int vertexIndex() const;
55 
57  virtual void setPercentage(float percent);
58  virtual float percentage() const;
59 protected:
61  float myPercentage;
62 };
63 
65 {
66 public:
67 
70 
72  virtual ~DtAttachmentDescriptorList();
73 
76 
78  DtAttachmentDescriptorList& operator=(
79  const DtAttachmentDescriptorList& orig);
80 
82  int operator==(const DtAttachmentDescriptorList& other) const;
83  int operator!=(const DtAttachmentDescriptorList& other) const;
84 
87  virtual void setNumDescriptors(int num);
88  virtual int numDescriptors() const;
89 
91  virtual bool setDescriptor(int index,
92  const DtAttachmentDescriptor& desc);
93 
96  virtual const DtAttachmentDescriptor& descriptor(
97  int index, bool* valid = 0) const;
98 
100  virtual void setFromNet(const void* netRep, int length);
101 
105  virtual const void* netRep(int* size = 0) const;
106 
108  virtual int netSize() const;
109 
110 protected:
111 
115  void* myNetRep;
116 
117 };
int myVertexIndex
Definition: attachmentDescriptor.h:60
voidpf void uLong size
Definition: ioapi.h:39
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Definition: attachmentDescriptor.h:27
void * myNetRep
Definition: attachmentDescriptor.h:115
float myPercentage
Definition: attachmentDescriptor.h:61
Definition: attachmentDescriptor.h:64
DtAttachmentDescriptor * myDescriptors
Definition: attachmentDescriptor.h:113
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
DtAttachmentDescriptor myEmptyDescriptor
Definition: attachmentDescriptor.h:114
DtNetFloat32 myPercentage
Definition: attachmentDescriptor.h:21
Definition: attachmentDescriptor.h:17
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
DtNetInt32 myVertexIndex
Definition: attachmentDescriptor.h:20
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23
int myNumberOfDescriptors
Definition: attachmentDescriptor.h:112

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)