Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

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 ()
virtual const char * className ()
 Returns the name of the class.
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 setSortTriangles (bool on)
 Sorts the mesh's triangles for better performances.
bool sortTriangles () const
 Sorts the mesh's triangles 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 Primitives into DrawArrays. Useful in conjuction with setStripfy(true).
void setConvertToDrawArrays (bool on)
 Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true).
void setUseDisplayLists (bool on)
 Enable display lists usage (overrides VBOs).
bool useDisplayLists () const
 Enable display lists usage (overrides VBOs).
void setUseVBOs (bool on)
 Enable VBO usage if display lists are disabled.
bool useVBOs () const
 Enable VBO 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().

Protected Attributes

mat4 mMatrix
bool mTransformGeometry
bool mDiscardOriginalNormals
bool mComputeNormals
bool mRemoveDoubles
bool mSortTriangles
bool mSortVertices
bool mStripfy
bool mConvertToDrawArrays
bool mUseDisplayLists
bool mUseVBOs


Detailed Description

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

Constructor & Destructor Documentation

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


Member Function Documentation

virtual const char* vl::GeometryLoadCallback::className (  )  [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Object.

void vl::GeometryLoadCallback::operator() ( ResourceDatabase db  )  [inline, virtual]

Implements vl::LoadCallback.

bool vl::GeometryLoadCallback::discardOriginalNormals (  )  const [inline]

Discards the original normals.

void vl::GeometryLoadCallback::setDiscardOriginalNormals ( bool  on  )  [inline]

Discards the original normals.

bool vl::GeometryLoadCallback::computeNormals (  )  const [inline]

Compute normals if not present.

void vl::GeometryLoadCallback::setComputeNormals ( bool  cn  )  [inline]

Compute normals if not present.

bool vl::GeometryLoadCallback::removeDoubles (  )  const [inline]

Remove duplicated vertices.

void vl::GeometryLoadCallback::setRemoveDoubles ( bool  rd  )  [inline]

Remove duplicated vertices.

void vl::GeometryLoadCallback::setSortVertices ( bool  on  )  [inline]

Sorts the mesh's vertices for better performances.

bool vl::GeometryLoadCallback::sortVertices (  )  const [inline]

Sorts the mesh's vertices for better performances.

void vl::GeometryLoadCallback::setSortTriangles ( bool  on  )  [inline]

Sorts the mesh's triangles for better performances.

bool vl::GeometryLoadCallback::sortTriangles (  )  const [inline]

Sorts the mesh's triangles for better performances.

void vl::GeometryLoadCallback::setStripfy ( bool  on  )  [inline]

Convert mesh into a set of triangle strips if possible.

bool vl::GeometryLoadCallback::stripfy (  )  const [inline]

Convert mesh into a set of triangle strips if possible.

bool vl::GeometryLoadCallback::convertToDrawArrays (  )  const [inline]

Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true).

void vl::GeometryLoadCallback::setConvertToDrawArrays ( bool  on  )  [inline]

Converts the Geometry Primitives into DrawArrays. Useful in conjuction with setStripfy(true).

void vl::GeometryLoadCallback::setUseDisplayLists ( bool  on  )  [inline]

Enable display lists usage (overrides VBOs).

bool vl::GeometryLoadCallback::useDisplayLists (  )  const [inline]

Enable display lists usage (overrides VBOs).

void vl::GeometryLoadCallback::setUseVBOs ( bool  on  )  [inline]

Enable VBO usage if display lists are disabled.

bool vl::GeometryLoadCallback::useVBOs (  )  const [inline]

Enable VBO usage if display lists are disabled.

const mat4& vl::GeometryLoadCallback::transformMatrix (  )  const [inline]

void vl::GeometryLoadCallback::setTransformMatrix ( const mat4 m  )  [inline]

bool vl::GeometryLoadCallback::transformGeometry (  )  const [inline]

Transforms the Geometries using transformMatrix().

void vl::GeometryLoadCallback::setTransformGeometry ( bool  on  )  [inline]

Transforms the Geometries using transformMatrix().


Member Data Documentation


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

Visualization Library v2010.06 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Tue Jun 1 00:57:17 2010.
Permission is granted to use this page to write and publish articles regarding Visualization Library.