Blender V5.0
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 1386 of file ViewMap.h.

Constructor & Destructor Documentation

◆ ViewShape() [1/3]

Freestyle::ViewShape::ViewShape ( )
inline

Default constructor.

Definition at line 1399 of file ViewMap.h.

References userdata.

Referenced by duplicate(), and ViewShape().

◆ ViewShape() [2/3]

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

Builds a ViewShape from a SShape.

Definition at line 1406 of file ViewMap.h.

References userdata.

◆ ViewShape() [3/3]

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

◆ ~ViewShape()

Freestyle::ViewShape::~ViewShape ( )
virtual

Destructor.

Definition at line 788 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 1597 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 1503 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 1547 of file ViewMap.h.

Referenced by ViewShape().

◆ getId()

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

Returns the ViewShape id.

Definition at line 1553 of file ViewMap.h.

Referenced by Freestyle::ViewMap::AddViewShape(), and Freestyle::Functions0D::ShapeIdF0D::operator()().

◆ getLibraryPath()

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

Returns the ViewShape library path.

Definition at line 1565 of file ViewMap.h.

◆ getName()

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

Returns the ViewShape name.

Definition at line 1559 of file ViewMap.h.

◆ RemoveEdge()

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

Definition at line 805 of file ViewMap.cpp.

References Freestyle::ViewEdge::fedgeA().

◆ RemoveVertex()

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

Definition at line 817 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 1584 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 1572 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 1578 of file ViewMap.h.

◆ SplitEdge()

◆ sshape() [1/2]

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

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

Definition at line 1529 of file ViewMap.h.

Referenced by Freestyle::ViewEdgeXBuilder::Init(), Freestyle::ViewMap::InsertViewVertex(), and Freestyle::FEdge::occluded_shape().

◆ sshape() [2/2]

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

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

Definition at line 1535 of file ViewMap.h.

◆ vertices()

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

Returns the list of ViewVertex contained in this ViewShape.

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

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


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