Visualization Library v1.0.3

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

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.

Definition at line 239 of file PolygonSimplifier.hpp.


Constructor & Destructor Documentation

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

Definition at line 244 of file PolygonSimplifier.hpp.


Member Function Documentation

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

Definition at line 378 of file PolygonSimplifier.hpp.

References adjacentVerticesCount(), and mAdjacentVerts.

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

Definition at line 389 of file PolygonSimplifier.hpp.

References VL_CHECK.

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

Definition at line 401 of file PolygonSimplifier.hpp.

References VL_CHECK.

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().

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

Definition at line 467 of file PolygonSimplifier.hpp.

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

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

Definition at line 475 of file PolygonSimplifier.hpp.

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

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

Definition at line 458 of file PolygonSimplifier.hpp.

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

Definition at line 446 of file PolygonSimplifier.hpp.

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

Definition at line 414 of file PolygonSimplifier.hpp.

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

void vl::PolygonSimplifier::Vertex::computeEdgePenalty (  ) [inline]
const fvec3& vl::PolygonSimplifier::Vertex::position (  ) const [inline]

the position

Definition at line 261 of file PolygonSimplifier.hpp.

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

int vl::PolygonSimplifier::Vertex::adjacentVerticesCount (  ) const [inline]
Vertex* vl::PolygonSimplifier::Vertex::adjacentVertex ( int  index ) const [inline]
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().

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

Definition at line 267 of file PolygonSimplifier.hpp.

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

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

vertex to which collapse

Definition at line 269 of file PolygonSimplifier.hpp.

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

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

cost of the collapse

Definition at line 271 of file PolygonSimplifier.hpp.

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

collapse position

Definition at line 273 of file PolygonSimplifier.hpp.

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

Definition at line 274 of file PolygonSimplifier.hpp.

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

when the vertex has collapsed

Definition at line 276 of file PolygonSimplifier.hpp.

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().

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

is the vertex protected?

Definition at line 280 of file PolygonSimplifier.hpp.

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

original index of this vertex

Definition at line 282 of file PolygonSimplifier.hpp.

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

Internally used to regenerated the index buffer.

Definition at line 284 of file PolygonSimplifier.hpp.

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

Internally used.

Definition at line 286 of file PolygonSimplifier.hpp.

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

Accumulated vertex error.

Definition at line 288 of file PolygonSimplifier.hpp.

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

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

Definition at line 289 of file PolygonSimplifier.hpp.

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

Definition at line 290 of file PolygonSimplifier.hpp.


Friends And Related Function Documentation

friend class Triangle [friend]

Definition at line 241 of file PolygonSimplifier.hpp.

friend class PolygonSimplifier [friend]

Definition at line 242 of file PolygonSimplifier.hpp.


Member Data Documentation

Definition at line 293 of file PolygonSimplifier.hpp.

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

adjacent triangles

Definition at line 299 of file PolygonSimplifier.hpp.

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

vertex to which collapse

Definition at line 301 of file PolygonSimplifier.hpp.

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

cost of the collapse

Definition at line 303 of file PolygonSimplifier.hpp.

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

the collapse position

Definition at line 305 of file PolygonSimplifier.hpp.

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

original index of this vertex

Definition at line 307 of file PolygonSimplifier.hpp.

only used during index buffer regeneration

Definition at line 309 of file PolygonSimplifier.hpp.

when the vertex has collapsed

Definition at line 311 of file PolygonSimplifier.hpp.

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

has the vertex been removed

Definition at line 313 of file PolygonSimplifier.hpp.

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

is the vertex protected?

Definition at line 315 of file PolygonSimplifier.hpp.

internally used

Definition at line 317 of file PolygonSimplifier.hpp.

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


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.