DART
6.10.1
|
#include <OpenGLRenderInterface.hpp>
Public Member Functions | |
OpenGLRenderInterface () | |
virtual | ~OpenGLRenderInterface () |
void | initialize () override |
void | destroy () override |
void | setViewport (int _x, int _y, int _width, int _height) override |
void | getViewport (int &_x, int &_y, int &_width, int &_height) const override |
void | clear (const Eigen::Vector3d &_color) override |
void | setMaterial (const Eigen::Vector3d &_diffuse, const Eigen::Vector3d &_specular, double _cosinePow) override |
void | getMaterial (Eigen::Vector3d &_diffuse, Eigen::Vector3d &_specular, double &_cosinePow) const override |
void | setDefaultMaterial () override |
void | pushMatrix () override |
void | popMatrix () override |
void | pushName (int _id) override |
void | popName () override |
void | translate (const Eigen::Vector3d &_offset) override |
void | rotate (const Eigen::Vector3d &_axis, double _rad) override |
void | transform (const Eigen::Isometry3d &_transform) override |
void | scale (const Eigen::Vector3d &_scale) override |
void | compileList (dynamics::Skeleton *_skel) |
void | compileList (dynamics::BodyNode *_node) |
void | compileList (dynamics::Shape *_shape) |
GLuint | compileList (const Eigen::Vector3d &_scale, const aiScene *_mesh) |
void | drawSphere (double radius, int slices=16, int stacks=16) override |
void | drawMultiSphere (const std::vector< std::pair< double, Eigen::Vector3d >> &spheres, int slices=16, int stacks=16) override |
void | drawEllipsoid (const Eigen::Vector3d &_diameters) override |
void | drawCube (const Eigen::Vector3d &_size) override |
void | drawOpenCylinder (double baseRadius, double topRadius, double height, int slices=16, int stacks=16) override |
void | drawCylinder (double _radius, double _height, int slices=16, int stacks=16) override |
void | drawCapsule (double radius, double height) override |
void | drawCone (double radius, double height) override |
void | drawPyramid (double baseWidth, double baseDepth, double height) override |
void | drawMesh (const Eigen::Vector3d &_scale, const aiScene *_mesh) override |
void | drawSoftMesh (const aiMesh *mesh) override |
void | drawList (GLuint index) override |
void | drawLineSegments (const std::vector< Eigen::Vector3d > &_vertices, const common::aligned_vector< Eigen::Vector2i > &_connections) override |
void | setPenColor (const Eigen::Vector4d &_col) override |
void | setPenColor (const Eigen::Vector3d &_col) override |
void | setLineWidth (float _width) override |
void | saveToImage (const char *_filename, DecoBufferType _buffType=BT_Back) override |
void | readFrameBuffer (DecoBufferType _buffType, DecoColorChannel _ch, void *_pixels) override |
virtual void | drawList (unsigned int index) |
virtual unsigned int | compileDisplayList (const Eigen::Vector3d &_size, const aiScene *_mesh) |
Private Member Functions | |
void | color4_to_float4 (const aiColor4D *c, float f[4]) |
void | set_float4 (float f[4], float a, float b, float c, float d) |
void | applyMaterial (const struct aiMaterial *mtl) |
void | recursiveRender (const struct aiScene *sc, const struct aiNode *nd) |
Private Attributes | |
int | mViewportX |
int | mViewportY |
int | mViewportWidth |
int | mViewportHeight |
|
inline |
|
inlinevirtual |
|
private |
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
private |
|
virtualinherited |
GLuint dart::gui::OpenGLRenderInterface::compileList | ( | const Eigen::Vector3d & | _scale, |
const aiScene * | _mesh | ||
) |
void dart::gui::OpenGLRenderInterface::compileList | ( | dynamics::BodyNode * | _node | ) |
void dart::gui::OpenGLRenderInterface::compileList | ( | dynamics::Shape * | _shape | ) |
void dart::gui::OpenGLRenderInterface::compileList | ( | dynamics::Skeleton * | _skel | ) |
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
override |
|
virtualinherited |
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
private |
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
private |
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
overridevirtual |
Reimplemented from dart::gui::RenderInterface.
|
private |
|
private |
|
private |
|
private |