GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
gl3::GlDrawable Class Reference

#include <types.hpp>

Public Member Functions

void addText (float x, float y, float z, const std::string &text)
 Adds a string at the given position in object coordinates. More...
 
void addText (float x, float y, float z, int ox, int oy, const std::string &text)
 Adds a string at the given position in object coordinates with an offset in pixels. More...
 
template<typename Vert >
void addLine (const Vert &v1, const Vert &v2)
 
template<typename Vert >
void addLines (const std::vector< Vert > &verts)
 
template<typename Vert >
void addTriangle (const Vert &v1, const Vert &v2, const Vert &v3)
 
template<typename Vert >
void addQuad (const Vert &v1, const Vert &v2, const Vert &v3, const Vert &v4)
 
template<typename Vert >
void addTriangleIndexed (const std::vector< Vert > &verts, const std::vector< int > &inds)
 
template<typename Vert >
void addQuadIndexed (const std::vector< Vert > &verts, const std::vector< int > &inds)
 
void addCone (float x, float y, float z, float vx, float vy, float vz, float cone_scale=0.075)
 
GlBuilder createBuilder ()
 
void clear ()
 Clears the drawable object. More...
 

Friends

class GlBuilder
 
class MeshRenderer
 
class ::VisualizationScene
 

Detailed Description

Definition at line 594 of file types.hpp.

Member Function Documentation

void GlDrawable::addCone ( float  x,
float  y,
float  z,
float  vx,
float  vy,
float  vz,
float  cone_scale = 0.075 
)

Definition at line 19 of file types.cpp.

template<typename Vert >
void gl3::GlDrawable::addLine ( const Vert &  v1,
const Vert &  v2 
)
inline

Definition at line 672 of file types.hpp.

template<typename Vert >
void gl3::GlDrawable::addLines ( const std::vector< Vert > &  verts)
inline

Definition at line 679 of file types.hpp.

template<typename Vert >
void gl3::GlDrawable::addQuad ( const Vert &  v1,
const Vert &  v2,
const Vert &  v3,
const Vert &  v4 
)
inline

Definition at line 693 of file types.hpp.

template<typename Vert >
void gl3::GlDrawable::addQuadIndexed ( const std::vector< Vert > &  verts,
const std::vector< int > &  inds 
)
inline

Definition at line 711 of file types.hpp.

void gl3::GlDrawable::addText ( float  x,
float  y,
float  z,
const std::string &  text 
)
inline

Adds a string at the given position in object coordinates.

Definition at line 658 of file types.hpp.

void gl3::GlDrawable::addText ( float  x,
float  y,
float  z,
int  ox,
int  oy,
const std::string &  text 
)
inline

Adds a string at the given position in object coordinates with an offset in pixels.

Definition at line 665 of file types.hpp.

template<typename Vert >
void gl3::GlDrawable::addTriangle ( const Vert &  v1,
const Vert &  v2,
const Vert &  v3 
)
inline

Definition at line 685 of file types.hpp.

template<typename Vert >
void gl3::GlDrawable::addTriangleIndexed ( const std::vector< Vert > &  verts,
const std::vector< int > &  inds 
)
inline

Definition at line 704 of file types.hpp.

void gl3::GlDrawable::clear ( )
inline

Clears the drawable object.

Definition at line 737 of file types.hpp.

GlBuilder gl3::GlDrawable::createBuilder ( )
inline

Definition at line 731 of file types.hpp.

Friends And Related Function Documentation

friend class ::VisualizationScene
friend

Definition at line 604 of file types.hpp.

friend class GlBuilder
friend

Definition at line 602 of file types.hpp.

friend class MeshRenderer
friend

Definition at line 603 of file types.hpp.


The documentation for this class was generated from the following files: