FEdge Class Reference
#include <Silhouette.h>
Inheritance diagram for FEdge:
List of all members.
Detailed Description
Base Class for feature edges. This FEdge can represent a silhouette, a crease, a ridge/valley, a border or a suggestive contour. For silhouettes, the FEdge is oriented such as, the visible face lies on the left of the edge. For borders, the FEdge is oriented such as, the face lies on the left of the edge. An FEdge can represent an initial edge of the mesh or runs accross a face of the initial mesh depending on the smoothness or sharpness of the mesh. This class is specialized into a smooth and a sharp version since their properties slightly vary from one to the other.
Constructor & Destructor Documentation
|
Builds an FEdge going from vA to vB. |
virtual ~FEdge |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
virtual FEdge* dupplicate |
( |
|
) |
[inline, virtual] |
|
virtual string getExactTypeName |
( |
|
) |
const [inline, virtual] |
|
|
Returns the string "FEdge" .
Reimplemented from Interface1D. |
virtual Id getId |
( |
|
) |
const [inline, virtual] |
|
virtual real getLength2D |
( |
|
) |
const [inline, virtual] |
|
|
Returns the 2D length of the FEdge.
Reimplemented from Interface1D. |
Nature::EdgeNature getNature |
( |
|
) |
const [inline, virtual] |
|
|
Returns the nature of the FEdge.
Reimplemented from Interface1D. |
bool isSmooth |
( |
|
) |
const [inline] |
|
|
Returns true if this FEdge is a smooth FEdge. |
FEdge* nextEdge |
( |
|
) |
[inline] |
|
|
Returns the FEdge following this one in the ViewEdge. If this FEdge is the last of the ViewEdge, 0 is returned. |
SVertex* operator[] |
( |
const unsigned short int & |
i |
) |
const [inline] |
|
|
Returns an iterator over the FEdge points, pointing to the first point. The difference with verticesBegin() is that here we can iterate over points of the FEdge at a any given sampling. Indeed, for each iteration, a virtual point is created. - Parameters:
-
| t | The sampling with which we want to iterate over points of this FEdge. |
Implements Interface1D. |
|
Returns an iterator over the FEdge points, pointing after the last point. The difference with verticesEnd() is that here we can iterate over points of the FEdge at a any given sampling. Indeed, for each iteration, a virtual point is created. - Parameters:
-
| t | The sampling with which we want to iterate over points of this FEdge. |
Implements Interface1D. |
FEdge* previousEdge |
( |
|
) |
[inline] |
|
|
Returns the Edge preceding this one in the ViewEdge. If this FEdge is the first one of the ViewEdge, 0 is returned. |
void SetId |
( |
const Id & |
id |
) |
[inline] |
|
void SetNature |
( |
Nature::EdgeNature |
iNature |
) |
[inline] |
|
|
Sets the nature of this FEdge. |
void SetNextEdge |
( |
FEdge * |
iEdge |
) |
[inline] |
|
|
Sets the pointer to the next FEdge. |
void SetPreviousEdge |
( |
FEdge * |
iEdge |
) |
[inline] |
|
|
Sets the pointer to the previous FEdge. |
void SetSmooth |
( |
bool |
iFlag |
) |
[inline] |
|
|
Sets the flag telling whether this FEdge is smooth or sharp. true for Smooth, false for Sharp. |
void SetVertexA |
( |
SVertex * |
vA |
) |
[inline] |
|
void SetVertexB |
( |
SVertex * |
vB |
) |
[inline] |
|
void SetViewEdge |
( |
ViewEdge * |
iViewEdge |
) |
[inline] |
|
|
Sets the ViewEdge to which this FEdge belongs to. |
|
Returns a pointer to the ViewEdge to which this FEdge belongs to. |
Member Data Documentation
|
A field that can be used by the user to store any data. This field must be reseted afterwards using ResetUserData(). |
The documentation for this class was generated from the following file: