Blender  V2.93
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

void * userdata
 

Detailed Description

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

Definition at line 1408 of file ViewMap.h.

Constructor & Destructor Documentation

◆ ViewShape() [1/3]

Freestyle::ViewShape::ViewShape ( )
inline

Default constructor.

Definition at line 1421 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 1428 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 783 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 1617 of file ViewMap.h.

References Freestyle::ViewEdge::setShape().

Referenced by Freestyle::ViewMapIO::Internal::load(), SplitEdge(), and ViewShape().

◆ AddVertex()

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

◆ duplicate()

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

Cloning method.

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

Referenced by Freestyle::ViewMapIO::Internal::save(), 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 1585 of file ViewMap.h.

References Freestyle::SShape::getLibraryPath().

◆ getName()

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

Returns the ViewShape name.

Definition at line 1579 of file ViewMap.h.

References Freestyle::SShape::getName().

◆ RemoveEdge()

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

Definition at line 800 of file ViewMap.cpp.

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

◆ RemoveVertex()

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

Definition at line 812 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 1604 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 1592 of file ViewMap.h.

Referenced by Freestyle::ViewMapIO::load().

◆ setVertices()

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

Sets the list of ViewVertex contained in this ViewShape.

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

◆ vertices()

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

Returns the list of ViewVertex contained in this ViewShape.

Definition at line 1561 of file ViewMap.h.

Referenced by Freestyle::ViewMapIO::Internal::save(), 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 1418 of file ViewMap.h.

Referenced by ViewShape().


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