Blender V4.3
Freestyle::NonTVertex Class Reference

#include <ViewMap.h>

Inherits Freestyle::ViewVertex.

Public Types

typedef vector< directedViewEdgeedges_container
 
- Public Types inherited from Freestyle::ViewVertex
typedef pair< ViewEdge *, bool > directedViewEdge
 
typedef vector< directedViewEdgeedges_container
 
typedef ViewVertexInternal::edge_iterator_base< ViewVertexInternal::edge_nonconst_traitsedge_iterator
 
typedef ViewVertexInternal::edge_iterator_base< ViewVertexInternal::edge_const_traitsconst_edge_iterator
 

Public Member Functions

virtual string getExactTypeName () const
 
virtual real getX () const
 
virtual real getY () const
 
virtual real getZ () const
 
virtual Vec3r getPoint3D () const
 
virtual real getProjectedX () const
 
virtual real getProjectedY () const
 
virtual real getProjectedZ () const
 
virtual Vec2r getPoint2D () const
 
virtual Id getId () const
 
virtual SVertexcastToSVertex ()
 
virtual ViewVertexcastToViewVertex ()
 
virtual NonTVertexcastToNonTVertex ()
 
 NonTVertex ()
 
 NonTVertex (SVertex *iSVertex)
 
virtual ~NonTVertex ()
 
SVertexsvertex ()
 
edges_containerviewedges ()
 
void setSVertex (SVertex *iSVertex)
 
void setViewEdges (const vector< directedViewEdge > &iViewEdges)
 
void AddIncomingViewEdge (ViewEdge *iVEdge)
 
void AddOutgoingViewEdge (ViewEdge *iVEdge)
 
void AddViewEdge (ViewEdge *iVEdge, bool incoming=true)
 
virtual void Replace (ViewEdge *iOld, ViewEdge *iNew)
 
virtual edge_iterator edges_begin ()
 
virtual const_edge_iterator edges_begin () const
 
virtual edge_iterator edges_end ()
 
virtual const_edge_iterator edges_end () const
 
virtual edge_iterator edges_iterator (ViewEdge *iEdge)
 
virtual const_edge_iterator edges_iterator (ViewEdge *iEdge) const
 
virtual ViewVertexInternal::orientedViewEdgeIterator edgesBegin ()
 
virtual ViewVertexInternal::orientedViewEdgeIterator edgesEnd ()
 
virtual ViewVertexInternal::orientedViewEdgeIterator edgesIterator (ViewEdge *iEdge)
 
- Public Member Functions inherited from Freestyle::ViewVertex
 ViewVertex ()
 
 ViewVertex (Nature::VertexNature nature)
 
virtual ~ViewVertex ()
 
virtual Nature::VertexNature getNature () const
 
void setNature (Nature::VertexNature iNature)
 
- Public Member Functions inherited from Freestyle::Interface0D
 Interface0D ()
 
virtual ~Interface0D ()
 
virtual FEdgegetFEdge (Interface0D &)
 
virtual TVertexcastToTVertex ()
 

Protected Member Functions

 NonTVertex (NonTVertex &iBrother)
 
virtual ViewVertexduplicate ()
 
- Protected Member Functions inherited from Freestyle::ViewVertex
 ViewVertex (ViewVertex &iBrother)
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::ViewVertex
void * userdata
 

Detailed Description

View vertex for corners, cusps, etc... Associated to a single SVertex. Can be associated to 2 or several view edges

Definition at line 659 of file ViewMap.h.

Member Typedef Documentation

◆ edges_container

Constructor & Destructor Documentation

◆ NonTVertex() [1/3]

Freestyle::NonTVertex::NonTVertex ( )
inline

Default constructor.

Definition at line 749 of file ViewMap.h.

Referenced by duplicate().

◆ NonTVertex() [2/3]

Freestyle::NonTVertex::NonTVertex ( SVertex * iSVertex)
inline

Builds a NonTVertex from a SVertex.

Definition at line 755 of file ViewMap.h.

References Freestyle::SVertex::setViewVertex().

◆ NonTVertex() [3/3]

Freestyle::NonTVertex::NonTVertex ( NonTVertex & iBrother)
inlineprotected

Copy constructor.

Definition at line 763 of file ViewMap.h.

References Freestyle::SVertex::setViewVertex().

◆ ~NonTVertex()

virtual Freestyle::NonTVertex::~NonTVertex ( )
inlinevirtual

destructor.

Definition at line 779 of file ViewMap.h.

Member Function Documentation

◆ AddIncomingViewEdge()

void Freestyle::NonTVertex::AddIncomingViewEdge ( ViewEdge * iVEdge)

Definition at line 571 of file ViewMap.cpp.

References Freestyle::ViewEdgeComp().

Referenced by AddViewEdge(), and Freestyle::ViewMap::InsertViewVertex().

◆ AddOutgoingViewEdge()

void Freestyle::NonTVertex::AddOutgoingViewEdge ( ViewEdge * iVEdge)

Definition at line 555 of file ViewMap.cpp.

References Freestyle::ViewEdgeComp().

Referenced by AddViewEdge(), and Freestyle::ViewMap::InsertViewVertex().

◆ AddViewEdge()

void Freestyle::NonTVertex::AddViewEdge ( ViewEdge * iVEdge,
bool incoming = true )
inline

Definition at line 809 of file ViewMap.h.

References AddIncomingViewEdge(), and AddOutgoingViewEdge().

◆ castToNonTVertex()

virtual NonTVertex * Freestyle::NonTVertex::castToNonTVertex ( )
inlinevirtual

Cast the Interface0D in NonTVertex if it can be.

Reimplemented from Freestyle::Interface0D.

Definition at line 738 of file ViewMap.h.

◆ castToSVertex()

virtual SVertex * Freestyle::NonTVertex::castToSVertex ( )
inlinevirtual

Cast the Interface0D in SVertex if it can be.

Reimplemented from Freestyle::Interface0D.

Definition at line 726 of file ViewMap.h.

◆ castToViewVertex()

virtual ViewVertex * Freestyle::NonTVertex::castToViewVertex ( )
inlinevirtual

Cast the Interface0D in ViewVertex if it can be.

Reimplemented from Freestyle::Interface0D.

Definition at line 732 of file ViewMap.h.

◆ duplicate()

virtual ViewVertex * Freestyle::NonTVertex::duplicate ( )
inlineprotectedvirtual

Cloning method.

Implements Freestyle::ViewVertex.

Definition at line 771 of file ViewMap.h.

References NonTVertex().

◆ edges_begin() [1/2]

ViewVertex::edge_iterator Freestyle::NonTVertex::edges_begin ( )
virtual

iterators access

Implements Freestyle::ViewVertex.

Definition at line 588 of file ViewMap.cpp.

◆ edges_begin() [2/2]

ViewVertex::const_edge_iterator Freestyle::NonTVertex::edges_begin ( ) const
virtual

Implements Freestyle::ViewVertex.

Definition at line 593 of file ViewMap.cpp.

◆ edges_end() [1/2]

ViewVertex::edge_iterator Freestyle::NonTVertex::edges_end ( )
virtual

Implements Freestyle::ViewVertex.

Definition at line 598 of file ViewMap.cpp.

◆ edges_end() [2/2]

ViewVertex::const_edge_iterator Freestyle::NonTVertex::edges_end ( ) const
virtual

Implements Freestyle::ViewVertex.

Definition at line 603 of file ViewMap.cpp.

◆ edges_iterator() [1/2]

ViewVertex::edge_iterator Freestyle::NonTVertex::edges_iterator ( ViewEdge * iEdge)
virtual

Implements Freestyle::ViewVertex.

Definition at line 608 of file ViewMap.cpp.

◆ edges_iterator() [2/2]

ViewVertex::const_edge_iterator Freestyle::NonTVertex::edges_iterator ( ViewEdge * iEdge) const
virtual

Implements Freestyle::ViewVertex.

Definition at line 620 of file ViewMap.cpp.

◆ edgesBegin()

ViewVertexInternal::orientedViewEdgeIterator Freestyle::NonTVertex::edgesBegin ( )
virtual

Returns an iterator over the ViewEdges that goes to or comes from this ViewVertex pointing to the first ViewEdge of the list. The orientedViewEdgeIterator allows to iterate in CCW order over these ViewEdges and to get the orientation for each ViewEdge (incoming/outgoing).

Implements Freestyle::ViewVertex.

Definition at line 633 of file ViewMap.cpp.

◆ edgesEnd()

ViewVertexInternal::orientedViewEdgeIterator Freestyle::NonTVertex::edgesEnd ( )
virtual

Returns an orientedViewEdgeIterator over the ViewEdges around this ViewVertex, pointing after the last ViewEdge.

Implements Freestyle::ViewVertex.

Definition at line 639 of file ViewMap.cpp.

◆ edgesIterator()

ViewVertexInternal::orientedViewEdgeIterator Freestyle::NonTVertex::edgesIterator ( ViewEdge * iEdge)
virtual

Returns an orientedViewEdgeIterator pointing to the ViewEdge given as argument.

Implements Freestyle::ViewVertex.

Definition at line 645 of file ViewMap.cpp.

◆ getExactTypeName()

virtual string Freestyle::NonTVertex::getExactTypeName ( ) const
inlinevirtual

Returns the string "ViewVertex".

Reimplemented from Freestyle::ViewVertex.

Definition at line 665 of file ViewMap.h.

◆ getId()

virtual Id Freestyle::NonTVertex::getId ( ) const
inlinevirtual

Returns the Id of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 720 of file ViewMap.h.

References Freestyle::SVertex::getId().

◆ getPoint2D()

virtual Vec2r Freestyle::NonTVertex::getPoint2D ( ) const
inlinevirtual

Returns the 2D point.

Reimplemented from Freestyle::Interface0D.

Definition at line 714 of file ViewMap.h.

References Freestyle::SVertex::getPoint2D().

◆ getPoint3D()

virtual Vec3r Freestyle::NonTVertex::getPoint3D ( ) const
inlinevirtual

Returns the 3D point.

Reimplemented from Freestyle::Interface0D.

Definition at line 690 of file ViewMap.h.

References Freestyle::SVertex::getPoint3D().

◆ getProjectedX()

virtual real Freestyle::NonTVertex::getProjectedX ( ) const
inlinevirtual

Returns the projected 3D. Y coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 696 of file ViewMap.h.

References Freestyle::SVertex::point2D(), and Freestyle::VecMat::Vec3< T >::x().

◆ getProjectedY()

virtual real Freestyle::NonTVertex::getProjectedY ( ) const
inlinevirtual

Returns the projected 3D. Y coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 702 of file ViewMap.h.

References Freestyle::SVertex::point2D(), and Freestyle::VecMat::Vec3< T >::y().

◆ getProjectedZ()

virtual real Freestyle::NonTVertex::getProjectedZ ( ) const
inlinevirtual

Returns the projected 3D. Z coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 708 of file ViewMap.h.

References Freestyle::SVertex::point2D(), and Freestyle::VecMat::Vec3< T >::z().

◆ getX()

virtual real Freestyle::NonTVertex::getX ( ) const
inlinevirtual

Returns the 3D x coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 672 of file ViewMap.h.

References Freestyle::SVertex::point3D(), and Freestyle::VecMat::Vec3< T >::x().

◆ getY()

virtual real Freestyle::NonTVertex::getY ( ) const
inlinevirtual

Returns the 3D y coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 678 of file ViewMap.h.

References Freestyle::SVertex::point3D(), and Freestyle::VecMat::Vec3< T >::y().

◆ getZ()

virtual real Freestyle::NonTVertex::getZ ( ) const
inlinevirtual

Returns the 3D z coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 684 of file ViewMap.h.

References Freestyle::SVertex::point3D(), and Freestyle::VecMat::Vec3< T >::z().

◆ Replace()

virtual void Freestyle::NonTVertex::Replace ( ViewEdge * iOld,
ViewEdge * iNew )
inlinevirtual

Reimplemented from Freestyle::ViewVertex.

Definition at line 820 of file ViewMap.h.

Referenced by Freestyle::ViewMap::InsertViewVertex().

◆ setSVertex()

void Freestyle::NonTVertex::setSVertex ( SVertex * iSVertex)
inline

Sets the SVertex on top of which this NonTVertex is built.

Definition at line 795 of file ViewMap.h.

References Freestyle::SVertex::setViewVertex().

◆ setViewEdges()

void Freestyle::NonTVertex::setViewEdges ( const vector< directedViewEdge > & iViewEdges)
inline

Definition at line 801 of file ViewMap.h.

◆ svertex()

SVertex * Freestyle::NonTVertex::svertex ( )
inline

Returns the SVertex on top of which this NonTVertex is built.

Definition at line 783 of file ViewMap.h.

◆ viewedges()

edges_container & Freestyle::NonTVertex::viewedges ( )
inline

Definition at line 788 of file ViewMap.h.


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