AnimatLab  2
Test
BallSocket.cpp
Go to the documentation of this file.
1 
7 #include "StdAfx.h"
8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
10 #include "AnimatBase.h"
11 
12 #include "Node.h"
13 #include "IPhysicsMovableItem.h"
14 #include "IPhysicsBody.h"
15 #include "BoundingBox.h"
16 #include "MovableItem.h"
17 #include "BodyPart.h"
18 #include "Joint.h"
19 #include "ReceptiveField.h"
20 #include "ContactSensor.h"
21 #include "RigidBody.h"
22 #include "BallSocket.h"
23 #include "Structure.h"
24 #include "Organism.h"
25 #include "ActivatedItem.h"
26 #include "ActivatedItemMgr.h"
27 #include "DataChartMgr.h"
28 #include "ExternalStimuliMgr.h"
29 #include "KeyFrame.h"
30 #include "SimulationRecorder.h"
31 #include "OdorType.h"
32 #include "Odor.h"
33 #include "Light.h"
34 #include "LightManager.h"
35 #include "Simulator.h"
36 
37 namespace AnimatSim
38 {
39  namespace Environment
40  {
41  namespace Joints
42  {
50 {
51  //m_fltConstraintAngle = (float) (0.25*STD_PI);
52  //m_fltStiffness = AL_INFINITY;
53  //m_fltDamping = AL_INFINITY;
54 }
55 
63 {
64 
65 }
66 
76 {
77  return m_fltSize/2;
78 }
79 
89 {
90  return m_fltSize;
91 }
92 
102 {
103  return m_fltSize;
104 }
105 
106 void BallSocket::Load(CStdXml &oXml)
107 {
108  Joint::Load(oXml);
109 
110  oXml.IntoElem(); //Into Joint Element
111 
112  //Std_LoadPoint(oXml, "ConstraintAxis", m_oConstraintAxis);
113  //m_fltConstraintAngle = oXml.GetChildFloat("ConstraintHalfAngle");
114 
115  //Std_IsAboveMin((float) 0, m_fltConstraintAngle, true, "ConstraintAngle");
116 
117  oXml.OutOfElem(); //OutOf Joint Element
118 }
119 
120  } //Joints
121  } //Environment
122 } //AnimatSim
Base class file for all Animat simulation objects.
Declares the simulation recorder class.
Root namespace for the base simulation library for AnimatLab.
float BallRadius()
Gets the radius of the ball that is siutated at the center of this joint.
Definition: BallSocket.cpp:101
Declares the body part class.
virtual bool IntoElem()
Goes into the next element where the cursor is located.
Definition: StdXml.cpp:42
Declares the key frame class.
Declares the joint class.
Declares the organism class.
float CylinderHeight()
Gets the height of the cylinder that extends out from the ball for this joint.
Definition: BallSocket.cpp:88
Declares a light object.
Declares the activated item class.
Declares a light manager object.
Declares the bounding box class.
Declares the ball socket class.
A standard xml manipulation class.
Definition: StdXml.h:19
Declares the node class.
float CylinderRadius()
Gets the radius of the cylinder that extends out from the ball for this joint.
Definition: BallSocket.cpp:75
float m_fltSize
Scales the size of the graphics for this joint.
Definition: Joint.h:61
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
Definition: StdXml.cpp:56
Declares the data chart manager class.
Declares the rigid body class.
Declares the structure class.
Declares the odor type class.
Declares the odor class.
Declares the simulator class.
Declares the activated item manager class.
Declares the contact sensor class.
Declares the external stimuli manager class.
Declares the receptive field class.