19#ifndef HEADER_SHOW_CURVE_HPP
20#define HEADER_SHOW_CURVE_HPP
22#include "utils/leak_check.hpp"
23#include "utils/no_copy.hpp"
34 class SPDynamicDrawCall;
50 std::shared_ptr<SP::SPDynamicDrawCall>
m_dy_dc;
61 std::array<irr:: video::S3DVertexSkinnedMesh, 4>
62 m_current_vertices, m_previous_vertices;
64 bool m_first_vertices, m_visible;
68 const irr::video::SColor &color = irr::video::SColor(77, 0, 179, 0));
72 void update(
float dt);
74 bool isVisible()
const;
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
This class is used for debugging.
Definition: show_curve.hpp:46
void setHeading(float heading)
Sets the heading for the curve.
Definition: show_curve.cpp:139
~ShowCurve()
The destructor removes this scene node and frees the mesh.
Definition: show_curve.cpp:44
irr::video::SColor m_color
The color to use for the curve.
Definition: show_curve.hpp:59
void makeCircle(const Vec3 ¢er, float radius)
Makes this curve to show a circle with given center point and radius.
Definition: show_curve.cpp:122
void setVisible(bool v)
Makes this scene node visible or not.
Definition: show_curve.cpp:147
void addPoint(const Vec3 &pnt)
Adds a point to the curve ('tunnel').
Definition: show_curve.cpp:54
void setPosition(const Vec3 &xyz)
Sets the origin of this scene node.
Definition: show_curve.cpp:162
float m_width
The width of the graph when it is displayed.
Definition: show_curve.hpp:53
float m_height
The height of the graph when it is displayed.
Definition: show_curve.hpp:56
std::shared_ptr< SP::SPDynamicDrawCall > m_dy_dc
The mesh of the curve.
Definition: show_curve.hpp:50
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35