AnimatLab
2
Test
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
Sensor.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
{
25
class
ANIMAT_PORT
Sensor
:
public
RigidBody
26
{
27
protected
:
29
float
m_fltRadius
;
30
32
int
m_iLatitudeSegments
;
33
35
int
m_iLongtitudeSegments
;
36
37
public
:
38
Sensor
();
39
virtual
~
Sensor
();
40
41
static
Sensor
*CastToDerived(
AnimatBase
*lpBase) {
return
static_cast<
Sensor
*
>
(lpBase);}
42
51
virtual
float
Radius();
52
62
virtual
void
Radius(
float
fltVal,
bool
bUseScaling =
true
);
63
64
virtual
void
LatitudeSegments(
int
iVal);
65
virtual
int
LatitudeSegments();
66
67
virtual
void
LongtitudeSegments(
int
iVal);
68
virtual
int
LongtitudeSegments();
69
70
virtual
bool
AllowRotateDragX();
71
virtual
bool
AllowRotateDragY();
72
virtual
bool
AllowRotateDragZ();
73
74
virtual
void
CreateParts();
75
virtual
void
CreateJoints();
76
77
//Sensor parts are never static joints.
78
virtual
bool
HasStaticJoint
() {
return
false
;};
79
80
virtual
void
Initialize();
81
virtual
bool
SetData(
const
std::string &strDataType,
const
std::string &strValue,
bool
bThrowError =
true
);
82
virtual
void
QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
83
virtual
void
Load(CStdXml &oXml);
84
};
85
86
}
//Bodies
87
}
// Environment
88
}
//AnimatSim
AnimatSim::Environment::Bodies::Sensor
Sensor base class.
Definition:
Sensor.h:25
AnimatSim
Root namespace for the base simulation library for AnimatLab.
Definition:
ActivatedItem.cpp:37
AnimatSim::Environment::Bodies::Sensor::m_iLongtitudeSegments
int m_iLongtitudeSegments
Number of segments along the longtitude direction that are used to build the sphere.
Definition:
Sensor.h:35
AnimatSim::AnimatBase
Animat base class.
Definition:
AnimatBase.h:36
AnimatSim::Environment::Bodies::Sensor::m_iLatitudeSegments
int m_iLatitudeSegments
Number of segments along the latitude direction that are used to build the sphere.
Definition:
Sensor.h:32
AnimatSim::Environment::Bodies::Sensor::m_fltRadius
float m_fltRadius
The radius of the sensor part. It is shown as a sphere object.
Definition:
Sensor.h:29
AnimatSim::Environment::Bodies::Sensor::HasStaticJoint
virtual bool HasStaticJoint()
Query if this object has a static joint.
Definition:
Sensor.h:78
AnimatSim::Environment::RigidBody
The base class for all of the basic rigid body type of objects.
Definition:
RigidBody.h:66
Libraries
AnimatSim
Sensor.h
Generated on Tue Sep 29 2015 07:07:20 for AnimatLab by
1.8.10