Blender  V3.3
Public Member Functions | Public Attributes | List of all members
Freestyle::ViewShape Class Reference

#include <ViewMap.h>

Public Member Functions

 ViewShape ()
 
 ViewShape (SShape *iSShape)
 
 ViewShape (ViewShape &iBrother)
 
virtual ViewShapeduplicate ()
 
virtual ~ViewShape ()
 
void SplitEdge (FEdge *fe, const vector< TVertex * > &iViewVertices, vector< FEdge * > &ioNewEdges, vector< ViewEdge * > &ioNewViewEdges)
 
SShapesshape ()
 
const SShapesshape () const
 
vector< ViewVertex * > & vertices ()
 
vector< ViewEdge * > & edges ()
 
Id getId () const
 
const string & getName () const
 
const string & getLibraryPath () const
 
void setSShape (SShape *iSShape)
 
void setVertices (const vector< ViewVertex * > &iVertices)
 
void setEdges (const vector< ViewEdge * > &iEdges)
 
void AddVertex (ViewVertex *iVertex)
 
void AddEdge (ViewEdge *iEdge)
 
void RemoveEdge (ViewEdge *iViewEdge)
 
void RemoveVertex (ViewVertex *iViewVertex)
 

Public Attributes

voiduserdata
 

Detailed Description

Class gathering the elements of the ViewMap (ViewVertex, ViewEdge) that are issued from the same input shape.

Definition at line 1398 of file ViewMap.h.

Constructor & Destructor Documentation

◆ ViewShape() [1/3]

Freestyle::ViewShape::ViewShape ( )
inline

Default constructor.

Definition at line 1411 of file ViewMap.h.

References NULL, and userdata.

Referenced by duplicate().

◆ ViewShape() [2/3]

Freestyle::ViewShape::ViewShape ( SShape iSShape)
inline

Builds a ViewShape from a SShape.

Definition at line 1418 of file ViewMap.h.

References NULL, and userdata.

◆ ViewShape() [3/3]

Freestyle::ViewShape::ViewShape ( ViewShape iBrother)
inline

◆ ~ViewShape()

Freestyle::ViewShape::~ViewShape ( )
virtual

Destructor.

Definition at line 769 of file ViewMap.cpp.

References e.

Member Function Documentation

◆ AddEdge()

void Freestyle::ViewShape::AddEdge ( ViewEdge iEdge)
inline

Adds a ViewEdge to the list

Definition at line 1607 of file ViewMap.h.

References Freestyle::ViewEdge::setShape().

Referenced by SplitEdge(), and ViewShape().

◆ AddVertex()

void Freestyle::ViewShape::AddVertex ( ViewVertex iVertex)
inline

◆ duplicate()

virtual ViewShape* Freestyle::ViewShape::duplicate ( )
inlinevirtual

Cloning method.

Definition at line 1513 of file ViewMap.h.

References ViewShape().

◆ edges()

vector<ViewEdge *>& Freestyle::ViewShape::edges ( )
inline

Returns the list of ViewEdge contained in this ViewShape.

Definition at line 1557 of file ViewMap.h.

Referenced by ViewShape().

◆ getId()

Id Freestyle::ViewShape::getId ( ) const
inline

◆ getLibraryPath()

const string& Freestyle::ViewShape::getLibraryPath ( ) const
inline

Returns the ViewShape library path.

Definition at line 1575 of file ViewMap.h.

References Freestyle::SShape::getLibraryPath().

◆ getName()

const string& Freestyle::ViewShape::getName ( ) const
inline

Returns the ViewShape name.

Definition at line 1569 of file ViewMap.h.

References Freestyle::SShape::getName().

◆ RemoveEdge()

void Freestyle::ViewShape::RemoveEdge ( ViewEdge iViewEdge)

Definition at line 786 of file ViewMap.cpp.

References Freestyle::ViewEdge::fedgeA(), and Freestyle::SShape::RemoveEdge().

◆ RemoveVertex()

void Freestyle::ViewShape::RemoveVertex ( ViewVertex iViewVertex)

Definition at line 798 of file ViewMap.cpp.

◆ setEdges()

void Freestyle::ViewShape::setEdges ( const vector< ViewEdge * > &  iEdges)
inline

Sets the list of ViewEdge contained in this ViewShape.

Definition at line 1594 of file ViewMap.h.

◆ setSShape()

void Freestyle::ViewShape::setSShape ( SShape iSShape)
inline

Sets the SShape on top of which the ViewShape is built.

Definition at line 1582 of file ViewMap.h.

◆ setVertices()

void Freestyle::ViewShape::setVertices ( const vector< ViewVertex * > &  iVertices)
inline

Sets the list of ViewVertex contained in this ViewShape.

Definition at line 1588 of file ViewMap.h.

◆ SplitEdge()

void Freestyle::ViewShape::SplitEdge ( FEdge fe,
const vector< TVertex * > &  iViewVertices,
vector< FEdge * > &  ioNewEdges,
vector< ViewEdge * > &  ioNewViewEdges 
)
inline

◆ sshape() [1/2]

SShape* Freestyle::ViewShape::sshape ( )
inline

◆ sshape() [2/2]

const SShape* Freestyle::ViewShape::sshape ( ) const
inline

Returns the SShape on top of which this ViewShape is built.

Definition at line 1545 of file ViewMap.h.

◆ vertices()

vector<ViewVertex *>& Freestyle::ViewShape::vertices ( )
inline

Returns the list of ViewVertex contained in this ViewShape.

Definition at line 1551 of file ViewMap.h.

Referenced by ViewShape().

Member Data Documentation

◆ userdata

void* Freestyle::ViewShape::userdata

A field that can be used by the user to store any data. This field must be reset afterwards using ResetUserData().

Definition at line 1408 of file ViewMap.h.

Referenced by ViewShape().


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