#include <GLshape.h>
Public Member Functions | |
void | compile () |
void | computeAABB (const hrp::Vector3 &i_p, const hrp::Matrix33 &i_R, hrp::Vector3 &o_min, hrp::Vector3 &o_max) |
void | divideLargeTriangles (double maxEdgeLen) |
size_t | draw (int i_mode) |
GLshape () | |
void | highlight (bool flag) |
void | normalPerVertex (bool flag) |
void | setColors (unsigned int ncolors, const float *colors) |
void | setDiffuseColor (float r, float g, float b, float a) |
void | setNormalIndices (unsigned int len, const int *normalIndices) |
void | setNormals (unsigned int nnormal, const float *normals) |
void | setShininess (float s) |
void | setSpecularColor (float r, float g, float b) |
void | setTexture (GLtexture *texture) |
void | setTextureCoordinates (unsigned int len, const float *coordinates) |
void | setTextureCoordIndices (unsigned int len, const int *coordinates) |
void | setTriangles (unsigned int ntriangles, const int *vertexIndices) |
void | setVertices (unsigned int nvertices, const float *vertices) |
void | solid (bool flag) |
~GLshape () | |
Protected Member Functions | |
int | doCompile (bool isWireFrameMode) |
Protected Attributes | |
std::vector< Eigen::Vector3f > | m_colors |
float | m_diffuse [4] |
bool | m_highlight |
std::vector< int > | m_normalIndices |
bool | m_normalPerVertex |
std::vector< Eigen::Vector3f > | m_normals |
bool | m_requestCompile |
int | m_shadingList |
float | m_shininess |
bool | m_solid |
float | m_specular [4] |
GLtexture * | m_texture |
std::vector< Eigen::Vector2f, Eigen::aligned_allocator < Eigen::Vector2f > > | m_textureCoordinates |
std::vector< int > | m_textureCoordIndices |
GLuint | m_textureId |
std::vector< Eigen::Vector3i > | m_triangles |
std::vector< Eigen::Vector3f > | m_vertices |
int | m_wireFrameList |
GLshape::GLshape | ( | ) |
Definition at line 13 of file GLshape.cpp.
Definition at line 20 of file GLshape.cpp.
void GLshape::compile | ( | ) |
Definition at line 129 of file GLshape.cpp.
void GLshape::computeAABB | ( | const hrp::Vector3 & | i_p, |
const hrp::Matrix33 & | i_R, | ||
hrp::Vector3 & | o_min, | ||
hrp::Vector3 & | o_max | ||
) |
Definition at line 391 of file GLshape.cpp.
void GLshape::divideLargeTriangles | ( | double | maxEdgeLen | ) |
Definition at line 281 of file GLshape.cpp.
int GLshape::doCompile | ( | bool | isWireFrameMode | ) | [protected] |
Definition at line 134 of file GLshape.cpp.
size_t GLshape::draw | ( | int | i_mode | ) |
Definition at line 30 of file GLshape.cpp.
void GLshape::highlight | ( | bool | flag | ) |
Definition at line 275 of file GLshape.cpp.
void GLshape::normalPerVertex | ( | bool | flag | ) |
Definition at line 89 of file GLshape.cpp.
void GLshape::setColors | ( | unsigned int | ncolors, |
const float * | colors | ||
) |
Definition at line 79 of file GLshape.cpp.
void GLshape::setDiffuseColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Definition at line 74 of file GLshape.cpp.
void GLshape::setNormalIndices | ( | unsigned int | len, |
const int * | normalIndices | ||
) |
Definition at line 99 of file GLshape.cpp.
void GLshape::setNormals | ( | unsigned int | nnormal, |
const float * | normals | ||
) |
Definition at line 64 of file GLshape.cpp.
void GLshape::setShininess | ( | float | s | ) |
Definition at line 264 of file GLshape.cpp.
void GLshape::setSpecularColor | ( | float | r, |
float | g, | ||
float | b | ||
) |
Definition at line 269 of file GLshape.cpp.
void GLshape::setTexture | ( | GLtexture * | texture | ) |
Definition at line 124 of file GLshape.cpp.
void GLshape::setTextureCoordinates | ( | unsigned int | len, |
const float * | coordinates | ||
) |
Definition at line 107 of file GLshape.cpp.
void GLshape::setTextureCoordIndices | ( | unsigned int | len, |
const int * | coordinates | ||
) |
Definition at line 116 of file GLshape.cpp.
void GLshape::setTriangles | ( | unsigned int | ntriangles, |
const int * | vertexIndices | ||
) |
Definition at line 54 of file GLshape.cpp.
void GLshape::setVertices | ( | unsigned int | nvertices, |
const float * | vertices | ||
) |
Definition at line 44 of file GLshape.cpp.
void GLshape::solid | ( | bool | flag | ) |
Definition at line 94 of file GLshape.cpp.
std::vector<Eigen::Vector3f> GLshape::m_colors [protected] |
float GLshape::m_diffuse[4] [protected] |
bool GLshape::m_highlight [protected] |
std::vector<int> GLshape::m_normalIndices [protected] |
bool GLshape::m_normalPerVertex [protected] |
std::vector<Eigen::Vector3f> GLshape::m_normals [protected] |
bool GLshape::m_requestCompile [protected] |
int GLshape::m_shadingList [protected] |
float GLshape::m_shininess [protected] |
bool GLshape::m_solid [protected] |
float GLshape::m_specular[4] [protected] |
GLtexture* GLshape::m_texture [protected] |
std::vector<Eigen::Vector2f, Eigen::aligned_allocator<Eigen::Vector2f> > GLshape::m_textureCoordinates [protected] |
std::vector<int> GLshape::m_textureCoordIndices [protected] |
GLuint GLshape::m_textureId [protected] |
std::vector<Eigen::Vector3i> GLshape::m_triangles [protected] |
std::vector<Eigen::Vector3f> GLshape::m_vertices [protected] |
int GLshape::m_wireFrameList [protected] |