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.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::VertexMapper.

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

Member Data Documentation

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

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

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 03:13:30.
Permission is granted to use this page to write and publish articles regarding Visualization Library.