VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfExtObjects
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
11
class
DtAttachmentDescriptor
;
12
13
#include <vlutil/vlNetTypes.h>
14
15
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
16
17
class
DT_DLL_vrfExtObjects
DtNetAttachmentDescriptor
18
{
19
public
:
20
DtNetInt32
myVertexIndex
;
21
DtNetFloat32
myPercentage
;
22
23
DtAttachmentDescriptor
operator=(
const
DtAttachmentDescriptor
&);
24
DtNetAttachmentDescriptor
& operator=(
const
DtNetAttachmentDescriptor
&);
25
};
26
27
class
DT_DLL_vrfExtObjects
DtAttachmentDescriptor
28
{
29
public
:
31
DtAttachmentDescriptor
();
32
34
DtAttachmentDescriptor
(
int
vIndex,
float
percent);
35
37
DtAttachmentDescriptor
(
const
DtAttachmentDescriptor
& orig);
38
40
DtAttachmentDescriptor
& operator=(
const
DtAttachmentDescriptor
& orig);
41
43
DtAttachmentDescriptor
(
const
DtNetAttachmentDescriptor
& netDesc);
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
:
60
int
myVertexIndex
;
61
float
myPercentage
;
62
};
63
64
class
DT_DLL_vrfExtObjects
DtAttachmentDescriptorList
65
{
66
public
:
68
DtAttachmentDescriptorList
();
69
71
virtual
~
DtAttachmentDescriptorList
();
72
74
DtAttachmentDescriptorList
(
const
DtAttachmentDescriptorList
& orig);
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
:
110
int
myNumberOfDescriptors
;
111
DtAttachmentDescriptor
*
myDescriptors
;
112
DtAttachmentDescriptor
myEmptyDescriptor
;
113
void
*
myNetRep
;
114
};
115
116
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)