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

#include <types.hpp>

Inheritance diagram for gl3::TextBuffer:
[legend]
Collaboration diagram for gl3::TextBuffer:
[legend]

Classes

struct  Entry
 

Public Types

typedef std::vector< Entry >
::iterator 
Iterator
 
typedef std::vector< Entry >
::const_iterator 
ConstIterator
 

Public Member Functions

 TextBuffer ()
 
 ~TextBuffer ()
 
void addText (float x, float y, float z, int ox, int oy, const std::string &text)
 
Iterator begin ()
 Gets an iterator referencing the first text entry. More...
 
ConstIterator begin () const
 
Iterator end ()
 Gets an iterator pointing to the last text entry. More...
 
ConstIterator end () const
 
virtual void clear ()
 Clears the data stored in the vertex buffer. More...
 
virtual size_t count () const
 Gets the number of vertices contained in the buffer. More...
 
virtual GLenum getShape () const
 Gets the primitive type contained by the vertex buffer. More...
 
virtual size_t getStride () const
 Gets the stride between vertices. More...
 
virtual const void * getData () const
 
- Public Member Functions inherited from gl3::IVertexBuffer
 IVertexBuffer ()
 
virtual ~IVertexBuffer ()
 
int getHandle () const
 
void setHandle (int dev_hnd)
 

Detailed Description

Definition at line 548 of file types.hpp.

Member Typedef Documentation

typedef std::vector<Entry>::const_iterator gl3::TextBuffer::ConstIterator

Definition at line 561 of file types.hpp.

typedef std::vector<Entry>::iterator gl3::TextBuffer::Iterator

Definition at line 560 of file types.hpp.

Constructor & Destructor Documentation

gl3::TextBuffer::TextBuffer ( )
inline

Definition at line 567 of file types.hpp.

gl3::TextBuffer::~TextBuffer ( )
inline

Definition at line 568 of file types.hpp.

Member Function Documentation

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

Adds a text element at the specified local space (pre-transform) coordinates.

Definition at line 572 of file types.hpp.

Iterator gl3::TextBuffer::begin ( )
inline

Gets an iterator referencing the first text entry.

Definition at line 580 of file types.hpp.

ConstIterator gl3::TextBuffer::begin ( ) const
inline

Definition at line 581 of file types.hpp.

virtual void gl3::TextBuffer::clear ( )
inlinevirtual

Clears the data stored in the vertex buffer.

Implements gl3::IVertexBuffer.

Definition at line 587 of file types.hpp.

virtual size_t gl3::TextBuffer::count ( ) const
inlinevirtual

Gets the number of vertices contained in the buffer.

Implements gl3::IVertexBuffer.

Definition at line 588 of file types.hpp.

Iterator gl3::TextBuffer::end ( )
inline

Gets an iterator pointing to the last text entry.

Definition at line 584 of file types.hpp.

ConstIterator gl3::TextBuffer::end ( ) const
inline

Definition at line 585 of file types.hpp.

virtual const void* gl3::TextBuffer::getData ( ) const
inlinevirtual

Implements gl3::IVertexBuffer.

Definition at line 591 of file types.hpp.

virtual GLenum gl3::TextBuffer::getShape ( ) const
inlinevirtual

Gets the primitive type contained by the vertex buffer.

Implements gl3::IVertexBuffer.

Definition at line 589 of file types.hpp.

virtual size_t gl3::TextBuffer::getStride ( ) const
inlinevirtual

Gets the stride between vertices.

Implements gl3::IVertexBuffer.

Definition at line 590 of file types.hpp.


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