Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Defines a set of actions to be executed to a Geometry as soon as it is loaded. More...
#include <GeometryLoadCallback.hpp>
Public Member Functions | |
| GeometryLoadCallback () | |
| void | operator() (ResourceDatabase *db) |
| bool | discardOriginalNormals () const |
| Discards the original normals. | |
| void | setDiscardOriginalNormals (bool on) |
| Discards the original normals. | |
| bool | computeNormals () const |
| Compute normals if not present. | |
| void | setComputeNormals (bool cn) |
| Compute normals if not present. | |
| bool | removeDoubles () const |
| Remove duplicated vertices. | |
| void | setRemoveDoubles (bool rd) |
| Remove duplicated vertices. | |
| void | setSortVertices (bool on) |
| Sorts the mesh's vertices for better performances. | |
| bool | sortVertices () const |
| Sorts the mesh's vertices for better performances. | |
| void | setStripfy (bool on) |
| Convert mesh into a set of triangle strips if possible. | |
| bool | stripfy () const |
| Convert mesh into a set of triangle strips if possible. | |
| bool | convertToDrawArrays () const |
Converts the Geometry DrawCall into DrawArrays. Useful in conjuction with setStripfy(true). | |
| void | setConvertToDrawArrays (bool on) |
Converts the Geometry DrawCall into DrawArrays. Useful in conjuction with setStripfy(true). | |
| void | setUseDisplayLists (bool on) |
| Enable display lists usage (overrides BufferObjects) | |
| bool | useDisplayLists () const |
| Enable display lists usage (overrides BufferObjects) | |
| void | setUseBufferObjects (bool on) |
| Enable BufferObject usage if display lists are disabled. | |
| bool | useBufferObjects () const |
| Enable BufferObject usage if display lists are disabled. | |
| const mat4 & | transformMatrix () const |
| void | setTransformMatrix (const mat4 &m) |
| bool | transformGeometry () const |
| Transforms the Geometries using transformMatrix(). | |
| void | setTransformGeometry (bool on) |
| Transforms the Geometries using transformMatrix(). | |
| bool | makeGLESFriendly () const |
| If true calls Geometry::makeGLESFriendly() | |
| void | setMakeGLESFriendly (bool on) |
| If true calls Geometry::makeGLESFriendly() | |
Protected Attributes | |
| mat4 | mMatrix |
| bool | mTransformGeometry |
| bool | mDiscardOriginalNormals |
| bool | mComputeNormals |
| bool | mRemoveDoubles |
| bool | mSortVertices |
| bool | mStripfy |
| bool | mConvertToDrawArrays |
| bool | mUseDisplayLists |
| bool | mUseBufferObjects |
| bool | mMakeGLESFriendly |
Defines a set of actions to be executed to a Geometry as soon as it is loaded.
Definition at line 45 of file GeometryLoadCallback.hpp.
| vl::GeometryLoadCallback::GeometryLoadCallback | ( | ) | [inline] |
Definition at line 50 of file GeometryLoadCallback.hpp.
References mComputeNormals, mConvertToDrawArrays, mDiscardOriginalNormals, mMakeGLESFriendly, mRemoveDoubles, mSortVertices, mStripfy, mTransformGeometry, mUseBufferObjects, and mUseDisplayLists.
| void vl::GeometryLoadCallback::operator() | ( | ResourceDatabase * | db | ) | [inline, virtual] |
Implements vl::LoadCallback.
Definition at line 64 of file GeometryLoadCallback.hpp.
References computeNormals(), convertToDrawArrays(), discardOriginalNormals(), vl::ResourceDatabase::get(), makeGLESFriendly(), NULL, vl::DoubleVertexRemover::removeDoubles(), removeDoubles(), setRemoveDoubles(), sortVertices(), vl::TriangleStripGenerator::stripfy(), stripfy(), transformGeometry(), transformMatrix(), useBufferObjects(), and useDisplayLists().
| bool vl::GeometryLoadCallback::discardOriginalNormals | ( | ) | const [inline] |
Discards the original normals.
Definition at line 103 of file GeometryLoadCallback.hpp.
References mDiscardOriginalNormals.
Referenced by operator()().
| void vl::GeometryLoadCallback::setDiscardOriginalNormals | ( | bool | on | ) | [inline] |
Discards the original normals.
Definition at line 105 of file GeometryLoadCallback.hpp.
References mDiscardOriginalNormals.
| bool vl::GeometryLoadCallback::computeNormals | ( | ) | const [inline] |
Compute normals if not present.
Definition at line 108 of file GeometryLoadCallback.hpp.
References mComputeNormals.
Referenced by operator()().
| void vl::GeometryLoadCallback::setComputeNormals | ( | bool | cn | ) | [inline] |
Compute normals if not present.
Definition at line 110 of file GeometryLoadCallback.hpp.
References mComputeNormals.
| bool vl::GeometryLoadCallback::removeDoubles | ( | ) | const [inline] |
Remove duplicated vertices.
Definition at line 113 of file GeometryLoadCallback.hpp.
References mRemoveDoubles.
Referenced by operator()().
| void vl::GeometryLoadCallback::setRemoveDoubles | ( | bool | rd | ) | [inline] |
Remove duplicated vertices.
Definition at line 115 of file GeometryLoadCallback.hpp.
References mRemoveDoubles.
Referenced by operator()().
| void vl::GeometryLoadCallback::setSortVertices | ( | bool | on | ) | [inline] |
Sorts the mesh's vertices for better performances.
Definition at line 118 of file GeometryLoadCallback.hpp.
References mSortVertices.
| bool vl::GeometryLoadCallback::sortVertices | ( | ) | const [inline] |
Sorts the mesh's vertices for better performances.
Definition at line 120 of file GeometryLoadCallback.hpp.
References mSortVertices.
Referenced by operator()().
| void vl::GeometryLoadCallback::setStripfy | ( | bool | on | ) | [inline] |
Convert mesh into a set of triangle strips if possible.
Definition at line 123 of file GeometryLoadCallback.hpp.
References mStripfy.
| bool vl::GeometryLoadCallback::stripfy | ( | ) | const [inline] |
Convert mesh into a set of triangle strips if possible.
Definition at line 125 of file GeometryLoadCallback.hpp.
References mStripfy.
Referenced by operator()().
| bool vl::GeometryLoadCallback::convertToDrawArrays | ( | ) | const [inline] |
Converts the Geometry DrawCall into DrawArrays. Useful in conjuction with setStripfy(true).
Definition at line 128 of file GeometryLoadCallback.hpp.
References mConvertToDrawArrays.
Referenced by operator()().
| void vl::GeometryLoadCallback::setConvertToDrawArrays | ( | bool | on | ) | [inline] |
Converts the Geometry DrawCall into DrawArrays. Useful in conjuction with setStripfy(true).
Definition at line 130 of file GeometryLoadCallback.hpp.
References mConvertToDrawArrays.
| void vl::GeometryLoadCallback::setUseDisplayLists | ( | bool | on | ) | [inline] |
Enable display lists usage (overrides BufferObjects)
Definition at line 133 of file GeometryLoadCallback.hpp.
References mUseDisplayLists.
| bool vl::GeometryLoadCallback::useDisplayLists | ( | ) | const [inline] |
Enable display lists usage (overrides BufferObjects)
Definition at line 135 of file GeometryLoadCallback.hpp.
References mUseDisplayLists.
Referenced by operator()().
| void vl::GeometryLoadCallback::setUseBufferObjects | ( | bool | on | ) | [inline] |
Enable BufferObject usage if display lists are disabled.
Definition at line 138 of file GeometryLoadCallback.hpp.
References mUseBufferObjects.
| bool vl::GeometryLoadCallback::useBufferObjects | ( | ) | const [inline] |
Enable BufferObject usage if display lists are disabled.
Definition at line 140 of file GeometryLoadCallback.hpp.
References mUseBufferObjects.
Referenced by operator()().
| const mat4& vl::GeometryLoadCallback::transformMatrix | ( | ) | const [inline] |
Definition at line 142 of file GeometryLoadCallback.hpp.
References mMatrix.
Referenced by operator()().
| void vl::GeometryLoadCallback::setTransformMatrix | ( | const mat4 & | m | ) | [inline] |
Definition at line 143 of file GeometryLoadCallback.hpp.
References mMatrix.
| bool vl::GeometryLoadCallback::transformGeometry | ( | ) | const [inline] |
Transforms the Geometries using transformMatrix().
Definition at line 146 of file GeometryLoadCallback.hpp.
References mTransformGeometry.
Referenced by operator()().
| void vl::GeometryLoadCallback::setTransformGeometry | ( | bool | on | ) | [inline] |
Transforms the Geometries using transformMatrix().
Definition at line 148 of file GeometryLoadCallback.hpp.
References mTransformGeometry.
| bool vl::GeometryLoadCallback::makeGLESFriendly | ( | ) | const [inline] |
If true calls Geometry::makeGLESFriendly()
Definition at line 151 of file GeometryLoadCallback.hpp.
References mMakeGLESFriendly.
Referenced by operator()().
| void vl::GeometryLoadCallback::setMakeGLESFriendly | ( | bool | on | ) | [inline] |
If true calls Geometry::makeGLESFriendly()
Definition at line 153 of file GeometryLoadCallback.hpp.
References mMakeGLESFriendly.
mat4 vl::GeometryLoadCallback::mMatrix [protected] |
Definition at line 156 of file GeometryLoadCallback.hpp.
Referenced by setTransformMatrix(), and transformMatrix().
bool vl::GeometryLoadCallback::mTransformGeometry [protected] |
Definition at line 157 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), setTransformGeometry(), and transformGeometry().
bool vl::GeometryLoadCallback::mDiscardOriginalNormals [protected] |
Definition at line 158 of file GeometryLoadCallback.hpp.
Referenced by discardOriginalNormals(), GeometryLoadCallback(), and setDiscardOriginalNormals().
bool vl::GeometryLoadCallback::mComputeNormals [protected] |
Definition at line 159 of file GeometryLoadCallback.hpp.
Referenced by computeNormals(), GeometryLoadCallback(), and setComputeNormals().
bool vl::GeometryLoadCallback::mRemoveDoubles [protected] |
Definition at line 160 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), removeDoubles(), and setRemoveDoubles().
bool vl::GeometryLoadCallback::mSortVertices [protected] |
Definition at line 161 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), setSortVertices(), and sortVertices().
bool vl::GeometryLoadCallback::mStripfy [protected] |
Definition at line 162 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), setStripfy(), and stripfy().
bool vl::GeometryLoadCallback::mConvertToDrawArrays [protected] |
Definition at line 163 of file GeometryLoadCallback.hpp.
Referenced by convertToDrawArrays(), GeometryLoadCallback(), and setConvertToDrawArrays().
bool vl::GeometryLoadCallback::mUseDisplayLists [protected] |
Definition at line 164 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), setUseDisplayLists(), and useDisplayLists().
bool vl::GeometryLoadCallback::mUseBufferObjects [protected] |
Definition at line 165 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), setUseBufferObjects(), and useBufferObjects().
bool vl::GeometryLoadCallback::mMakeGLESFriendly [protected] |
Definition at line 166 of file GeometryLoadCallback.hpp.
Referenced by GeometryLoadCallback(), makeGLESFriendly(), and setMakeGLESFriendly().