# Visualization Library

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

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Member Functions | Protected Attributes | Friends

# vl::PolygonSimplifier::Vertex Class Reference

A Vertex as defined by PolygonSimplifier. More...

`#include <PolygonSimplifier.hpp>`

List of all members.

## Public Member Functions

| Vertex ()
void | addAdjacentVertex (Vertex *v)
void | removeAdjacentVertex (Vertex *v)
void | computeAdjacentVertices ()
bool | checkConnectivity ()
bool | isAdjacentVertex (Vertex *) const
bool | isIncidentTriangle (Triangle *) const
void | discardRemovedTriangles ()
void | removeIncidentTriangle (const Triangle *)
bool | checkTriangles () const
void | computeEdgePenalty ()
const fvec3 & | position () const
| the position
int | adjacentVerticesCount () const
| ajacent vertices
Vertex * | adjacentVertex (int index) const
int | incidentTrianglesCount () const
| adjacent triangles
Triangle * | incidentTriangle (int index) const
Vertex * | collapseVertex () const
| vertex to which collapse
float | collapseCost () const
| cost of the collapse
const fvec3 & | collapsePosition () const
| collapse position
void | setCollapsePosition (const fvec3 &pos)
int | removeOrder () const
| when the vertex has collapsed
bool | removed () const
| has the vertex been removed
bool | isProtected () const
| is the vertex protected?
int | originalIndex () const
| original index of this vertex
int | simplifiedIndex () const
| Internally used to regenerated the index buffer.
bool | alreadyProcessed () const
| Internally used.
const QErr & | qerr () const
| Accumulated vertex error.
void | setQErr (const QErr &qerr)
void | addQErr (const QErr &qerr)

## Protected Attributes

QErr | mQErr
fvec3 | mPosition
| the position
std::vector< Vertex * > | mAdjacentVerts
| ajacent vertices
std::vector< Triangle * > | mIncidentTriangles
| adjacent triangles
Vertex * | mCollapseVertex
| vertex to which collapse
float | mCollapseCost
| cost of the collapse
fvec3 | mCollapsePosition
| the collapse position
int | mOriginalIndex
| original index of this vertex
int | mSimplifiedIndex
| only used during index buffer regeneration
int | mRemoveOrder
| when the vertex has collapsed
bool | mRemoved
| has the vertex been removed
bool | mProtected
| is the vertex protected?
bool | mAlreadyProcessed
| internally used

## Friends

class | Triangle
class | PolygonSimplifier

## Detailed Description

A Vertex as defined by PolygonSimplifier.

Definition at line 237 of file PolygonSimplifier.hpp.

## Constructor & Destructor Documentation

vl::PolygonSimplifier::Vertex::Vertex | ( | ) | `[inline]`

Definition at line 242 of file PolygonSimplifier.hpp.

## Member Function Documentation

void vl::PolygonSimplifier::Vertex::addAdjacentVertex | ( | Vertex * | v ) | `[inline]`

Definition at line 365 of file PolygonSimplifier.hpp.

References adjacentVerticesCount(), and mAdjacentVerts.

void vl::PolygonSimplifier::Vertex::removeAdjacentVertex | ( | Vertex * | v ) | `[inline]`

Definition at line 376 of file PolygonSimplifier.hpp.

References VL_CHECK.

void vl::PolygonSimplifier::Vertex::computeAdjacentVertices | ( | ) | `[inline]`

Definition at line 388 of file PolygonSimplifier.hpp.

References VL_CHECK.

bool vl::PolygonSimplifier::Vertex::checkConnectivity | ( | ) | `[inline]`

Definition at line 470 of file PolygonSimplifier.hpp.

References mAdjacentVerts, removed(), and VL_CHECK.

Referenced by vl::PolygonSimplifier::collapse().

bool vl::PolygonSimplifier::Vertex::isAdjacentVertex | ( | Vertex * | v ) | const`[inline]`

Definition at line 454 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse().

bool vl::PolygonSimplifier::Vertex::isIncidentTriangle | ( | Triangle * | t ) | const`[inline]`

Definition at line 462 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse().

void vl::PolygonSimplifier::Vertex::discardRemovedTriangles | ( | ) | `[inline]`

Definition at line 445 of file PolygonSimplifier.hpp.

void vl::PolygonSimplifier::Vertex::removeIncidentTriangle | ( | const Triangle * | tri ) | `[inline]`

Definition at line 433 of file PolygonSimplifier.hpp.

bool vl::PolygonSimplifier::Vertex::checkTriangles | ( | ) | const`[inline]`

Definition at line 401 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse().

void vl::PolygonSimplifier::Vertex::computeEdgePenalty | ( | ) | `[inline]`

Definition at line 409 of file PolygonSimplifier.hpp.

References vl::cross(), vl::dot(), and vl::Vector3< T_Scalar >::normalize().

const fvec3& vl::PolygonSimplifier::Vertex::position | ( | ) | const`[inline]`

the position

Definition at line 259 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::computeCollapseInfo().

int vl::PolygonSimplifier::Vertex::adjacentVerticesCount | ( | ) | const`[inline]`

ajacent vertices

Definition at line 261 of file PolygonSimplifier.hpp.

Referenced by addAdjacentVertex(), vl::PolygonSimplifier::collapse(), vl::PolygonSimplifier::computeCollapseInfo(), and vl::PolygonSimplifier::simplify().

Vertex* vl::PolygonSimplifier::Vertex::adjacentVertex | ( | int | index ) | const`[inline]`

Definition at line 262 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::simplify().

int vl::PolygonSimplifier::Vertex::incidentTrianglesCount | ( | ) | const`[inline]`

adjacent triangles

Definition at line 264 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::computeCollapseInfo().

Triangle* vl::PolygonSimplifier::Vertex::incidentTriangle | ( | int | index ) | const`[inline]`

Definition at line 265 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::computeCollapseInfo().

Vertex* vl::PolygonSimplifier::Vertex::collapseVertex | ( | ) | const`[inline]`

vertex to which collapse

Definition at line 267 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::simplify().

float vl::PolygonSimplifier::Vertex::collapseCost | ( | ) | const`[inline]`

cost of the collapse

Definition at line 269 of file PolygonSimplifier.hpp.

const fvec3& vl::PolygonSimplifier::Vertex::collapsePosition | ( | ) | const`[inline]`

collapse position

Definition at line 271 of file PolygonSimplifier.hpp.

void vl::PolygonSimplifier::Vertex::setCollapsePosition | ( | const fvec3 & | pos ) | `[inline]`

Definition at line 272 of file PolygonSimplifier.hpp.

int vl::PolygonSimplifier::Vertex::removeOrder | ( | ) | const`[inline]`

when the vertex has collapsed

Definition at line 274 of file PolygonSimplifier.hpp.

bool vl::PolygonSimplifier::Vertex::removed | ( | ) | const`[inline]`

has the vertex been removed

Definition at line 276 of file PolygonSimplifier.hpp.

Referenced by checkConnectivity(), vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::simplify().

bool vl::PolygonSimplifier::Vertex::isProtected | ( | ) | const`[inline]`

is the vertex protected?

Definition at line 278 of file PolygonSimplifier.hpp.

int vl::PolygonSimplifier::Vertex::originalIndex | ( | ) | const`[inline]`

original index of this vertex

Definition at line 280 of file PolygonSimplifier.hpp.

int vl::PolygonSimplifier::Vertex::simplifiedIndex | ( | ) | const`[inline]`

Internally used to regenerated the index buffer.

Definition at line 282 of file PolygonSimplifier.hpp.

bool vl::PolygonSimplifier::Vertex::alreadyProcessed | ( | ) | const`[inline]`

Internally used.

Definition at line 284 of file PolygonSimplifier.hpp.

const QErr& vl::PolygonSimplifier::Vertex::qerr | ( | ) | const`[inline]`

Accumulated vertex error.

Definition at line 286 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::computeCollapseInfo().

void vl::PolygonSimplifier::Vertex::setQErr | ( | const QErr & | qerr ) | `[inline]`

Definition at line 287 of file PolygonSimplifier.hpp.

void vl::PolygonSimplifier::Vertex::addQErr | ( | const QErr & | qerr ) | `[inline]`

Definition at line 288 of file PolygonSimplifier.hpp.

## Friends And Related Function Documentation

friend class Triangle`[friend]`

Definition at line 239 of file PolygonSimplifier.hpp.

friend class PolygonSimplifier`[friend]`

Definition at line 240 of file PolygonSimplifier.hpp.

## Member Data Documentation

QErr vl::PolygonSimplifier::Vertex::mQErr`[protected]`

Definition at line 291 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse().

fvec3 vl::PolygonSimplifier::Vertex::mPosition`[protected]`

the position

Definition at line 293 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse(), vl::PolygonSimplifier::Triangle::computePotentialArea(), and vl::PolygonSimplifier::Triangle::computePotentialNormal().

std::vector< Vertex* > vl::PolygonSimplifier::Vertex::mAdjacentVerts`[protected]`

ajacent vertices

Definition at line 295 of file PolygonSimplifier.hpp.

Referenced by addAdjacentVertex(), checkConnectivity(), vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::computeCollapseInfo().

std::vector< Triangle* > vl::PolygonSimplifier::Vertex::mIncidentTriangles`[protected]`

adjacent triangles

Definition at line 297 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse().

Vertex* vl::PolygonSimplifier::Vertex::mCollapseVertex`[protected]`

vertex to which collapse

Definition at line 299 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::computeCollapseInfo().

float vl::PolygonSimplifier::Vertex::mCollapseCost`[protected]`

cost of the collapse

Definition at line 301 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::computeCollapseInfo().

fvec3 vl::PolygonSimplifier::Vertex::mCollapsePosition`[protected]`

the collapse position

Definition at line 303 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::computeCollapseInfo().

int vl::PolygonSimplifier::Vertex::mOriginalIndex`[protected]`

original index of this vertex

Definition at line 305 of file PolygonSimplifier.hpp.

int vl::PolygonSimplifier::Vertex::mSimplifiedIndex`[protected]`

only used during index buffer regeneration

Definition at line 307 of file PolygonSimplifier.hpp.

int vl::PolygonSimplifier::Vertex::mRemoveOrder`[protected]`

when the vertex has collapsed

Definition at line 309 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::simplify().

bool vl::PolygonSimplifier::Vertex::mRemoved`[protected]`

has the vertex been removed

Definition at line 311 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::collapse(), and vl::PolygonSimplifier::computeCollapseInfo().

bool vl::PolygonSimplifier::Vertex::mProtected`[protected]`

is the vertex protected?

Definition at line 313 of file PolygonSimplifier.hpp.

bool vl::PolygonSimplifier::Vertex::mAlreadyProcessed`[protected]`

internally used

Definition at line 315 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::simplify().

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/PolygonSimplifier.hpp

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