DART  6.10.1
dart::gui::RenderInterface Class Reference

#include <RenderInterface.hpp>

Inheritance diagram for dart::gui::RenderInterface:
dart::gui::OpenGLRenderInterface

Public Member Functions

 RenderInterface ()
 
virtual ~RenderInterface ()
 
virtual void initialize ()
 
virtual void destroy ()
 
virtual void setViewport (int _x, int _y, int _width, int _height)
 
virtual void getViewport (int &_x, int &_y, int &_width, int &_height) const
 
virtual void clear (const Eigen::Vector3d &_color)
 
virtual void setMaterial (const Eigen::Vector3d &_diffuse, const Eigen::Vector3d &_specular, double _cosinePow)
 
virtual void getMaterial (Eigen::Vector3d &_diffuse, Eigen::Vector3d &_specular, double &_cosinePow) const
 
virtual void setDefaultMaterial ()
 
virtual void pushMatrix ()
 
virtual void popMatrix ()
 
virtual void pushName (int _id)
 
virtual void popName ()
 
virtual void translate (const Eigen::Vector3d &_offset)
 
virtual void rotate (const Eigen::Vector3d &_axis, double _rad)
 
virtual void transform (const Eigen::Isometry3d &_transform)
 
virtual void scale (const Eigen::Vector3d &_scale)
 
virtual void drawSphere (double radius, int slices=16, int stacks=16)
 
virtual void drawMultiSphere (const std::vector< std::pair< double, Eigen::Vector3d >> &spheres, int slices=16, int stacks=16)
 
virtual void drawEllipsoid (const Eigen::Vector3d &_size)
 
virtual void drawCube (const Eigen::Vector3d &_size)
 
virtual void drawOpenCylinder (double baseRadius, double topRadius, double height, int slices=16, int stacks=16)
 
virtual void drawCylinder (double _radius, double _height, int slices=16, int stacks=16)
 
virtual void drawCapsule (double _radius, double _height)
 
virtual void drawCone (double _radius, double _height)
 
virtual void drawPyramid (double baseWidth, double baseDepth, double height)
 
virtual void drawMesh (const Eigen::Vector3d &_scale, const aiScene *_mesh)
 
virtual void drawSoftMesh (const aiMesh *mesh)
 
virtual void drawList (unsigned int index)
 
virtual void drawLineSegments (const std::vector< Eigen::Vector3d > &_vertices, const common::aligned_vector< Eigen::Vector2i > &_connections)
 
virtual unsigned int compileDisplayList (const Eigen::Vector3d &_size, const aiScene *_mesh)
 
virtual void setPenColor (const Eigen::Vector4d &_col)
 
virtual void setPenColor (const Eigen::Vector3d &_col)
 
virtual void setLineWidth (float _width)
 
virtual void saveToImage (const char *_filename, DecoBufferType _buffType=BT_Back)
 
virtual void readFrameBuffer (DecoBufferType _buffType, DecoColorChannel _ch, void *_pixels)
 

Constructor & Destructor Documentation

◆ RenderInterface()

dart::gui::RenderInterface::RenderInterface ( )
inline

◆ ~RenderInterface()

virtual dart::gui::RenderInterface::~RenderInterface ( )
inlinevirtual

Member Function Documentation

◆ clear()

void dart::gui::RenderInterface::clear ( const Eigen::Vector3d &  _color)
virtual

◆ compileDisplayList()

unsigned int dart::gui::RenderInterface::compileDisplayList ( const Eigen::Vector3d &  _size,
const aiScene *  _mesh 
)
virtual

◆ destroy()

void dart::gui::RenderInterface::destroy ( )
virtual

◆ drawCapsule()

void dart::gui::RenderInterface::drawCapsule ( double  _radius,
double  _height 
)
virtual

◆ drawCone()

void dart::gui::RenderInterface::drawCone ( double  _radius,
double  _height 
)
virtual

◆ drawCube()

void dart::gui::RenderInterface::drawCube ( const Eigen::Vector3d &  _size)
virtual

◆ drawCylinder()

void dart::gui::RenderInterface::drawCylinder ( double  _radius,
double  _height,
int  slices = 16,
int  stacks = 16 
)
virtual

◆ drawEllipsoid()

void dart::gui::RenderInterface::drawEllipsoid ( const Eigen::Vector3d &  _size)
virtual

◆ drawLineSegments()

void dart::gui::RenderInterface::drawLineSegments ( const std::vector< Eigen::Vector3d > &  _vertices,
const common::aligned_vector< Eigen::Vector2i > &  _connections 
)
virtual

◆ drawList()

void dart::gui::RenderInterface::drawList ( unsigned int  index)
virtual

◆ drawMesh()

void dart::gui::RenderInterface::drawMesh ( const Eigen::Vector3d &  _scale,
const aiScene *  _mesh 
)
virtual

◆ drawMultiSphere()

void dart::gui::RenderInterface::drawMultiSphere ( const std::vector< std::pair< double, Eigen::Vector3d >> &  spheres,
int  slices = 16,
int  stacks = 16 
)
virtual

◆ drawOpenCylinder()

void dart::gui::RenderInterface::drawOpenCylinder ( double  baseRadius,
double  topRadius,
double  height,
int  slices = 16,
int  stacks = 16 
)
virtual

◆ drawPyramid()

void dart::gui::RenderInterface::drawPyramid ( double  baseWidth,
double  baseDepth,
double  height 
)
virtual

◆ drawSoftMesh()

void dart::gui::RenderInterface::drawSoftMesh ( const aiMesh *  mesh)
virtual

◆ drawSphere()

void dart::gui::RenderInterface::drawSphere ( double  radius,
int  slices = 16,
int  stacks = 16 
)
virtual

◆ getMaterial()

void dart::gui::RenderInterface::getMaterial ( Eigen::Vector3d &  _diffuse,
Eigen::Vector3d &  _specular,
double &  _cosinePow 
) const
virtual

◆ getViewport()

void dart::gui::RenderInterface::getViewport ( int &  _x,
int &  _y,
int &  _width,
int &  _height 
) const
virtual

◆ initialize()

void dart::gui::RenderInterface::initialize ( )
virtual

◆ popMatrix()

void dart::gui::RenderInterface::popMatrix ( )
virtual

◆ popName()

void dart::gui::RenderInterface::popName ( )
virtual

◆ pushMatrix()

void dart::gui::RenderInterface::pushMatrix ( )
virtual

◆ pushName()

void dart::gui::RenderInterface::pushName ( int  _id)
virtual

◆ readFrameBuffer()

void dart::gui::RenderInterface::readFrameBuffer ( DecoBufferType  _buffType,
DecoColorChannel  _ch,
void *  _pixels 
)
virtual

◆ rotate()

void dart::gui::RenderInterface::rotate ( const Eigen::Vector3d &  _axis,
double  _rad 
)
virtual

◆ saveToImage()

void dart::gui::RenderInterface::saveToImage ( const char *  _filename,
DecoBufferType  _buffType = BT_Back 
)
virtual

◆ scale()

void dart::gui::RenderInterface::scale ( const Eigen::Vector3d &  _scale)
virtual

◆ setDefaultMaterial()

void dart::gui::RenderInterface::setDefaultMaterial ( )
virtual

◆ setLineWidth()

void dart::gui::RenderInterface::setLineWidth ( float  _width)
virtual

◆ setMaterial()

void dart::gui::RenderInterface::setMaterial ( const Eigen::Vector3d &  _diffuse,
const Eigen::Vector3d &  _specular,
double  _cosinePow 
)
virtual

◆ setPenColor() [1/2]

void dart::gui::RenderInterface::setPenColor ( const Eigen::Vector3d &  _col)
virtual

◆ setPenColor() [2/2]

void dart::gui::RenderInterface::setPenColor ( const Eigen::Vector4d &  _col)
virtual

◆ setViewport()

void dart::gui::RenderInterface::setViewport ( int  _x,
int  _y,
int  _width,
int  _height 
)
virtual

◆ transform()

void dart::gui::RenderInterface::transform ( const Eigen::Isometry3d &  _transform)
virtual

◆ translate()

void dart::gui::RenderInterface::translate ( const Eigen::Vector3d &  _offset)
virtual