Blender V4.3
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

void * userdata
 

Detailed Description

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

Definition at line 1396 of file ViewMap.h.

Constructor & Destructor Documentation

◆ ViewShape() [1/3]

Freestyle::ViewShape::ViewShape ( )
inline

Default constructor.

Definition at line 1409 of file ViewMap.h.

References userdata.

Referenced by duplicate().

◆ ViewShape() [2/3]

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

Builds a ViewShape from a SShape.

Definition at line 1416 of file ViewMap.h.

References userdata.

◆ ViewShape() [3/3]

◆ ~ViewShape()

Freestyle::ViewShape::~ViewShape ( )
virtual

Destructor.

Definition at line 786 of file ViewMap.cpp.

References e.

Member Function Documentation

◆ AddEdge()

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

◆ 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 Freestyle::ViewEdgeXBuilder::BuildViewEdges(), and 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 803 of file ViewMap.cpp.

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

◆ RemoveVertex()

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

Definition at line 815 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()

◆ 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 Freestyle::ViewEdgeXBuilder::BuildViewEdges(), and 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 1406 of file ViewMap.h.

Referenced by ViewShape(), ViewShape(), and ViewShape().


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