Public Types | Public Member Functions | Private Attributes
tango_gl::Band Class Reference

#include <band.h>

Inheritance diagram for tango_gl::Band:
Inheritance graph
[legend]

List of all members.

Public Types

enum  BandMode { kNormal = 0, kKeepLeft = 1, kKeepRight = 2 }

Public Member Functions

 Band (const unsigned int max_legnth)
void ClearVertexArray ()
void Render (const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const
void SetVertexArray (const std::vector< glm::vec3 > &v, const glm::vec3 &up)
void SetWidth (const float width)
void UpdateVertexArray (const glm::mat4 m, BandMode mode)
void UpdateVertexArray (const glm::mat4 m)

Private Attributes

float band_width_
unsigned int max_length_
glm::vec3 pivot_left
glm::vec3 pivot_right
std::vector< glm::vec3vertices_v_

Detailed Description

Definition at line 26 of file band.h.


Member Enumeration Documentation

Enumerator:
kNormal 
kKeepLeft 
kKeepRight 

Definition at line 28 of file band.h.


Constructor & Destructor Documentation

tango_gl::Band::Band ( const unsigned int  max_legnth)

Definition at line 25 of file band.cpp.


Member Function Documentation

Definition at line 130 of file band.cpp.

void tango_gl::Band::Render ( const glm::mat4 projection_mat,
const glm::mat4 view_mat 
) const [virtual]

Implements tango_gl::DrawableObject.

Definition at line 132 of file band.cpp.

void tango_gl::Band::SetVertexArray ( const std::vector< glm::vec3 > &  v,
const glm::vec3 up 
)

Definition at line 104 of file band.cpp.

void tango_gl::Band::SetWidth ( const float  width)

Definition at line 33 of file band.cpp.

Definition at line 37 of file band.cpp.

Definition at line 99 of file band.cpp.


Member Data Documentation

float tango_gl::Band::band_width_ [private]

Definition at line 47 of file band.h.

unsigned int tango_gl::Band::max_length_ [private]

Definition at line 48 of file band.h.

Definition at line 51 of file band.h.

Definition at line 52 of file band.h.

std::vector<glm::vec3> tango_gl::Band::vertices_v_ [private]

Definition at line 49 of file band.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:43