Public Member Functions | Private Attributes | List of all members
GraphDrawable Class Reference

#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_
 

Detailed Description

Definition at line 43 of file graph_drawable.h.

Constructor & Destructor Documentation

◆ GraphDrawable()

GraphDrawable::GraphDrawable ( GLuint  shaderProgram,
const std::map< int, rtabmap::Transform > &  poses,
const std::multimap< int, rtabmap::Link > &  links 
)

Definition at line 40 of file graph_drawable.cpp.

◆ ~GraphDrawable()

GraphDrawable::~GraphDrawable ( )
virtual

Definition at line 109 of file graph_drawable.cpp.

Member Function Documentation

◆ Render()

void GraphDrawable::Render ( const glm::mat4 projectionMatrix,
const glm::mat4 viewMatrix 
)

Definition at line 127 of file graph_drawable.cpp.

◆ setPose()

void GraphDrawable::setPose ( const rtabmap::Transform mapToOdom)

Definition at line 120 of file graph_drawable.cpp.

◆ setVisible()

void GraphDrawable::setVisible ( bool  visible)
inline

Definition at line 52 of file graph_drawable.h.

Member Data Documentation

◆ lineWidth_

float GraphDrawable::lineWidth_
private

Definition at line 63 of file graph_drawable.h.

◆ loopClosureIndices_

std::vector<GLushort> GraphDrawable::loopClosureIndices_
private

Definition at line 60 of file graph_drawable.h.

◆ neighborIndices_

std::vector<GLushort> GraphDrawable::neighborIndices_
private

Definition at line 59 of file graph_drawable.h.

◆ pose_

glm::mat4 GraphDrawable::pose_
private

Definition at line 61 of file graph_drawable.h.

◆ shader_program_

GLuint GraphDrawable::shader_program_
private

Definition at line 65 of file graph_drawable.h.

◆ vertex_buffers_

GLuint GraphDrawable::vertex_buffers_
private

Definition at line 58 of file graph_drawable.h.

◆ visible_

bool GraphDrawable::visible_
private

Definition at line 62 of file graph_drawable.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26