Blender V4.5
Freestyle::FEdgeSharp Class Reference

#include <Silhouette.h>

Inherits Freestyle::FEdge.

Public Member Functions

virtual string getExactTypeName () const
 FEdgeSharp ()
 FEdgeSharp (SVertex *vA, SVertex *vB)
 FEdgeSharp (FEdgeSharp &iBrother)
virtual ~FEdgeSharp ()
virtual FEdge * duplicate ()
const Vec3r & normalA ()
const Vec3r & normalB ()
uint aFrsMaterialIndex () const
const FrsMaterial & aFrsMaterial () const
uint bFrsMaterialIndex () const
const FrsMaterial & bFrsMaterial () const
bool aFaceMark () const
bool bFaceMark () const
void setNormalA (const Vec3r &iNormal)
void setNormalB (const Vec3r &iNormal)
void setaFrsMaterialIndex (uint i)
void setbFrsMaterialIndex (uint i)
void setaFaceMark (bool iFaceMark)
void setbFaceMark (bool iFaceMark)
Public Member Functions inherited from Freestyle::FEdge
virtual real getLength2D () const
virtual Id getId () const
 FEdge ()
 FEdge (SVertex *vA, SVertex *vB)
 FEdge (FEdge &iBrother)
virtual ~FEdge ()
SVertex * vertexA ()
SVertex * vertexB ()
SVertex * operator[] (const ushort &i) const
Nature::EdgeNature getNature () const
FEdge * nextEdge ()
FEdge * previousEdge ()
SShape * shape ()
int invisibility () const
ViewEdge * viewedge () const
Vec3r center3d ()
Vec3r center2d ()
const Polygon3r & aFace () const
const Vec3r & getOccludeeIntersection ()
bool getOccludeeEmpty ()
bool isSmooth () const
bool isInImage () const
bool isTemporary () const
void setVertexA (SVertex *vA)
void setVertexB (SVertex *vB)
void setId (const Id &id)
void setNextEdge (FEdge *iEdge)
void setPreviousEdge (FEdge *iEdge)
void setNature (Nature::EdgeNature iNature)
void setViewEdge (ViewEdge *iViewEdge)
void setaFace (Polygon3r &iFace)
void setOccludeeIntersection (const Vec3r &iPoint)
void setOccludeeEmpty (bool iempty)
void setSmooth (bool iFlag)
void setIsInImage (bool iFlag)
void setTemporary (bool iFlag)
const SVertex * min2d () const
const SVertex * max2d () const
Id shape_id () const
const SShape * shape () const
float shape_importance () const
const int qi () const
occluder_container::const_iterator occluders_begin () const
occluder_container::const_iterator occluders_end () const
bool occluders_empty () const
int occluders_size () const
const Polygon3r & occludee () const
const SShape * occluded_shape () const
bool occludee_empty () const
real z_discontinuity () const
int viewedge_nature () const
Vec3r orientation2d () const
Vec3r orientation3d () const
virtual Interface0DIterator verticesBegin ()
virtual Interface0DIterator verticesEnd ()
virtual Interface0DIterator pointsBegin (float t=0.0f)
virtual Interface0DIterator pointsEnd (float t=0.0f)
Public Member Functions inherited from Freestyle::Interface1D
 Interface1D ()
virtual ~Interface1D ()
virtual uint getTimeStamp () const
void setTimeStamp (uint iTimeStamp)

Protected Attributes

Vec3r _aNormal
Vec3r _bNormal
uint _aFrsMaterialIndex
uint _bFrsMaterialIndex
bool _aFaceMark
bool _bFaceMark
Protected Attributes inherited from Freestyle::FEdge
SVertex * _VertexA
SVertex * _VertexB
Id _Id
Nature::EdgeNature _Nature
FEdge * _NextEdge
FEdge * _PreviousEdge
ViewEdge * _ViewEdge
Polygon3r _aFace
Vec3r _occludeeIntersection
bool _occludeeEmpty
bool _isSmooth
bool _isInImage
bool _isTemporary
Protected Attributes inherited from Freestyle::Interface1D
uint _timeStamp

Additional Inherited Members

Static Public Member Functions inherited from Freestyle::FEdge
static SVertex * CommonVertex (FEdge *iEdge1, FEdge *iEdge2)
Public Attributes inherited from Freestyle::FEdge
void * userdata

Detailed Description

Class defining a sharp FEdge. A Sharp FEdge corresponds to an initial edge of the input mesh. It can be a silhouette, a crease or a border. If it is a crease edge, then it is bordered by two faces of the mesh. Face a lies on its right whereas Face b lies on its left. If it is a border edge, then it doesn't have any face on its right, and thus Face a = 0.

Definition at line 1124 of file Silhouette.h.

Constructor & Destructor Documentation

◆ FEdgeSharp() [1/3]

◆ FEdgeSharp() [2/3]

Freestyle::FEdgeSharp::FEdgeSharp ( SVertex * vA,
SVertex * vB )
inline

Builds an FEdgeSharp going from vA to vB.

Definition at line 1148 of file Silhouette.h.

References _aFaceMark, _aFrsMaterialIndex, _bFaceMark, _bFrsMaterialIndex, and Freestyle::FEdge::FEdge().

◆ FEdgeSharp() [3/3]

Freestyle::FEdgeSharp::FEdgeSharp ( FEdgeSharp & iBrother)
inline

◆ ~FEdgeSharp()

virtual Freestyle::FEdgeSharp::~FEdgeSharp ( )
inlinevirtual

Destructor.

Definition at line 1166 of file Silhouette.h.

Member Function Documentation

◆ aFaceMark()

bool Freestyle::FEdgeSharp::aFaceMark ( ) const
inline

Returns the face mark of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and thus false is returned.

Definition at line 1215 of file Silhouette.h.

References _aFaceMark.

Referenced by FEdgeSharp_face_mark_right_get(), and Freestyle::SShape::SplitEdgeIn2().

◆ aFrsMaterial()

const FrsMaterial & Freestyle::FEdgeSharp::aFrsMaterial ( ) const

Returns the material of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore, no material.

Definition at line 391 of file Silhouette.cpp.

References _aFrsMaterialIndex, Freestyle::FEdge::_VertexA, Freestyle::SShape::frs_material(), and Freestyle::SVertex::shape().

Referenced by FEdgeSharp_material_right_get().

◆ aFrsMaterialIndex()

uint Freestyle::FEdgeSharp::aFrsMaterialIndex ( ) const
inline

Returns the index of the material of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore, no material.

Definition at line 1193 of file Silhouette.h.

References _aFrsMaterialIndex.

Referenced by FEdgeSharp_material_index_right_get(), Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ bFaceMark()

bool Freestyle::FEdgeSharp::bFaceMark ( ) const
inline

Returns the face mark of the face lying on the left of the FEdge.

Definition at line 1221 of file Silhouette.h.

References _bFaceMark.

Referenced by FEdgeSharp_face_mark_left_get(), and Freestyle::SShape::SplitEdgeIn2().

◆ bFrsMaterial()

const FrsMaterial & Freestyle::FEdgeSharp::bFrsMaterial ( ) const

Returns the material of the face lying on the left of the FEdge.

Definition at line 396 of file Silhouette.cpp.

References _bFrsMaterialIndex, Freestyle::FEdge::_VertexA, Freestyle::SShape::frs_material(), and Freestyle::SVertex::shape().

Referenced by FEdgeSharp_material_left_get().

◆ bFrsMaterialIndex()

uint Freestyle::FEdgeSharp::bFrsMaterialIndex ( ) const
inline

Returns the index of the material of the face lying on the left of the FEdge.

Definition at line 1204 of file Silhouette.h.

References _bFrsMaterialIndex.

Referenced by FEdgeSharp_material_index_left_get(), Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ duplicate()

virtual FEdge * Freestyle::FEdgeSharp::duplicate ( )
inlinevirtual

Cloning method.

Reimplemented from Freestyle::FEdge.

Definition at line 1169 of file Silhouette.h.

References Freestyle::FEdge::FEdge(), and FEdgeSharp().

◆ getExactTypeName()

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

Returns the string "FEdgeSharp".

Reimplemented from Freestyle::FEdge.

Definition at line 1135 of file Silhouette.h.

◆ normalA()

const Vec3r & Freestyle::FEdgeSharp::normalA ( )
inline

Returns the normal to the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore, no normal.

Definition at line 1178 of file Silhouette.h.

References _aNormal.

Referenced by FEdgeSharp_mathutils_get(), FEdgeSharp_mathutils_get_index(), FEdgeSharp_mathutils_set_index(), and Freestyle::SShape::SplitEdgeIn2().

◆ normalB()

const Vec3r & Freestyle::FEdgeSharp::normalB ( )
inline

Returns the normal to the face lying on the left of the FEdge.

Definition at line 1184 of file Silhouette.h.

References _bNormal.

Referenced by FEdgeSharp_mathutils_get(), FEdgeSharp_mathutils_get_index(), FEdgeSharp_mathutils_set_index(), and Freestyle::SShape::SplitEdgeIn2().

◆ setaFaceMark()

void Freestyle::FEdgeSharp::setaFaceMark ( bool iFaceMark)
inline

Sets the face mark of the face lying on the right of the FEdge.

Definition at line 1251 of file Silhouette.h.

References _aFaceMark.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), FEdgeSharp_face_mark_right_set(), and Freestyle::SShape::SplitEdgeIn2().

◆ setaFrsMaterialIndex()

void Freestyle::FEdgeSharp::setaFrsMaterialIndex ( uint i)
inline

Sets the index of the material lying on the right of the FEdge.

Definition at line 1239 of file Silhouette.h.

References _aFrsMaterialIndex, and i.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), FEdgeSharp_material_index_right_set(), Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setbFaceMark()

void Freestyle::FEdgeSharp::setbFaceMark ( bool iFaceMark)
inline

Sets the face mark of the face lying on the left of the FEdge.

Definition at line 1257 of file Silhouette.h.

References _bFaceMark.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), FEdgeSharp_face_mark_left_set(), and Freestyle::SShape::SplitEdgeIn2().

◆ setbFrsMaterialIndex()

void Freestyle::FEdgeSharp::setbFrsMaterialIndex ( uint i)
inline

Sets the index of the material lying on the left of the FEdge.

Definition at line 1245 of file Silhouette.h.

References _bFrsMaterialIndex, and i.

Referenced by Freestyle::ViewEdgeXBuilder::BuildSharpFEdge(), FEdgeSharp_material_index_left_set(), Freestyle::SShape::SplitEdge(), and Freestyle::SShape::SplitEdgeIn2().

◆ setNormalA()

void Freestyle::FEdgeSharp::setNormalA ( const Vec3r & iNormal)
inline

◆ setNormalB()

void Freestyle::FEdgeSharp::setNormalB ( const Vec3r & iNormal)
inline

Member Data Documentation

◆ _aFaceMark

bool Freestyle::FEdgeSharp::_aFaceMark
protected

Definition at line 1130 of file Silhouette.h.

Referenced by aFaceMark(), FEdgeSharp(), FEdgeSharp(), FEdgeSharp(), and setaFaceMark().

◆ _aFrsMaterialIndex

uint Freestyle::FEdgeSharp::_aFrsMaterialIndex
protected

◆ _aNormal

Vec3r Freestyle::FEdgeSharp::_aNormal
protected

Definition at line 1126 of file Silhouette.h.

Referenced by FEdgeSharp(), normalA(), and setNormalA().

◆ _bFaceMark

bool Freestyle::FEdgeSharp::_bFaceMark
protected

Definition at line 1131 of file Silhouette.h.

Referenced by bFaceMark(), FEdgeSharp(), FEdgeSharp(), FEdgeSharp(), and setbFaceMark().

◆ _bFrsMaterialIndex

uint Freestyle::FEdgeSharp::_bFrsMaterialIndex
protected

◆ _bNormal

Vec3r Freestyle::FEdgeSharp::_bNormal
protected

Definition at line 1127 of file Silhouette.h.

Referenced by FEdgeSharp(), normalB(), and setNormalB().


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