Visualization Library

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

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.06 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Tue Jun 1 00:57:13 2010.
Permission is granted to use this page to write and publish articles regarding Visualization Library.