AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
Cylinder.h
Go to the documentation of this file.
1
7
#pragma once
8
9
namespace
AnimatSim
10
{
11
namespace
Environment
12
{
13
namespace
Bodies
14
{
24
class
ANIMAT_PORT
Cylinder
:
public
RigidBody
25
{
26
protected
:
28
float
m_fltRadius
;
29
31
float
m_fltHeight
;
32
34
int
m_iSides
;
35
36
public
:
37
Cylinder
();
38
virtual
~
Cylinder
();
39
40
static
Cylinder
*CastToDerived(
AnimatBase
*lpBase) {
return
static_cast<
Cylinder
*
>
(lpBase);}
41
50
virtual
float
Radius();
51
61
virtual
void
Radius(
float
fltVal,
bool
bUseScaling =
true
);
62
71
virtual
float
Height();
72
82
virtual
void
Height(
float
fltVal,
bool
bUseScaling =
true
);
83
84
virtual
void
Sides(
int
iVal);
85
virtual
int
Sides();
86
87
virtual
bool
SetData(
const
std::string &strDataType,
const
std::string &strValue,
bool
bThrowError =
true
);
88
virtual
void
QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
89
virtual
void
Load(CStdXml &oXml);
90
};
91
92
}
//Bodies
93
}
// Environment
94
}
//AnimatSim
AnimatSim
Root namespace for the base simulation library for AnimatLab.
Definition:
ActivatedItem.cpp:37
AnimatSim::Environment::Bodies::Cylinder::m_fltRadius
float m_fltRadius
The radius of the cylinder.
Definition:
Cylinder.h:28
AnimatSim::Environment::Bodies::Cylinder::m_iSides
int m_iSides
The number of sides used to draw the cylinder.
Definition:
Cylinder.h:34
AnimatSim::Environment::Bodies::Cylinder::m_fltHeight
float m_fltHeight
The height of the cylinder.
Definition:
Cylinder.h:31
AnimatSim::AnimatBase
Animat base class.
Definition:
AnimatBase.h:36
AnimatSim::Environment::Bodies::Cylinder
the Cylinder base class.
Definition:
Cylinder.h:24
AnimatSim::Environment::RigidBody
The base class for all of the basic rigid body type of objects.
Definition:
RigidBody.h:66
Libraries
AnimatSim
Cylinder.h
Generated on Tue Sep 29 2015 07:07:14 for AnimatLab by
1.8.10