Visualization Library 2.1.0

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | Friends | List of all members
vl::PolygonSimplifier::Vertex Class Reference

A Vertex as defined by PolygonSimplifier. More...

#include <PolygonSimplifier.hpp>

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 More...
 
int adjacentVerticesCount () const
 ajacent vertices More...
 
VertexadjacentVertex (int index) const
 
int incidentTrianglesCount () const
 adjacent triangles More...
 
TriangleincidentTriangle (int index) const
 
VertexcollapseVertex () const
 vertex to which collapse More...
 
float collapseCost () const
 cost of the collapse More...
 
const fvec3collapsePosition () const
 collapse position More...
 
void setCollapsePosition (const fvec3 &pos)
 
int removeOrder () const
 when the vertex has collapsed More...
 
bool removed () const
 has the vertex been removed More...
 
bool isProtected () const
 is the vertex protected? More...
 
int originalIndex () const
 original index of this vertex More...
 
int simplifiedIndex () const
 Internally used to regenerated the index buffer. More...
 
bool alreadyProcessed () const
 Internally used. More...
 
const QErrqerr () const
 Accumulated vertex error. More...
 
void setQErr (const QErr &qerr)
 
void addQErr (const QErr &qerr)
 

Protected Attributes

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

Friends

class Triangle
 
class PolygonSimplifier
 

Detailed Description

A Vertex as defined by PolygonSimplifier.

Definition at line 239 of file PolygonSimplifier.hpp.

Constructor & Destructor Documentation

◆ Vertex()

vl::PolygonSimplifier::Vertex::Vertex ( )
inline

Definition at line 244 of file PolygonSimplifier.hpp.

Member Function Documentation

◆ addAdjacentVertex()

void vl::PolygonSimplifier::Vertex::addAdjacentVertex ( Vertex v)
inline

Definition at line 378 of file PolygonSimplifier.hpp.

◆ addQErr()

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

Definition at line 290 of file PolygonSimplifier.hpp.

◆ adjacentVertex()

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

◆ adjacentVerticesCount()

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

◆ alreadyProcessed()

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

Internally used.

Definition at line 286 of file PolygonSimplifier.hpp.

◆ checkConnectivity()

bool vl::PolygonSimplifier::Vertex::checkConnectivity ( )
inline

Definition at line 483 of file PolygonSimplifier.hpp.

References mAdjacentVerts, removed(), and VL_CHECK.

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

◆ checkTriangles()

bool vl::PolygonSimplifier::Vertex::checkTriangles ( ) const
inline

Definition at line 414 of file PolygonSimplifier.hpp.

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

◆ collapseCost()

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

cost of the collapse

Definition at line 271 of file PolygonSimplifier.hpp.

◆ collapsePosition()

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

collapse position

Definition at line 273 of file PolygonSimplifier.hpp.

◆ collapseVertex()

Vertex* vl::PolygonSimplifier::Vertex::collapseVertex ( ) const
inline

vertex to which collapse

Definition at line 269 of file PolygonSimplifier.hpp.

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

◆ computeAdjacentVertices()

void vl::PolygonSimplifier::Vertex::computeAdjacentVertices ( )
inline

Definition at line 401 of file PolygonSimplifier.hpp.

References VL_CHECK.

◆ computeEdgePenalty()

void vl::PolygonSimplifier::Vertex::computeEdgePenalty ( )
inline

◆ discardRemovedTriangles()

void vl::PolygonSimplifier::Vertex::discardRemovedTriangles ( )
inline

Definition at line 458 of file PolygonSimplifier.hpp.

◆ incidentTriangle()

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

Definition at line 267 of file PolygonSimplifier.hpp.

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

◆ incidentTrianglesCount()

int vl::PolygonSimplifier::Vertex::incidentTrianglesCount ( ) const
inline

adjacent triangles

Definition at line 266 of file PolygonSimplifier.hpp.

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

◆ isAdjacentVertex()

bool vl::PolygonSimplifier::Vertex::isAdjacentVertex ( Vertex v) const
inline

Definition at line 467 of file PolygonSimplifier.hpp.

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

◆ isIncidentTriangle()

bool vl::PolygonSimplifier::Vertex::isIncidentTriangle ( Triangle t) const
inline

Definition at line 475 of file PolygonSimplifier.hpp.

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

◆ isProtected()

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

is the vertex protected?

Definition at line 280 of file PolygonSimplifier.hpp.

◆ originalIndex()

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

original index of this vertex

Definition at line 282 of file PolygonSimplifier.hpp.

◆ position()

const fvec3& vl::PolygonSimplifier::Vertex::position ( ) const
inline

the position

Definition at line 261 of file PolygonSimplifier.hpp.

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

◆ qerr()

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

Accumulated vertex error.

Definition at line 288 of file PolygonSimplifier.hpp.

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

◆ removeAdjacentVertex()

void vl::PolygonSimplifier::Vertex::removeAdjacentVertex ( Vertex v)
inline

Definition at line 389 of file PolygonSimplifier.hpp.

References VL_CHECK.

◆ removed()

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

has the vertex been removed

Definition at line 278 of file PolygonSimplifier.hpp.

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

◆ removeIncidentTriangle()

void vl::PolygonSimplifier::Vertex::removeIncidentTriangle ( const Triangle tri)
inline

Definition at line 446 of file PolygonSimplifier.hpp.

◆ removeOrder()

int vl::PolygonSimplifier::Vertex::removeOrder ( ) const
inline

when the vertex has collapsed

Definition at line 276 of file PolygonSimplifier.hpp.

◆ setCollapsePosition()

void vl::PolygonSimplifier::Vertex::setCollapsePosition ( const fvec3 pos)
inline

Definition at line 274 of file PolygonSimplifier.hpp.

◆ setQErr()

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

Definition at line 289 of file PolygonSimplifier.hpp.

◆ simplifiedIndex()

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

Internally used to regenerated the index buffer.

Definition at line 284 of file PolygonSimplifier.hpp.

Friends And Related Function Documentation

◆ PolygonSimplifier

friend class PolygonSimplifier
friend

Definition at line 242 of file PolygonSimplifier.hpp.

◆ Triangle

friend class Triangle
friend

Definition at line 241 of file PolygonSimplifier.hpp.

Member Data Documentation

◆ mAdjacentVerts

std::vector< Vertex* > vl::PolygonSimplifier::Vertex::mAdjacentVerts
protected

◆ mAlreadyProcessed

bool vl::PolygonSimplifier::Vertex::mAlreadyProcessed
protected

internally used

Definition at line 317 of file PolygonSimplifier.hpp.

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

◆ mCollapseCost

float vl::PolygonSimplifier::Vertex::mCollapseCost
protected

cost of the collapse

Definition at line 303 of file PolygonSimplifier.hpp.

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

◆ mCollapsePosition

fvec3 vl::PolygonSimplifier::Vertex::mCollapsePosition
protected

the collapse position

Definition at line 305 of file PolygonSimplifier.hpp.

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

◆ mCollapseVertex

Vertex* vl::PolygonSimplifier::Vertex::mCollapseVertex
protected

vertex to which collapse

Definition at line 301 of file PolygonSimplifier.hpp.

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

◆ mIncidentTriangles

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

adjacent triangles

Definition at line 299 of file PolygonSimplifier.hpp.

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

◆ mOriginalIndex

int vl::PolygonSimplifier::Vertex::mOriginalIndex
protected

original index of this vertex

Definition at line 307 of file PolygonSimplifier.hpp.

◆ mPosition

fvec3 vl::PolygonSimplifier::Vertex::mPosition
protected

◆ mProtected

bool vl::PolygonSimplifier::Vertex::mProtected
protected

is the vertex protected?

Definition at line 315 of file PolygonSimplifier.hpp.

◆ mQErr

QErr vl::PolygonSimplifier::Vertex::mQErr
protected

Definition at line 293 of file PolygonSimplifier.hpp.

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

◆ mRemoved

bool vl::PolygonSimplifier::Vertex::mRemoved
protected

has the vertex been removed

Definition at line 313 of file PolygonSimplifier.hpp.

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

◆ mRemoveOrder

int vl::PolygonSimplifier::Vertex::mRemoveOrder
protected

when the vertex has collapsed

Definition at line 311 of file PolygonSimplifier.hpp.

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

◆ mSimplifiedIndex

int vl::PolygonSimplifier::Vertex::mSimplifiedIndex
protected

only used during index buffer regeneration

Definition at line 309 of file PolygonSimplifier.hpp.


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