Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Classes | Public Member Functions | Protected Attributes

vl::DoubleVertexRemover Class Reference

Removes from a Geometry the vertices with the same attributes. More...

#include <DoubleVertexRemover.hpp>

Inheritance diagram for vl::DoubleVertexRemover:
vl::VertexMapper vl::Object

List of all members.

Classes

class  CompareVertex

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 DoubleVertexRemover ()
void removeDoubles (Geometry *geom)
const std::vector< size_t > & mapNewToOld () const
const std::vector< size_t > & mapOldToNew () const

Protected Attributes

std::vector< size_t > mMapNewToOld
std::vector< size_t > mMapOldToNew

Detailed Description

Removes from a Geometry the vertices with the same attributes.

As a result also all the DrawArrays prensent in the Geometry are substituted with DrawElements.

Definition at line 62 of file DoubleVertexRemover.hpp.


Constructor & Destructor Documentation

vl::DoubleVertexRemover::DoubleVertexRemover (  ) [inline]

Definition at line 126 of file DoubleVertexRemover.hpp.


Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::VertexMapper.

Definition at line 125 of file DoubleVertexRemover.hpp.

void DoubleVertexRemover::removeDoubles ( Geometry geom )
const std::vector<size_t>& vl::DoubleVertexRemover::mapNewToOld (  ) const [inline]

Definition at line 128 of file DoubleVertexRemover.hpp.

const std::vector<size_t>& vl::DoubleVertexRemover::mapOldToNew (  ) const [inline]

Definition at line 129 of file DoubleVertexRemover.hpp.

Referenced by vl::loadMD2().


Member Data Documentation

std::vector<size_t> vl::DoubleVertexRemover::mMapNewToOld [protected]

Definition at line 132 of file DoubleVertexRemover.hpp.

Referenced by removeDoubles().

std::vector<size_t> vl::DoubleVertexRemover::mMapOldToNew [protected]

Definition at line 133 of file DoubleVertexRemover.hpp.

Referenced by removeDoubles().


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

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:38.
Permission is granted to use this page to write and publish articles regarding Visualization Library.