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 fvec3position () const
 the position
int adjacentVerticesCount () const
 ajacent vertices
VertexadjacentVertex (int index) const
int incidentTrianglesCount () const
 adjacent triangles
TriangleincidentTriangle (int index) const
VertexcollapseVertex () const
 vertex to which collapse
float collapseCost () const
 cost of the collapse
const fvec3collapsePosition () 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 QErrqerr () 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
VertexmCollapseVertex
 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.


Constructor & Destructor Documentation

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

Member Function Documentation

void vl::PolygonSimplifier::Vertex::addAdjacentVertex ( Vertex v ) [inline]
void vl::PolygonSimplifier::Vertex::removeAdjacentVertex ( Vertex v ) [inline]
void vl::PolygonSimplifier::Vertex::computeAdjacentVertices (  ) [inline]
bool vl::PolygonSimplifier::Vertex::checkConnectivity (  ) [inline]
bool vl::PolygonSimplifier::Vertex::isAdjacentVertex ( Vertex v ) const [inline]
bool vl::PolygonSimplifier::Vertex::isIncidentTriangle ( Triangle t ) const [inline]
void vl::PolygonSimplifier::Vertex::discardRemovedTriangles (  ) [inline]
void vl::PolygonSimplifier::Vertex::removeIncidentTriangle ( const Triangle tri ) [inline]
bool vl::PolygonSimplifier::Vertex::checkTriangles (  ) const [inline]
void vl::PolygonSimplifier::Vertex::computeEdgePenalty (  ) [inline]
const fvec3& vl::PolygonSimplifier::Vertex::position (  ) const [inline]

the position

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

ajacent vertices

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

adjacent triangles

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

vertex to which collapse

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

cost of the collapse

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

collapse position

void vl::PolygonSimplifier::Vertex::setCollapsePosition ( const fvec3 pos ) [inline]
int vl::PolygonSimplifier::Vertex::removeOrder (  ) const [inline]

when the vertex has collapsed

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

has the vertex been removed

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

is the vertex protected?

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

original index of this vertex

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

Internally used to regenerated the index buffer.

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

Internally used.

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

Accumulated vertex error.

void vl::PolygonSimplifier::Vertex::setQErr ( const QErr qerr ) [inline]
void vl::PolygonSimplifier::Vertex::addQErr ( const QErr qerr ) [inline]

Friends And Related Function Documentation

friend class Triangle [friend]
friend class PolygonSimplifier [friend]

Member Data Documentation

the position

ajacent vertices

adjacent triangles

vertex to which collapse

cost of the collapse

the collapse position

original index of this vertex

only used during index buffer regeneration

when the vertex has collapsed

has the vertex been removed

is the vertex protected?

internally used


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

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:08:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.