AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
Torus.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
Torus
:
public
RigidBody
25
{
26
protected
:
28
float
m_fltOutsideRadius
;
29
31
float
m_fltInsideRadius
;
32
34
int
m_iSides
;
35
37
int
m_iRings
;
38
39
public
:
40
Torus
();
41
virtual
~
Torus
();
42
43
static
Torus
*CastToDerived(
AnimatBase
*lpBase) {
return
static_cast<
Torus
*
>
(lpBase);}
44
53
virtual
float
OutsideRadius();
54
64
virtual
void
OutsideRadius(
float
fltVal,
bool
bUseScaling =
true
);
65
74
virtual
float
InsideRadius();
75
85
virtual
void
InsideRadius(
float
fltVal,
bool
bUseScaling =
true
);
86
87
virtual
int
Sides();
88
virtual
void
Sides(
int
iVal);
89
90
virtual
void
Rings(
int
iVal);
91
virtual
int
Rings();
92
93
virtual
bool
SetData(
const
std::string &strDataType,
const
std::string &strValue,
bool
bThrowError =
true
);
94
virtual
void
QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
95
virtual
void
Load(CStdXml &oXml);
96
};
97
98
}
//Bodies
99
}
// Environment
100
}
//AnimatSim
AnimatSim
Root namespace for the base simulation library for AnimatLab.
Definition:
ActivatedItem.cpp:37
AnimatSim::Environment::Bodies::Torus::m_fltInsideRadius
float m_fltInsideRadius
The inside radius of the torus.
Definition:
Torus.h:31
AnimatSim::Environment::Bodies::Torus::m_iRings
int m_iRings
The number of rings used to draw the torus.
Definition:
Torus.h:37
AnimatSim::Environment::Bodies::Torus
The Cone base class.
Definition:
Torus.h:24
AnimatSim::AnimatBase
Animat base class.
Definition:
AnimatBase.h:36
AnimatSim::Environment::Bodies::Torus::m_fltOutsideRadius
float m_fltOutsideRadius
The outside radius of the torus.
Definition:
Torus.h:28
AnimatSim::Environment::Bodies::Torus::m_iSides
int m_iSides
The number of sides used to draw the torus.
Definition:
Torus.h:34
AnimatSim::Environment::RigidBody
The base class for all of the basic rigid body type of objects.
Definition:
RigidBody.h:66
Libraries
AnimatSim
Torus.h
Generated on Tue Sep 29 2015 07:07:22 for AnimatLab by
1.8.10