SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::core::visual::DrawToolGL Class Reference

#include <DrawToolGL.h>

Inheritance diagram for sofa::core::visual::DrawToolGL:

Protected Attributes

bool mLightEnabled
 
int mPolygonMode
 
bool mWireFrameEnabled
 
helper::gl::BasicShapesGL_Sphere< Vector3m_sphereUtil
 
helper::gl::BasicShapesGL_FakeSphere< Vector3m_fakeSphereUtil
 

Public Member Functions

 DrawToolGL ()
 
virtual ~DrawToolGL () override
 
void init () override
 
void drawPoint (const Vector3 &p, const Vec4f &c) override
 
void drawPoint (const Vector3 &p, const Vector3 &n, const Vec4f &c) override
 
virtual void drawPoints (const std::vector< Vector3 > &points, float size, const Vec4f &color) override
 
virtual void drawPoints (const std::vector< Vector3 > &points, float size, const std::vector< Vec4f > &color) override
 
void drawLine (const Vector3 &p1, const Vector3 &p2, const Vec4f &color) override
 
void drawInfiniteLine (const Vector3 &point, const Vector3 &direction, const Vec4f &color) override
 
virtual void drawLines (const std::vector< Vector3 > &points, float size, const Vec4f &color) override
 
virtual void drawLines (const std::vector< Vector3 > &points, float size, const std::vector< Vec4f > &colors) override
 
virtual void drawLines (const std::vector< Vector3 > &points, const std::vector< Vec2i > &index, float size, const Vec4f &color) override
 
virtual void drawLineStrip (const std::vector< Vector3 > &points, float size, const Vec4f &color) override
 
virtual void drawLineLoop (const std::vector< Vector3 > &points, float size, const Vec4f &color) override
 
virtual void drawDisk (float radius, double from, double to, int resolution, const Vec4f &color) override
 
virtual void drawCircle (float radius, float lineThickness, int resolution, const Vec4f &color) override
 
void drawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal) override
 
void drawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal, const Vec4f &c) override
 
void drawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3) override
 
void drawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal1, const Vector3 &normal2, const Vector3 &normal3, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3) override
 
virtual void drawTriangles (const std::vector< Vector3 > &points, const Vec4f &color) override
 
virtual void drawTriangles (const std::vector< Vector3 > &points, const std::vector< Vec4f > &color) override
 
virtual void drawTriangles (const std::vector< Vector3 > &points, const Vector3 &normal, const Vec4f &color) override
 
virtual void drawTriangles (const std::vector< Vector3 > &points, const std::vector< Vec3i > &index, const std::vector< Vector3 > &normal, const Vec4f &color) override
 
virtual void drawTriangles (const std::vector< Vector3 > &points, const std::vector< Vec3i > &index, const std::vector< Vector3 > &normal, const std::vector< Vec4f > &color) override
 
virtual void drawTriangles (const std::vector< Vector3 > &points, const std::vector< Vector3 > &normal, const std::vector< Vec4f > &color) override
 
virtual void drawTriangleStrip (const std::vector< Vector3 > &points, const std::vector< Vector3 > &normal, const Vec4f &color) override
 
virtual void drawTriangleFan (const std::vector< Vector3 > &points, const std::vector< Vector3 > &normal, const Vec4f &color) override
 
void drawFrame (const Vector3 &position, const Quaternion &orientation, const Vec3f &size) override
 
void drawFrame (const Vector3 &position, const Quaternion &orientation, const Vec3f &size, const Vec4f &color) override
 
virtual void drawSpheres (const std::vector< Vector3 > &points, const std::vector< float > &radius, const Vec4f &color) override
 
virtual void drawSpheres (const std::vector< Vector3 > &points, float radius, const Vec4f &color) override
 
virtual void drawFakeSpheres (const std::vector< Vector3 > &points, const std::vector< float > &radius, const Vec4f &color) override
 
virtual void drawFakeSpheres (const std::vector< Vector3 > &points, float radius, const Vec4f &color) override
 
void drawCone (const Vector3 &p1, const Vector3 &p2, float radius1, float radius2, const Vec4f &color, int subd=16) override
 
void drawCube (const float &radius, const Vec4f &color, const int &subd=16) override
 Draw a cube of size one centered on the current point. More...
 
void drawCylinder (const Vector3 &p1, const Vector3 &p2, float radius, const Vec4f &color, int subd=16) override
 
void drawCapsule (const Vector3 &p1, const Vector3 &p2, float radius, const Vec4f &color, int subd=16) override
 
void drawArrow (const Vector3 &p1, const Vector3 &p2, float radius, const Vec4f &color, int subd=16) override
 
void drawArrow (const Vector3 &p1, const Vector3 &p2, float radius, float coneLength, const Vec4f &color, int subd=16) override
 
void drawArrow (const Vector3 &p1, const Vector3 &p2, float radius, float coneLength, float coneRadius, const Vec4f &color, int subd=16) override
 
void drawCross (const Vector3 &p, float length, const Vec4f &color) override
 Draw a cross (3 lines) centered on p. More...
 
void drawPlus (const float &radius, const Vec4f &color, const int &subd=16) override
 Draw a plus sign of size one centered on the current point. More...
 
void drawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal) override
 
void drawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal, const Vec4f &c) override
 
void drawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3, const Vec4f &c4) override
 
void drawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal1, const Vector3 &normal2, const Vector3 &normal3, const Vector3 &normal4, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3, const Vec4f &c4) override
 
virtual void drawQuads (const std::vector< Vector3 > &points, const Vec4f &color) override
 
virtual void drawQuads (const std::vector< Vector3 > &points, const std::vector< Vec4f > &colors) override
 
void drawTetrahedron (const Vector3 &p0, const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vec4f &color) override
 
virtual void drawTetrahedra (const std::vector< Vector3 > &points, const Vec4f &color) override
 
virtual void drawScaledTetrahedra (const std::vector< Vector3 > &points, const Vec4f &color, const float scale) override
 
void drawHexahedron (const Vector3 &p0, const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &p5, const Vector3 &p6, const Vector3 &p7, const Vec4f &color) override
 
virtual void drawHexahedra (const std::vector< Vector3 > &points, const Vec4f &color) override
 
virtual void drawScaledHexahedra (const std::vector< Vector3 > &points, const Vec4f &color, const float scale) override
 
void drawSphere (const Vector3 &p, float radius) override
 
void drawSphere (const Vector3 &p, float radius, const Vec4f &color) override
 
void drawEllipsoid (const Vector3 &p, const Vector3 &radii) override
 
void drawBoundingBox (const Vector3 &min, const Vector3 &max, float size=1.0) override
 
void draw3DText (const Vector3 &p, float scale, const Vec4f &color, const char *text) override
 
virtual void draw3DText_Indices (const std::vector< Vector3 > &positions, float scale, const Vec4f &color) override
 
void clear () override
 
void setMaterial (const Vec4f &color) override
 
void resetMaterial (const Vec4f &color) override
 
void resetMaterial () override
 
void pushMatrix () override
 
void popMatrix () override
 
void multMatrix (float *glTransform) override
 
void scale (float s) override
 
void translate (float x, float y, float z) override
 
void writeOverlayText (int x, int y, unsigned fontSize, const Vec4f &color, const char *text) override
 draw 2D text at position (x,y) from top-left corner More...
 
void enablePolygonOffset (float factor, float units) override
 
void disablePolygonOffset () override
 Remove variable depth offset for polygon drawing. More...
 
void enableBlending () override
 
void disableBlending () override
 
void enableLighting () override
 
void disableLighting () override
 
void enableDepthTest () override
 
void disableDepthTest () override
 
void saveLastState () override
 
void restoreLastState () override
 
void readPixels (int x, int y, int w, int h, float *rgb, float *z=nullptr) override
 
void internalDrawSpheres (const helper::vector< Vector3 > &centers, const float &radius, const unsigned int rings, const unsigned int sectors)
 
void internalDrawSphere (const Vector3 &center, const float &radius, const unsigned int rings, const unsigned int sectors)
 
void setLightingEnabled (bool _isAnabled) override
 
bool getLightEnabled ()
 
void setPolygonMode (int _mode, bool _wireframe) override
 
int getPolygonMode ()
 
bool getWireFrameEnabled ()
 
- Public Member Functions inherited from sofa::core::visual::DrawTool
 DrawTool ()
 
virtual ~DrawTool ()
 

Protected Member Functions

virtual void internalDrawPoint (const Vector3 &p, const Vec4f &c)
 
virtual void internalDrawPoint (const Vector3 &p, const Vector3 &n, const Vec4f &c)
 
virtual void internalDrawLine (const Vector3 &p1, const Vector3 &p2, const Vec4f &color)
 
virtual void internalDrawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal)
 
virtual void internalDrawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal, const Vec4f &c)
 
virtual void internalDrawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3)
 
virtual void internalDrawTriangle (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &normal1, const Vector3 &normal2, const Vector3 &normal3, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3)
 
virtual void internalDrawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal)
 
virtual void internalDrawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal, const Vec4f &c)
 
virtual void internalDrawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3, const Vec4f &c4)
 
virtual void internalDrawQuad (const Vector3 &p1, const Vector3 &p2, const Vector3 &p3, const Vector3 &p4, const Vector3 &normal1, const Vector3 &normal2, const Vector3 &normal3, const Vector3 &normal4, const Vec4f &c1, const Vec4f &c2, const Vec4f &c3, const Vec4f &c4)
 

Attribute details

helper::gl::BasicShapesGL_FakeSphere<Vector3> sofa::core::visual::DrawToolGL::m_fakeSphereUtil
protected
helper::gl::BasicShapesGL_Sphere<Vector3> sofa::core::visual::DrawToolGL::m_sphereUtil
protected
bool sofa::core::visual::DrawToolGL::mLightEnabled
protected
int sofa::core::visual::DrawToolGL::mPolygonMode
protected
bool sofa::core::visual::DrawToolGL::mWireFrameEnabled
protected

Constructor details

sofa::core::visual::DrawToolGL::DrawToolGL ( )
sofa::core::visual::DrawToolGL::~DrawToolGL ( )
overridevirtual

Function details

void sofa::core::visual::DrawToolGL::clear ( )
overridevirtual

Reimplemented from sofa::core::visual::DrawTool.

void sofa::core::visual::DrawToolGL::disableBlending ( )
overridevirtual
void sofa::core::visual::DrawToolGL::disableDepthTest ( )
overridevirtual
void sofa::core::visual::DrawToolGL::disableLighting ( )
overridevirtual
void sofa::core::visual::DrawToolGL::disablePolygonOffset ( )
overridevirtual

Remove variable depth offset for polygon drawing.

Implements sofa::core::visual::DrawTool.

void sofa::core::visual::DrawToolGL::draw3DText ( const Vector3 p,
float  scale,
const Vec4f color,
const char *  text 
)
overridevirtual
void sofa::core::visual::DrawToolGL::draw3DText_Indices ( const std::vector< Vector3 > &  positions,
float  scale,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawArrow ( const Vector3 p1,
const Vector3 p2,
float  radius,
const Vec4f color,
int  subd = 16 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawArrow ( const Vector3 p1,
const Vector3 p2,
float  radius,
float  coneLength,
const Vec4f color,
int  subd = 16 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawArrow ( const Vector3 p1,
const Vector3 p2,
float  radius,
float  coneLength,
float  coneRadius,
const Vec4f color,
int  subd = 16 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawBoundingBox ( const Vector3 min,
const Vector3 max,
float  size = 1.0 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawCapsule ( const Vector3 p1,
const Vector3 p2,
float  radius,
const Vec4f color,
int  subd = 16 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawCircle ( float  radius,
float  lineThickness,
int  resolution,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawCone ( const Vector3 p1,
const Vector3 p2,
float  radius1,
float  radius2,
const Vec4f color,
int  subd = 16 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawCross ( const Vector3 p,
float  length,
const Vec4f colour 
)
overridevirtual

Draw a cross (3 lines) centered on p.

Implements sofa::core::visual::DrawTool.

void sofa::core::visual::DrawToolGL::drawCube ( const float radius,
const Vec4f colour,
const int subd = 16 
)
overridevirtual

Draw a cube of size one centered on the current point.

Implements sofa::core::visual::DrawTool.

void sofa::core::visual::DrawToolGL::drawCylinder ( const Vector3 p1,
const Vector3 p2,
float  radius,
const Vec4f color,
int  subd = 16 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawDisk ( float  radius,
double  from,
double  to,
int  resolution,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawEllipsoid ( const Vector3 p,
const Vector3 radii 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawFakeSpheres ( const std::vector< Vector3 > &  points,
const std::vector< float > &  radius,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawFakeSpheres ( const std::vector< Vector3 > &  points,
float  radius,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawFrame ( const Vector3 position,
const Quaternion orientation,
const Vec3f size 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawFrame ( const Vector3 position,
const Quaternion orientation,
const Vec3f size,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawHexahedra ( const std::vector< Vector3 > &  points,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawHexahedron ( const Vector3 p0,
const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 p5,
const Vector3 p6,
const Vector3 p7,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawInfiniteLine ( const Vector3 point,
const Vector3 direction,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawLine ( const Vector3 p1,
const Vector3 p2,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawLineLoop ( const std::vector< Vector3 > &  points,
float  size,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawLines ( const std::vector< Vector3 > &  points,
float  size,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawLines ( const std::vector< Vector3 > &  points,
float  size,
const std::vector< Vec4f > &  colors 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawLines ( const std::vector< Vector3 > &  points,
const std::vector< Vec2i > &  index,
float  size,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawLineStrip ( const std::vector< Vector3 > &  points,
float  size,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawPlus ( const float radius,
const Vec4f colour,
const int subd = 16 
)
overridevirtual

Draw a plus sign of size one centered on the current point.

Implements sofa::core::visual::DrawTool.

void sofa::core::visual::DrawToolGL::drawPoint ( const Vector3 p,
const Vec4f c 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawPoint ( const Vector3 p,
const Vector3 n,
const Vec4f c 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawPoints ( const std::vector< Vector3 > &  points,
float  size,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawPoints ( const std::vector< Vector3 > &  points,
float  size,
const std::vector< Vec4f > &  color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal,
const Vec4f c 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3,
const Vec4f c4 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal1,
const Vector3 normal2,
const Vector3 normal3,
const Vector3 normal4,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3,
const Vec4f c4 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawQuads ( const std::vector< Vector3 > &  points,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawQuads ( const std::vector< Vector3 > &  points,
const std::vector< Vec4f > &  colors 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawScaledHexahedra ( const std::vector< Vector3 > &  points,
const Vec4f color,
const float  scale 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawScaledTetrahedra ( const std::vector< Vector3 > &  points,
const Vec4f color,
const float  scale 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawSphere ( const Vector3 p,
float  radius 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawSphere ( const Vector3 p,
float  radius,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawSpheres ( const std::vector< Vector3 > &  points,
const std::vector< float > &  radius,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawSpheres ( const std::vector< Vector3 > &  points,
float  radius,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTetrahedra ( const std::vector< Vector3 > &  points,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTetrahedron ( const Vector3 p0,
const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal,
const Vec4f c 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal1,
const Vector3 normal2,
const Vector3 normal3,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangleFan ( const std::vector< Vector3 > &  points,
const std::vector< Vector3 > &  normal,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawTriangles ( const std::vector< Vector3 > &  points,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangles ( const std::vector< Vector3 > &  points,
const std::vector< Vec4f > &  color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawTriangles ( const std::vector< Vector3 > &  points,
const Vector3 normal,
const Vec4f color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawTriangles ( const std::vector< Vector3 > &  points,
const std::vector< Vec3i > &  index,
const std::vector< Vector3 > &  normal,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangles ( const std::vector< Vector3 > &  points,
const std::vector< Vec3i > &  index,
const std::vector< Vector3 > &  normal,
const std::vector< Vec4f > &  color 
)
overridevirtual
virtual void sofa::core::visual::DrawToolGL::drawTriangles ( const std::vector< Vector3 > &  points,
const std::vector< Vector3 > &  normal,
const std::vector< Vec4f > &  color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::drawTriangleStrip ( const std::vector< Vector3 > &  points,
const std::vector< Vector3 > &  normal,
const Vec4f color 
)
overridevirtual
void sofa::core::visual::DrawToolGL::enableBlending ( )
overridevirtual
void sofa::core::visual::DrawToolGL::enableDepthTest ( )
overridevirtual
void sofa::core::visual::DrawToolGL::enableLighting ( )
overridevirtual
void sofa::core::visual::DrawToolGL::enablePolygonOffset ( float  factor,
float  units 
)
overridevirtual

Set the scale and units used to add depth values

Parameters
factor: Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0.
units: Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0.

Implements sofa::core::visual::DrawTool.

bool sofa::core::visual::DrawToolGL::getLightEnabled ( )
inline
int sofa::core::visual::DrawToolGL::getPolygonMode ( )
inline
bool sofa::core::visual::DrawToolGL::getWireFrameEnabled ( )
inline
void sofa::core::visual::DrawToolGL::init ( void  )
overridevirtual
void sofa::core::visual::DrawToolGL::internalDrawLine ( const Vector3 p1,
const Vector3 p2,
const Vec4f color 
)
protectedvirtual
virtual void sofa::core::visual::DrawToolGL::internalDrawPoint ( const Vector3 p,
const Vec4f c 
)
protectedvirtual
virtual void sofa::core::visual::DrawToolGL::internalDrawPoint ( const Vector3 p,
const Vector3 n,
const Vec4f c 
)
protectedvirtual
void sofa::core::visual::DrawToolGL::internalDrawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal 
)
protectedvirtual
void sofa::core::visual::DrawToolGL::internalDrawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal,
const Vec4f c 
)
protectedvirtual
void sofa::core::visual::DrawToolGL::internalDrawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3,
const Vec4f c4 
)
protectedvirtual
void sofa::core::visual::DrawToolGL::internalDrawQuad ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 p4,
const Vector3 normal1,
const Vector3 normal2,
const Vector3 normal3,
const Vector3 normal4,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3,
const Vec4f c4 
)
protectedvirtual
void sofa::core::visual::DrawToolGL::internalDrawSphere ( const Vector3 center,
const float radius,
const unsigned int  rings,
const unsigned int  sectors 
)
void sofa::core::visual::DrawToolGL::internalDrawSpheres ( const helper::vector< Vector3 > &  centers,
const float radius,
const unsigned int  rings,
const unsigned int  sectors 
)
void sofa::core::visual::DrawToolGL::internalDrawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal 
)
protectedvirtual
virtual void sofa::core::visual::DrawToolGL::internalDrawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal,
const Vec4f c 
)
protectedvirtual
virtual void sofa::core::visual::DrawToolGL::internalDrawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3 
)
protectedvirtual
virtual void sofa::core::visual::DrawToolGL::internalDrawTriangle ( const Vector3 p1,
const Vector3 p2,
const Vector3 p3,
const Vector3 normal1,
const Vector3 normal2,
const Vector3 normal3,
const Vec4f c1,
const Vec4f c2,
const Vec4f c3 
)
protectedvirtual
void sofa::core::visual::DrawToolGL::multMatrix ( float glTransform)
overridevirtual
void sofa::core::visual::DrawToolGL::popMatrix ( )
overridevirtual
void sofa::core::visual::DrawToolGL::pushMatrix ( )
overridevirtual
void sofa::core::visual::DrawToolGL::readPixels ( int  x,
int  y,
int  w,
int  h,
float rgb,
float z = nullptr 
)
overridevirtual
void sofa::core::visual::DrawToolGL::resetMaterial ( const Vec4f color)
overridevirtual
void sofa::core::visual::DrawToolGL::resetMaterial ( )
overridevirtual
void sofa::core::visual::DrawToolGL::restoreLastState ( )
overridevirtual
void sofa::core::visual::DrawToolGL::saveLastState ( )
overridevirtual
void sofa::core::visual::DrawToolGL::scale ( float  s)
overridevirtual
void sofa::core::visual::DrawToolGL::setLightingEnabled ( bool  _isAnabled)
overridevirtual
void sofa::core::visual::DrawToolGL::setMaterial ( const Vec4f color)
overridevirtual
void sofa::core::visual::DrawToolGL::setPolygonMode ( int  _mode,
bool  _wireframe 
)
overridevirtual
void sofa::core::visual::DrawToolGL::translate ( float  x,
float  y,
float  z 
)
overridevirtual
void sofa::core::visual::DrawToolGL::writeOverlayText ( int  x,
int  y,
unsigned  fontSize,
const Vec4f color,
const char *  text 
)
overridevirtual

draw 2D text at position (x,y) from top-left corner

Implements sofa::core::visual::DrawTool.