VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfExtObjects
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
12
class
DtAttachmentDescriptor
;
13
14
#include <
vrfExtObjects/dllExport.h
>
15
#include <vlutil/vlNetTypes.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
:
67
69
DtAttachmentDescriptorList
();
70
72
virtual
~
DtAttachmentDescriptorList
();
73
75
DtAttachmentDescriptorList
(
const
DtAttachmentDescriptorList
& orig);
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
112
int
myNumberOfDescriptors
;
113
DtAttachmentDescriptor
*
myDescriptors
;
114
DtAttachmentDescriptor
myEmptyDescriptor
;
115
void
*
myNetRep
;
116
117
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)