Public Member Functions | Protected Attributes | List of all members
tango_gl::DrawableObject Class Referenceabstract

#include <drawable_object.h>

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

Public Member Functions

void DeleteGlResources ()
 
 DrawableObject ()
 
 DrawableObject (const DrawableObject &other)=delete
 
const DrawableObjectoperator= (const DrawableObject &)=delete
 
virtual void Render (const glm::mat4 &projection_mat, const glm::mat4 &view_mat) const =0
 
void SetAlpha (const float alpha)
 
void SetColor (const Color &color)
 
void SetColor (const float red, const float green, const float blue)
 
void SetShader ()
 
void SetVertices (const std::vector< GLfloat > &vertices)
 
void SetVertices (const std::vector< GLfloat > &vertices, const std::vector< GLushort > &indices)
 
void SetVertices (const std::vector< GLfloat > &vertices, const std::vector< GLfloat > &normals)
 
- Public Member Functions inherited from tango_gl::Transform
const TransformGetParent () const
 
TransformGetParent ()
 
glm::vec3 GetPosition () const
 
glm::quat GetRotation () const
 
glm::vec3 GetScale () const
 
glm::mat4 GetTransformationMatrix () const
 
const Transformoperator= (const Transform &rhs)=delete
 
void SetParent (Transform *transform)
 
void SetPosition (const glm::vec3 &position)
 
void SetRotation (const glm::quat &rotation)
 
void SetScale (const glm::vec3 &scale)
 
void SetTransformationMatrix (const glm::mat4 &transform_mat)
 
 Transform ()
 
 Transform (const Transform &other)=delete
 
void Translate (const glm::vec3 &translation)
 
virtual ~Transform ()
 

Protected Attributes

float alpha_
 
GLuint attrib_normals_
 
GLuint attrib_vertices_
 
float blue_
 
float green_
 
std::vector< GLushort > indices_
 
std::vector< GLfloat > normals_
 
float red_
 
GLenum render_mode_
 
GLuint shader_program_
 
GLuint uniform_color_
 
GLuint uniform_mvp_mat_
 
std::vector< GLfloat > vertices_
 

Detailed Description

Definition at line 27 of file drawable_object.h.

Constructor & Destructor Documentation

◆ DrawableObject() [1/2]

tango_gl::DrawableObject::DrawableObject ( )
inline

Definition at line 29 of file drawable_object.h.

◆ DrawableObject() [2/2]

tango_gl::DrawableObject::DrawableObject ( const DrawableObject other)
delete

Member Function Documentation

◆ DeleteGlResources()

void tango_gl::DrawableObject::DeleteGlResources ( )

Definition at line 34 of file drawable_object.cpp.

◆ operator=()

const DrawableObject& tango_gl::DrawableObject::operator= ( const DrawableObject )
delete

◆ Render()

virtual void tango_gl::DrawableObject::Render ( const glm::mat4 projection_mat,
const glm::mat4 view_mat 
) const
pure virtual

◆ SetAlpha()

void tango_gl::DrawableObject::SetAlpha ( const float  alpha)

Definition at line 49 of file drawable_object.cpp.

◆ SetColor() [1/2]

void tango_gl::DrawableObject::SetColor ( const Color color)

Definition at line 45 of file drawable_object.cpp.

◆ SetColor() [2/2]

void tango_gl::DrawableObject::SetColor ( const float  red,
const float  green,
const float  blue 
)

Definition at line 40 of file drawable_object.cpp.

◆ SetShader()

void tango_gl::DrawableObject::SetShader ( )

Definition at line 22 of file drawable_object.cpp.

◆ SetVertices() [1/3]

void tango_gl::DrawableObject::SetVertices ( const std::vector< GLfloat > &  vertices)

Definition at line 51 of file drawable_object.cpp.

◆ SetVertices() [2/3]

void tango_gl::DrawableObject::SetVertices ( const std::vector< GLfloat > &  vertices,
const std::vector< GLushort > &  indices 
)

Definition at line 55 of file drawable_object.cpp.

◆ SetVertices() [3/3]

void tango_gl::DrawableObject::SetVertices ( const std::vector< GLfloat > &  vertices,
const std::vector< GLfloat > &  normals 
)

Definition at line 61 of file drawable_object.cpp.

Member Data Documentation

◆ alpha_

float tango_gl::DrawableObject::alpha_
protected

Definition at line 50 of file drawable_object.h.

◆ attrib_normals_

GLuint tango_gl::DrawableObject::attrib_normals_
protected

Definition at line 60 of file drawable_object.h.

◆ attrib_vertices_

GLuint tango_gl::DrawableObject::attrib_vertices_
protected

Definition at line 59 of file drawable_object.h.

◆ blue_

float tango_gl::DrawableObject::blue_
protected

Definition at line 49 of file drawable_object.h.

◆ green_

float tango_gl::DrawableObject::green_
protected

Definition at line 48 of file drawable_object.h.

◆ indices_

std::vector<GLushort> tango_gl::DrawableObject::indices_
protected

Definition at line 51 of file drawable_object.h.

◆ normals_

std::vector<GLfloat> tango_gl::DrawableObject::normals_
protected

Definition at line 53 of file drawable_object.h.

◆ red_

float tango_gl::DrawableObject::red_
protected

Definition at line 47 of file drawable_object.h.

◆ render_mode_

GLenum tango_gl::DrawableObject::render_mode_
protected

Definition at line 55 of file drawable_object.h.

◆ shader_program_

GLuint tango_gl::DrawableObject::shader_program_
protected

Definition at line 56 of file drawable_object.h.

◆ uniform_color_

GLuint tango_gl::DrawableObject::uniform_color_
protected

Definition at line 57 of file drawable_object.h.

◆ uniform_mvp_mat_

GLuint tango_gl::DrawableObject::uniform_mvp_mat_
protected

Definition at line 58 of file drawable_object.h.

◆ vertices_

std::vector<GLfloat> tango_gl::DrawableObject::vertices_
protected

Definition at line 52 of file drawable_object.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00