Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::GeometryLoadCallback Class Reference

Defines a set of actions to be executed to a Geometry as soon as it is loaded. More...

#include <GeometryLoadCallback.hpp>

Inheritance diagram for vl::GeometryLoadCallback:
vl::LoadCallback vl::Object

List of all members.

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 mat4transformMatrix () 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

Detailed Description

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.


Constructor & Destructor Documentation

vl::GeometryLoadCallback::GeometryLoadCallback (  ) [inline]

Member Function Documentation

void vl::GeometryLoadCallback::operator() ( ResourceDatabase db ) [inline, virtual]
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.


Member Data Documentation

Definition at line 156 of file GeometryLoadCallback.hpp.

Referenced by setTransformMatrix(), and transformMatrix().

Definition at line 160 of file GeometryLoadCallback.hpp.

Referenced by GeometryLoadCallback(), removeDoubles(), and setRemoveDoubles().

Definition at line 161 of file GeometryLoadCallback.hpp.

Referenced by GeometryLoadCallback(), setSortVertices(), and sortVertices().

Definition at line 162 of file GeometryLoadCallback.hpp.

Referenced by GeometryLoadCallback(), setStripfy(), and stripfy().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.