33 #ifndef DART_GUI_RENDERINTERFACE_HPP_
34 #define DART_GUI_RENDERINTERFACE_HPP_
37 #include <assimp/scene.h>
38 #include <Eigen/Dense>
75 virtual void setViewport(
int _x,
int _y,
int _width,
int _height);
76 virtual void getViewport(
int& _x,
int& _y,
int& _width,
int& _height)
const;
78 virtual void clear(
const Eigen::Vector3d& _color);
80 virtual void setMaterial(
const Eigen::Vector3d& _diffuse,
const Eigen::Vector3d& _specular,
double _cosinePow);
81 virtual void getMaterial(Eigen::Vector3d& _diffuse, Eigen::Vector3d& _specular,
double& _cosinePow)
const;
89 virtual void translate(
const Eigen::Vector3d& _offset);
90 virtual void rotate(
const Eigen::Vector3d& _axis,
double _rad);
91 virtual void transform(
const Eigen::Isometry3d& _transform);
92 virtual void scale(
const Eigen::Vector3d& _scale);
94 virtual void drawSphere(
double radius,
int slices = 16,
int stacks = 16);
95 virtual void drawMultiSphere(
const std::vector<std::pair<double, Eigen::Vector3d>>& spheres,
int slices = 16,
int stacks = 16);
97 virtual void drawCube(
const Eigen::Vector3d& _size);
98 virtual void drawOpenCylinder(
double baseRadius,
double topRadius,
double height,
int slices = 16,
int stacks = 16);
99 virtual void drawCylinder(
double _radius,
double _height,
int slices = 16,
int stacks = 16);
100 virtual void drawCapsule(
double _radius,
double _height);
101 virtual void drawCone(
double _radius,
double _height);
102 virtual void drawMesh(
const Eigen::Vector3d& _scale,
const aiScene* _mesh);
105 virtual void drawLineSegments(
const std::vector<Eigen::Vector3d>& _vertices,
108 virtual unsigned int compileDisplayList(
const Eigen::Vector3d& _size,
const aiScene* _mesh);
110 virtual void setPenColor(
const Eigen::Vector4d& _col);
111 virtual void setPenColor(
const Eigen::Vector3d& _col);
std::size_t index
Definition: SkelParser.cpp:1617
Definition: RenderInterface.hpp:67
virtual void clear(const Eigen::Vector3d &_color)
Definition: RenderInterface.cpp:54
virtual void pushName(int _id)
Definition: RenderInterface.cpp:81
virtual void pushMatrix()
Definition: RenderInterface.cpp:73
virtual void setLineWidth(float _width)
Definition: RenderInterface.cpp:169
virtual void drawSphere(double radius, int slices=16, int stacks=16)
Definition: RenderInterface.cpp:105
virtual void drawCylinder(double _radius, double _height, int slices=16, int stacks=16)
Definition: RenderInterface.cpp:149
virtual void drawOpenCylinder(double baseRadius, double topRadius, double height, int slices=16, int stacks=16)
Definition: RenderInterface.cpp:145
virtual void getViewport(int &_x, int &_y, int &_width, int &_height) const
Definition: RenderInterface.cpp:50
virtual void initialize()
Definition: RenderInterface.cpp:38
RenderInterface()
Definition: RenderInterface.hpp:69
virtual void drawEllipsoid(const Eigen::Vector3d &_size)
Definition: RenderInterface.cpp:114
virtual void drawList(unsigned int index)
Definition: RenderInterface.cpp:127
virtual void drawCapsule(double _radius, double _height)
Definition: RenderInterface.cpp:153
virtual void drawSoftMesh(const aiMesh *mesh)
Definition: RenderInterface.cpp:122
virtual void translate(const Eigen::Vector3d &_offset)
Definition: RenderInterface.cpp:89
virtual void popName()
Definition: RenderInterface.cpp:85
virtual void drawCone(double _radius, double _height)
Definition: RenderInterface.cpp:157
virtual void drawMultiSphere(const std::vector< std::pair< double, Eigen::Vector3d >> &spheres, int slices=16, int stacks=16)
Definition: RenderInterface.cpp:109
virtual void setPenColor(const Eigen::Vector4d &_col)
Definition: RenderInterface.cpp:161
virtual void setDefaultMaterial()
Definition: RenderInterface.cpp:68
virtual void drawMesh(const Eigen::Vector3d &_scale, const aiScene *_mesh)
Definition: RenderInterface.cpp:118
virtual void drawCube(const Eigen::Vector3d &_size)
Definition: RenderInterface.cpp:141
virtual void popMatrix()
Definition: RenderInterface.cpp:77
virtual void setViewport(int _x, int _y, int _width, int _height)
Definition: RenderInterface.cpp:46
virtual void getMaterial(Eigen::Vector3d &_diffuse, Eigen::Vector3d &_specular, double &_cosinePow) const
Definition: RenderInterface.cpp:63
virtual void saveToImage(const char *_filename, DecoBufferType _buffType=BT_Back)
Definition: RenderInterface.cpp:174
virtual unsigned int compileDisplayList(const Eigen::Vector3d &_size, const aiScene *_mesh)
Definition: RenderInterface.cpp:136
virtual void setMaterial(const Eigen::Vector3d &_diffuse, const Eigen::Vector3d &_specular, double _cosinePow)
Definition: RenderInterface.cpp:58
virtual void scale(const Eigen::Vector3d &_scale)
Definition: RenderInterface.cpp:101
virtual void rotate(const Eigen::Vector3d &_axis, double _rad)
Definition: RenderInterface.cpp:93
virtual void readFrameBuffer(DecoBufferType _buffType, DecoColorChannel _ch, void *_pixels)
Definition: RenderInterface.cpp:179
virtual void transform(const Eigen::Isometry3d &_transform)
Definition: RenderInterface.cpp:97
virtual void drawLineSegments(const std::vector< Eigen::Vector3d > &_vertices, const common::aligned_vector< Eigen::Vector2i > &_connections)
Definition: RenderInterface.cpp:131
virtual void destroy()
Definition: RenderInterface.cpp:42
virtual ~RenderInterface()
Definition: RenderInterface.hpp:70
std::vector< _Tp, Eigen::aligned_allocator< _Tp > > aligned_vector
Definition: Memory.hpp:66
DecoBufferType
Definition: RenderInterface.hpp:45
@ BT_Front
Definition: RenderInterface.hpp:46
@ BT_Back
Definition: RenderInterface.hpp:47
DecoDrawType
Definition: RenderInterface.hpp:59
@ DT_SolidPolygon
Definition: RenderInterface.hpp:61
@ DT_FrontPolygon
Definition: RenderInterface.hpp:62
@ DT_BackPolygon
Definition: RenderInterface.hpp:63
@ DT_WireFrame
Definition: RenderInterface.hpp:60
@ DT_Max
Definition: RenderInterface.hpp:64
DecoColorChannel
Definition: RenderInterface.hpp:50
@ CC_B
Definition: RenderInterface.hpp:53
@ CC_R
Definition: RenderInterface.hpp:51
@ CC_RGBA
Definition: RenderInterface.hpp:56
@ CC_A
Definition: RenderInterface.hpp:54
@ CC_G
Definition: RenderInterface.hpp:52
@ CC_RGB
Definition: RenderInterface.hpp:55
Definition: BulletCollisionDetector.cpp:63