VR-Vantage API Documentation
3dAttachDescriptor.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: 3dAttachDescriptor.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 #ifndef attachDescriptor_H_
9 #define attachDescriptor_H_
10 
12 
13 #include <vlutil/vlNetTypes.h>
14 
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:
69 
71  virtual ~DtAttachmentDescriptorList();
72 
75 
77  DtAttachmentDescriptorList& operator=(
78  const DtAttachmentDescriptorList& orig);
79 
81  int operator==(const DtAttachmentDescriptorList& other) const;
82  int operator!=(const DtAttachmentDescriptorList& other) const;
83 
86  virtual void setNumDescriptors(int num);
87  virtual int numDescriptors() const;
88 
90  virtual bool setDescriptor(int index,
91  const DtAttachmentDescriptor& desc);
92 
95  virtual const DtAttachmentDescriptor& descriptor(
96  int index, bool* valid = 0) const;
97 
99  virtual void setFromNet(const void* netRep, int length);
100 
104  virtual const void* netRep(int* size = 0) const;
105 
107  virtual int netSize() const;
108 
109 protected:
113  void* myNetRep;
114 };
115 
116 #endif


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)