Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <Array.hpp>

Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual size_t | glSize () const |
| Returns the number of scalar components for the array, ie 3 for ArrayFVec3, 1 for ArrayUInt etc. | |
| virtual int | glType () const |
| Returns the OpenGL type for the array, ie GL_FLOAT for ArrayFVec3, GL_UNSIGNED_INT for ArrayUInt etc. | |
| virtual ref< ArrayAbstract > | clone () const |
| void | clear () |
| void | resize (size_t dim) |
| size_t | size () const |
| Returns the number of elements of an array. | |
| size_t | sizeGPU () const |
| size_t | scalarCount () const |
| size_t | scalarCountGPU () const |
| const vector_type * | begin () const |
| vector_type * | begin () |
| const vector_type * | end () const |
| vector_type * | end () |
| vector_type & | at (size_t i) |
| const vector_type & | at (size_t i) const |
| vector_type & | operator[] (size_t i) |
| const vector_type & | operator[] (size_t i) const |
| virtual size_t | bytesPerVector () const |
| Sphere | computeBoundingSphere () const |
| Computes the bounding sphere enclosing the vectors contained in the buffer. | |
| AABB | computeBoundingBox () const |
| Computes the axis aligned bounding box enclosing the vectors contained in the buffer. | |
| void | transform (const mat4 &m) |
| Transforms the vectors contained in the buffer. | |
| void | normalize () |
| Normalizes the vectors contained in the buffer. | |
| vec4 | vectorAsVec4 (size_t vector_index) const |
Returns a vector from the buffer as a vec4 value. | |
| int | compare (int a, int b) const |
| Compares two vectors. | |
| void | operator= (const std::vector< vector_type > &vector) |
| virtual const char* vl::Array< vector_type, scalar_type, gl_size, gl_type >::className | ( | ) | [inline, virtual] |
| virtual size_t vl::Array< vector_type, scalar_type, gl_size, gl_type >::glSize | ( | ) | const [inline, virtual] |
Returns the number of scalar components for the array, ie 3 for ArrayFVec3, 1 for ArrayUInt etc.
Implements vl::ArrayAbstract.
| virtual int vl::Array< vector_type, scalar_type, gl_size, gl_type >::glType | ( | ) | const [inline, virtual] |
Returns the OpenGL type for the array, ie GL_FLOAT for ArrayFVec3, GL_UNSIGNED_INT for ArrayUInt etc.
Implements vl::ArrayAbstract.
| virtual ref<ArrayAbstract> vl::Array< vector_type, scalar_type, gl_size, gl_type >::clone | ( | ) | const [inline, virtual] |
Implements vl::ArrayAbstract.
| void vl::Array< vector_type, scalar_type, gl_size, gl_type >::clear | ( | ) | [inline] |
Reimplemented from vl::ArrayAbstract.
| void vl::Array< vector_type, scalar_type, gl_size, gl_type >::resize | ( | size_t | dim | ) | [inline] |
| size_t vl::Array< vector_type, scalar_type, gl_size, gl_type >::size | ( | ) | const [inline, virtual] |
| size_t vl::Array< vector_type, scalar_type, gl_size, gl_type >::sizeGPU | ( | ) | const [inline] |
| size_t vl::Array< vector_type, scalar_type, gl_size, gl_type >::scalarCount | ( | ) | const [inline] |
| size_t vl::Array< vector_type, scalar_type, gl_size, gl_type >::scalarCountGPU | ( | ) | const [inline] |
| const vector_type* vl::Array< vector_type, scalar_type, gl_size, gl_type >::begin | ( | ) | const [inline] |
| vector_type* vl::Array< vector_type, scalar_type, gl_size, gl_type >::begin | ( | ) | [inline] |
| const vector_type* vl::Array< vector_type, scalar_type, gl_size, gl_type >::end | ( | ) | const [inline] |
| vector_type* vl::Array< vector_type, scalar_type, gl_size, gl_type >::end | ( | ) | [inline] |
| vector_type& vl::Array< vector_type, scalar_type, gl_size, gl_type >::at | ( | size_t | i | ) | [inline] |
| const vector_type& vl::Array< vector_type, scalar_type, gl_size, gl_type >::at | ( | size_t | i | ) | const [inline] |
| vector_type& vl::Array< vector_type, scalar_type, gl_size, gl_type >::operator[] | ( | size_t | i | ) | [inline] |
| const vector_type& vl::Array< vector_type, scalar_type, gl_size, gl_type >::operator[] | ( | size_t | i | ) | const [inline] |
| virtual size_t vl::Array< vector_type, scalar_type, gl_size, gl_type >::bytesPerVector | ( | ) | const [inline, virtual] |
| Sphere vl::Array< vector_type, scalar_type, gl_size, gl_type >::computeBoundingSphere | ( | ) | const [inline, virtual] |
Computes the bounding sphere enclosing the vectors contained in the buffer.
Implements vl::ArrayAbstract.
| AABB vl::Array< vector_type, scalar_type, gl_size, gl_type >::computeBoundingBox | ( | ) | const [inline, virtual] |
Computes the axis aligned bounding box enclosing the vectors contained in the buffer.
Implements vl::ArrayAbstract.
| void vl::Array< vector_type, scalar_type, gl_size, gl_type >::normalize | ( | ) | [inline, virtual] |
| int vl::Array< vector_type, scalar_type, gl_size, gl_type >::compare | ( | int | a, | |
| int | b | |||
| ) | const [inline, virtual] |
| void vl::Array< vector_type, scalar_type, gl_size, gl_type >::operator= | ( | const std::vector< vector_type > & | vector | ) | [inline] |