AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
Box.h
Go to the documentation of this file.
1
7
#pragma once
8
9
namespace
AnimatSim
10
{
11
namespace
Environment
12
{
13
19
namespace
Bodies
20
{
21
42
class
ANIMAT_PORT
Box
:
public
RigidBody
43
{
44
protected
:
46
float
m_fltLength
;
47
49
int
m_iLengthSections
;
50
52
float
m_fltWidth
;
53
55
int
m_iWidthSections
;
56
58
float
m_fltHeight
;
59
61
int
m_iHeightSections
;
62
63
public
:
64
Box
();
65
virtual
~
Box
();
66
67
static
Box
*CastToDerived(
AnimatBase
*lpBase) {
return
static_cast<
Box
*
>
(lpBase);}
68
77
virtual
float
Length();
78
88
virtual
void
Length(
float
fltVal,
bool
bUseScaling =
true
);
89
98
virtual
float
Width();
99
109
virtual
void
Width(
float
fltVal,
bool
bUseScaling =
true
);
110
119
virtual
float
Height();
120
130
virtual
void
Height(
float
fltVal,
bool
bUseScaling =
true
);
131
132
virtual
void
LengthSections(
int
iVal);
133
virtual
int
LengthSections();
134
135
virtual
void
WidthSections(
int
iVal);
136
virtual
int
WidthSections();
137
138
virtual
void
HeightSections(
int
iVal);
139
virtual
int
HeightSections();
140
141
virtual
float
LengthSegmentSize();
142
virtual
float
WidthSegmentSize();
143
virtual
float
HeightSegmentSize();
144
145
virtual
bool
SetData(
const
std::string &strDataType,
const
std::string &strValue,
bool
bThrowError =
true
);
146
virtual
void
QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
147
virtual
void
Load(CStdXml &oXml);
148
};
149
150
}
//Bodies
151
}
// Environment
152
}
//AnimatSim
AnimatSim
Root namespace for the base simulation library for AnimatLab.
Definition:
ActivatedItem.cpp:37
AnimatSim::Environment::Bodies::Box::m_iHeightSections
int m_iHeightSections
The number of sections to split the box height into.
Definition:
Box.h:61
AnimatSim::Environment::Bodies::Box::m_iWidthSections
int m_iWidthSections
The number of sections to split the box width into.
Definition:
Box.h:55
AnimatSim::Environment::Bodies::Box::m_fltLength
float m_fltLength
The length dimension of the box.
Definition:
Box.h:46
AnimatSim::Environment::Bodies::Box::m_fltWidth
float m_fltWidth
The width dimension of the box.
Definition:
Box.h:52
AnimatSim::Environment::Bodies::Box::m_iLengthSections
int m_iLengthSections
The number of sections to split the box length into.
Definition:
Box.h:49
AnimatSim::AnimatBase
Animat base class.
Definition:
AnimatBase.h:36
AnimatSim::Environment::Bodies::Box::m_fltHeight
float m_fltHeight
The height dimension of the box.
Definition:
Box.h:58
AnimatSim::Environment::Bodies::Box
The Box base class.
Definition:
Box.h:42
AnimatSim::Environment::RigidBody
The base class for all of the basic rigid body type of objects.
Definition:
RigidBody.h:66
Libraries
AnimatSim
Box.h
Generated on Tue Sep 29 2015 07:07:13 for AnimatLab by
1.8.10