VR-Forces 5.0.1 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
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)