SVertex Class Reference
#include <Silhouette.h>
Inheritance diagram for SVertex:
List of all members.
Detailed Description
Class to define a vertex of the embedding.
Constructor & Destructor Documentation
| SVertex |
( |
const Vec3r & |
iPoint3D, |
|
|
const Id & |
id |
|
) |
[inline] |
|
|
|
Builds a SVertex from 3D coordinates and an Id. |
| virtual ~SVertex |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
| void AddFEdge |
( |
FEdge * |
iFEdge |
) |
[inline] |
|
|
|
Add an FEdge to the list of edges emanating from this SVertex. |
| void AddNormal |
( |
const Vec3r & |
iNormal |
) |
[inline] |
|
|
|
Adds a normal to the Svertex's set of normals. If the same normal is already in the set, nothing changes. |
| virtual NonTVertex* castToNonTVertex |
( |
|
) |
[virtual] |
|
| virtual SVertex* castToSVertex |
( |
|
) |
[virtual] |
|
| virtual TVertex* castToTVertex |
( |
|
) |
[virtual] |
|
| virtual ViewVertex* castToViewVertex |
( |
|
) |
[virtual] |
|
| virtual SVertex* dupplicate |
( |
|
) |
[inline, virtual] |
|
| virtual string getExactTypeName |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the string "SVertex" .
Reimplemented from Interface0D. |
| virtual Id getId |
( |
|
) |
const [inline, virtual] |
|
| virtual Nature::VertexNature getNature |
( |
|
) |
const [virtual] |
|
|
|
Returns the nature of the vertex .
Reimplemented from Interface0D. |
| virtual Vec2f getPoint2D |
( |
|
) |
const [inline, virtual] |
|
| virtual Vec3f getPoint3D |
( |
|
) |
const [inline, virtual] |
|
| virtual real getProjectedX |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the projected 3D x coordinate of the vertex .
Reimplemented from Interface0D. |
| virtual real getProjectedY |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the projected 3D y coordinate of the vertex .
Reimplemented from Interface0D. |
| virtual real getProjectedZ |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the projected 3D z coordinate of the vertex .
Reimplemented from Interface0D. |
| virtual real getX |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the 3D x coordinate of the vertex .
Reimplemented from Interface0D. |
| virtual real getY |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the 3D y coordinate of the vertex .
Reimplemented from Interface0D. |
| virtual real getZ |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the 3D z coordinate of the vertex .
Reimplemented from Interface0D. |
| set<Vec3r> normals |
( |
|
) |
[inline] |
|
|
|
Returns the set of normals for this Vertex. In a smooth surface, a vertex has exactly one normal. In a sharp surface, a vertex can have any number of normals. |
| unsigned normalsSize |
( |
|
) |
const [inline] |
|
|
|
Returns the number of different normals for this vertex. |
| virtual bool operator== |
( |
const SVertex & |
iBrother |
) |
[inline, virtual] |
|
| void SetId |
( |
const Id & |
id |
) |
[inline] |
|
| void SetPoint2D |
( |
const Vec3r & |
iPoint2D |
) |
[inline] |
|
|
|
Sets the 3D projected coordinates of the SVertex. |
| void SetPoint3D |
( |
const Vec3r & |
iPoint3D |
) |
[inline] |
|
|
|
Sets the 3D coordinates of the SVertex. |
|
|
If this SVertex is also a ViewVertex, this method returns a pointer onto this ViewVertex. 0 is returned otherwise. |
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: