AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
Sphere.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
Sphere
:
public
RigidBody
25
{
26
protected
:
28
float
m_fltRadius
;
29
31
int
m_iLatitudeSegments
;
32
34
int
m_iLongtitudeSegments
;
35
36
public
:
37
Sphere
();
38
virtual
~
Sphere
();
39
40
static
Sphere
*CastToDerived(
AnimatBase
*lpBase) {
return
static_cast<
Sphere
*
>
(lpBase);}
41
50
virtual
float
Radius();
51
61
virtual
void
Radius(
float
fltVal,
bool
bUseScaling =
true
);
62
63
virtual
void
LatitudeSegments(
int
iVal);
64
virtual
int
LatitudeSegments();
65
66
virtual
void
LongtitudeSegments(
int
iVal);
67
virtual
int
LongtitudeSegments();
68
69
virtual
bool
SetData(
const
std::string &strDataType,
const
std::string &strValue,
bool
bThrowError =
true
);
70
virtual
void
QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
71
virtual
void
Load(CStdXml &oXml);
72
};
73
74
}
//Bodies
75
}
// Environment
76
}
//AnimatSim
77
AnimatSim::Environment::Bodies::Sphere::m_iLongtitudeSegments
int m_iLongtitudeSegments
Number of segments along the longtitude direction that are used to build the sphere.
Definition:
Sphere.h:34
AnimatSim
Root namespace for the base simulation library for AnimatLab.
Definition:
ActivatedItem.cpp:37
AnimatSim::Environment::Bodies::Sphere
Sphere.
Definition:
Sphere.h:24
AnimatSim::Environment::Bodies::Sphere::m_iLatitudeSegments
int m_iLatitudeSegments
Number of segments along the latitude direction that are used to build the sphere.
Definition:
Sphere.h:31
AnimatSim::Environment::Bodies::Sphere::m_fltRadius
float m_fltRadius
The radius of the sphere.
Definition:
Sphere.h:28
AnimatSim::AnimatBase
Animat base class.
Definition:
AnimatBase.h:36
AnimatSim::Environment::RigidBody
The base class for all of the basic rigid body type of objects.
Definition:
RigidBody.h:66
Libraries
AnimatSim
Sphere.h
Generated on Tue Sep 29 2015 07:07:21 for AnimatLab by
1.8.10