14 #ifndef _DebugDrawer_H__ 15 #define _DebugDrawer_H__ 32 DebugDrawer(Ogre::SceneManager *_sceneManager,
float _fillAlpha);
37 void drawLine(
const Ogre::Vector3& start,
const Ogre::Vector3& end,
const Ogre::ColourValue&
colour);
38 void drawCircle(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
const Ogre::ColourValue& colour,
bool isFilled =
false);
39 void drawCylinder(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
float height,
const Ogre::ColourValue& colour,
bool isFilled =
false);
40 void drawCone(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
float height,
const Ogre::ColourValue& colour,
bool isFilled =
false);
42 void drawQuad(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
bool isFilled =
false);
43 void drawCuboid(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
bool isFilled =
false);
44 void drawSphere(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
const Ogre::ColourValue& colour,
bool isFilled =
false);
45 void drawTetrahedron(
const Ogre::Vector3& centre,
float scale,
const Ogre::ColourValue& colour,
bool isFilled =
false);
58 isEnabled = _isEnabled;
62 isEnabled = !isEnabled;
68 const IcoSphere& getIcoSphere(
float radius)
const;
89 void buildLine(
const Ogre::Vector3& start,
const Ogre::Vector3& end,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
90 void buildQuad(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
91 void buildFilledQuad(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
92 void buildFilledTriangle(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
93 void buildCuboid(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
94 void buildFilledCuboid(
const Ogre::Vector3* vertices,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
96 void buildCircle(
const Ogre::Matrix4& transform,
float radius,
int segmentsCount,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
97 void buildFilledCircle(
const Ogre::Matrix4& transform,
float radius,
int segmentsCount,
const Ogre::ColourValue& colour,
bool up,
float alpha = 1.0f);
99 void buildCylinder(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
int segmentsCount,
float height,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
100 void buildFilledCylinder(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
int segmentsCount,
float height,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
102 void buildCone(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
int segmentsCount,
float height,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
103 void buildFilledCone(
const Ogre::Vector3& centre,
const Ogre::Quaternion& rotation,
float radius,
int segmentsCount,
float height,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
105 void buildTetrahedron(
const Ogre::Vector3& centre,
float scale,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
106 void buildFilledTetrahedron(
const Ogre::Vector3& centre,
float scale,
const Ogre::ColourValue& colour,
float alpha = 1.0f);
108 int addLineVertex(
const Ogre::Vector3& vertex,
const Ogre::ColourValue& colour);
109 void addLineIndices(
int index1,
int index2);
111 int addTriangleVertex(
const Ogre::Vector3& vertex,
const Ogre::ColourValue& colour);
112 void addTriangleIndices(
int index1,
int index2,
int index3);
114 void addQuadIndices(
int index1,
int index2,
int index3,
int index4);
std::list< int > triangleIndices
Definition: DebugDrawer.h:82
void switchEnabled()
Definition: DebugDrawer.h:60
Ogre::SceneManager * sceneManager
Definition: DebugDrawer.h:70
Copy-pasted from.
Definition: IcoSphere.h:24
std::list< VertexPair > triangleVertices
Definition: DebugDrawer.h:81
IcoSphere icoSphere1
Definition: DebugDrawer.h:74
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
int trianglesIndex
Definition: DebugDrawer.h:84
float fillAlpha
Definition: DebugDrawer.h:71
Ogre::ManualObject * manualObject
Definition: DebugDrawer.h:72
void setFillAlpha(float alpha)
Definition: DebugDrawer.h:47
IcoSphere icoSphere3
Definition: DebugDrawer.h:76
DebugDrawer is a utility to draw debug shapes (lines, triangles, spheres) with Ogre.
Definition: DebugDrawer.h:29
IcoSphere icoSphere0
Definition: DebugDrawer.h:73
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
IcoSphere icoSphere2
Definition: DebugDrawer.h:75
bool isEnabled
Definition: DebugDrawer.h:79
void setEnabled(bool _isEnabled)
Definition: DebugDrawer.h:56
IcoSphere icoSphere4
Definition: DebugDrawer.h:77
bool getEnabled()
Definition: DebugDrawer.h:52