Blender  V3.3
Public Types | Public Member Functions | Protected Member Functions | List of all members
Freestyle::NonTVertex Class Reference

#include <ViewMap.h>

Inheritance diagram for Freestyle::NonTVertex:
Freestyle::ViewVertex Freestyle::Interface0D

Public Types

typedef vector< directedViewEdgeedges_container
 
- Public Types inherited from Freestyle::ViewVertex
typedef pair< ViewEdge *, booldirectedViewEdge
 
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
voiduserdata
 

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 662 of file ViewMap.h.

Member Typedef Documentation

◆ edges_container

Definition at line 664 of file ViewMap.h.

Constructor & Destructor Documentation

◆ NonTVertex() [1/3]

Freestyle::NonTVertex::NonTVertex ( )
inline

Default constructor.

Definition at line 752 of file ViewMap.h.

References NULL.

Referenced by duplicate().

◆ NonTVertex() [2/3]

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

Builds a NonTVertex from a SVertex.

Definition at line 758 of file ViewMap.h.

References Freestyle::SVertex::setViewVertex().

◆ NonTVertex() [3/3]

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

Copy constructor.

Definition at line 766 of file ViewMap.h.

References Freestyle::SVertex::setViewVertex().

◆ ~NonTVertex()

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

destructor.

Definition at line 782 of file ViewMap.h.

Member Function Documentation

◆ AddIncomingViewEdge()

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

Definition at line 557 of file ViewMap.cpp.

References Freestyle::ViewEdgeComp().

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

◆ AddOutgoingViewEdge()

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

Definition at line 541 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 814 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 741 of file ViewMap.h.

Referenced by Freestyle::CurvePoint::castToNonTVertex().

◆ castToSVertex()

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

Cast the Interface0D in SVertex if it can be.

Reimplemented from Freestyle::Interface0D.

Definition at line 729 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 735 of file ViewMap.h.

◆ duplicate()

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

Cloning method.

Implements Freestyle::ViewVertex.

Definition at line 774 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 574 of file ViewMap.cpp.

◆ edges_begin() [2/2]

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

Implements Freestyle::ViewVertex.

Definition at line 579 of file ViewMap.cpp.

◆ edges_end() [1/2]

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

Implements Freestyle::ViewVertex.

Definition at line 584 of file ViewMap.cpp.

◆ edges_end() [2/2]

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

Implements Freestyle::ViewVertex.

Definition at line 589 of file ViewMap.cpp.

◆ edges_iterator() [1/2]

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

Implements Freestyle::ViewVertex.

Definition at line 594 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 605 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 617 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 623 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 629 of file ViewMap.cpp.

◆ getExactTypeName()

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

Returns the string "ViewVertex".

Reimplemented from Freestyle::ViewVertex.

Definition at line 668 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 723 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 717 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 693 of file ViewMap.h.

References Freestyle::SVertex::getPoint3D().

◆ getProjectedX()

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

Returns the projected 3D x coordinate of the vertex.

Reimplemented from Freestyle::Interface0D.

Definition at line 699 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 705 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 711 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 675 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 681 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 687 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 825 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 800 of file ViewMap.h.

References Freestyle::SVertex::setViewVertex().

◆ setViewEdges()

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

Definition at line 806 of file ViewMap.h.

◆ svertex()

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

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

Definition at line 788 of file ViewMap.h.

◆ viewedges()

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

Definition at line 793 of file ViewMap.h.


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