Blender V4.3
Freestyle::WVertex Class Reference

#include <WEdge.h>

Inherited by Freestyle::WXVertex.

Classes

class  face_iterator
 
class  incoming_edge_iterator
 

Public Member Functions

 WVertex (const Vec3f &v)
 
 WVertex (WVertex &iBrother)
 
virtual WVertexduplicate ()
 
virtual ~WVertex ()
 
Vec3fGetVertex ()
 
vector< WEdge * > & GetEdges ()
 
int GetId ()
 
WShapeshape () const
 
bool isSmooth () const
 
bool isBoundary ()
 
void setVertex (const Vec3f &v)
 
void setEdges (const vector< WEdge * > &iEdgeList)
 
void setId (int id)
 
void setShape (WShape *iShape)
 
void setSmooth (bool b)
 
void setBorder (bool b)
 
void AddEdge (WEdge *iEdge)
 
virtual void ResetUserData ()
 
virtual incoming_edge_iterator incoming_edges_begin ()
 
virtual incoming_edge_iterator incoming_edges_end ()
 
virtual face_iterator faces_begin ()
 
virtual face_iterator faces_end ()
 

Public Attributes

void * userdata
 

Protected Attributes

int _Id
 
Vec3f _Vertex
 
vector< WEdge * > _EdgeList
 
WShape_Shape
 
bool _Smooth
 
short _Border
 

Detailed Description

Definition at line 46 of file WEdge.h.

Constructor & Destructor Documentation

◆ WVertex() [1/2]

Freestyle::WVertex::WVertex ( const Vec3f & v)
inline

Definition at line 57 of file WEdge.h.

References _Border, _Id, _Shape, _Smooth, _Vertex, userdata, and v.

Referenced by duplicate().

◆ WVertex() [2/2]

Freestyle::WVertex::WVertex ( WVertex & iBrother)

Copy constructor

Definition at line 47 of file WEdge.cpp.

References _Border, _EdgeList, _Id, _Shape, _Smooth, _Vertex, and userdata.

◆ ~WVertex()

virtual Freestyle::WVertex::~WVertex ( )
inlinevirtual

Definition at line 70 of file WEdge.h.

Member Function Documentation

◆ AddEdge()

void Freestyle::WVertex::AddEdge ( WEdge * iEdge)

Adds an edge to the edges list

Definition at line 127 of file WEdge.cpp.

References _EdgeList.

Referenced by Freestyle::WFace::MakeEdge(), Freestyle::WShape::MakeFace(), and Freestyle::WShape::WShape().

◆ duplicate()

WVertex * Freestyle::WVertex::duplicate ( )
virtual

Reimplemented in Freestyle::WXVertex.

Definition at line 61 of file WEdge.cpp.

References WVertex().

Referenced by Freestyle::WShape::WShape().

◆ faces_begin()

virtual face_iterator Freestyle::WVertex::faces_begin ( )
inlinevirtual

◆ faces_end()

virtual face_iterator Freestyle::WVertex::faces_end ( )
inlinevirtual

◆ GetEdges()

vector< WEdge * > & Freestyle::WVertex::GetEdges ( )
inline

Definition at line 78 of file WEdge.h.

References _EdgeList.

Referenced by Freestyle::WXVertex::isFeature(), and Freestyle::WFace::MakeEdge().

◆ GetId()

int Freestyle::WVertex::GetId ( )
inline

Definition at line 83 of file WEdge.h.

References _Id.

Referenced by Freestyle::WFace::MakeEdge().

◆ GetVertex()

◆ incoming_edges_begin()

WVertex::incoming_edge_iterator Freestyle::WVertex::incoming_edges_begin ( )
virtual

iterators access

Definition at line 132 of file WEdge.cpp.

References _EdgeList, Freestyle::WEdge::GetaOEdge(), and Freestyle::WOEdge::GetbVertex().

Referenced by faces_begin().

◆ incoming_edges_end()

WVertex::incoming_edge_iterator Freestyle::WVertex::incoming_edges_end ( )
virtual

Definition at line 146 of file WEdge.cpp.

References _EdgeList, and Freestyle::WOEdge::GetbVertex().

Referenced by faces_end().

◆ isBoundary()

bool Freestyle::WVertex::isBoundary ( )

◆ isSmooth()

bool Freestyle::WVertex::isSmooth ( ) const
inline

Definition at line 93 of file WEdge.h.

References _Smooth.

◆ ResetUserData()

virtual void Freestyle::WVertex::ResetUserData ( )
inlinevirtual

Definition at line 139 of file WEdge.h.

References userdata.

◆ setBorder()

void Freestyle::WVertex::setBorder ( bool b)
inline

Definition at line 126 of file WEdge.h.

References _Border, and b.

Referenced by Freestyle::WFace::MakeEdge().

◆ setEdges()

void Freestyle::WVertex::setEdges ( const vector< WEdge * > & iEdgeList)
inline

Definition at line 106 of file WEdge.h.

References _EdgeList.

◆ setId()

void Freestyle::WVertex::setId ( int id)
inline

Definition at line 111 of file WEdge.h.

References _Id.

◆ setShape()

void Freestyle::WVertex::setShape ( WShape * iShape)
inline

Definition at line 116 of file WEdge.h.

References _Shape.

Referenced by Freestyle::WShape::AddVertex(), and Freestyle::WShape::WShape().

◆ setSmooth()

void Freestyle::WVertex::setSmooth ( bool b)
inline

Definition at line 121 of file WEdge.h.

References _Smooth, and b.

◆ setVertex()

void Freestyle::WVertex::setVertex ( const Vec3f & v)
inline

modifiers

Definition at line 101 of file WEdge.h.

References _Vertex, and v.

◆ shape()

Member Data Documentation

◆ _Border

short Freestyle::WVertex::_Border
protected

Definition at line 53 of file WEdge.h.

Referenced by isBoundary(), setBorder(), WVertex(), and WVertex().

◆ _EdgeList

◆ _Id

int Freestyle::WVertex::_Id
protected

◆ _Shape

WShape* Freestyle::WVertex::_Shape
protected

Definition at line 51 of file WEdge.h.

Referenced by setShape(), shape(), WVertex(), and WVertex().

◆ _Smooth

bool Freestyle::WVertex::_Smooth
protected

Definition at line 52 of file WEdge.h.

Referenced by isSmooth(), setSmooth(), WVertex(), and WVertex().

◆ _Vertex

Vec3f Freestyle::WVertex::_Vertex
protected

Definition at line 49 of file WEdge.h.

Referenced by GetVertex(), setVertex(), WVertex(), and WVertex().

◆ userdata

void* Freestyle::WVertex::userdata

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