#include <graph_drawable.h>
Public Member Functions | |
GraphDrawable (GLuint shaderProgram, const std::map< int, rtabmap::Transform > &poses, const std::multimap< int, rtabmap::Link > &links) | |
void | Render (const glm::mat4 &projectionMatrix, const glm::mat4 &viewMatrix) |
void | setPose (const rtabmap::Transform &mapToOdom) |
void | setVisible (bool visible) |
virtual | ~GraphDrawable () |
Private Attributes | |
float | lineWidth_ |
std::vector< GLushort > | loopClosureIndices_ |
std::vector< GLushort > | neighborIndices_ |
glm::mat4 | pose_ |
GLuint | shader_program_ |
GLuint | vertex_buffers_ |
bool | visible_ |
Definition at line 42 of file graph_drawable.h.
GraphDrawable::GraphDrawable | ( | GLuint | shaderProgram, |
const std::map< int, rtabmap::Transform > & | poses, | ||
const std::multimap< int, rtabmap::Link > & | links | ||
) |
Definition at line 36 of file graph_drawable.cpp.
GraphDrawable::~GraphDrawable | ( | ) | [virtual] |
Definition at line 105 of file graph_drawable.cpp.
void GraphDrawable::Render | ( | const glm::mat4 & | projectionMatrix, |
const glm::mat4 & | viewMatrix | ||
) |
Definition at line 123 of file graph_drawable.cpp.
void GraphDrawable::setPose | ( | const rtabmap::Transform & | mapToOdom | ) |
Definition at line 116 of file graph_drawable.cpp.
void GraphDrawable::setVisible | ( | bool | visible | ) | [inline] |
Definition at line 51 of file graph_drawable.h.
float GraphDrawable::lineWidth_ [private] |
Definition at line 62 of file graph_drawable.h.
std::vector<GLushort> GraphDrawable::loopClosureIndices_ [private] |
Definition at line 59 of file graph_drawable.h.
std::vector<GLushort> GraphDrawable::neighborIndices_ [private] |
Definition at line 58 of file graph_drawable.h.
glm::mat4 GraphDrawable::pose_ [private] |
Definition at line 60 of file graph_drawable.h.
GLuint GraphDrawable::shader_program_ [private] |
Definition at line 64 of file graph_drawable.h.
GLuint GraphDrawable::vertex_buffers_ [private] |
Definition at line 57 of file graph_drawable.h.
bool GraphDrawable::visible_ [private] |
Definition at line 61 of file graph_drawable.h.