The Parametric Pseudo-Manifold (PPS) Library 1.0
|
This class represents a set of attributes of a vertex of the underlying triangle surface mesh of a PPS constructed from a PN triangle surface. More...
#include <vertex_attribute.h>
Public Member Functions | |
VertexAttribute () | |
Creates an instance of this class. | |
VertexAttribute (Bezier *patch) | |
Creates an instance of this class. | |
VertexAttribute (const VertexAttribute &a) | |
Creates an instance of this class from another instance. | |
~VertexAttribute () | |
Destroys an instance of this class. | |
Bezier * | get_patch () const |
Returns a pointer to the PPS shape function ( a rectangular Bézier patch) associated with the vertex that owns this attribute set. | |
void | set_patch (Bezier *patch) |
Assigns an address to the patch pointer of this attribute. | |
Private Attributes | |
Bezier * | _patch |
Pointer to the shape function associated with the vertex that owns this attribute. |
This class represents a set of attributes of a vertex of the underlying triangle surface mesh of a PPS constructed from a PN triangle surface.
Definition at line 59 of file vertex_attribute.h.
ppsfrompnt::VertexAttribute::VertexAttribute | ( | Bezier * | patch | ) | [inline] |
Creates an instance of this class.
patch | The address of the PPS shape function (a rectangular Bézier patch ) associated with the vertex that owns this attribute. |
Definition at line 85 of file vertex_attribute.h.
: _patch( patch ) {}
ppsfrompnt::VertexAttribute::VertexAttribute | ( | const VertexAttribute & | a | ) | [inline] |
Creates an instance of this class from another instance.
a | A given instance of this class. |
Definition at line 96 of file vertex_attribute.h.
References _patch, and get_patch().
{ _patch = new Bezier( *( a.get_patch() ) ) ; }
Bezier * ppsfrompnt::VertexAttribute::get_patch | ( | ) | const [inline] |
Returns a pointer to the PPS shape function ( a rectangular Bézier patch) associated with the vertex that owns this attribute set.
Definition at line 124 of file vertex_attribute.h.
References _patch.
Referenced by VertexAttribute(), and ~VertexAttribute().
{ return _patch ; }
void ppsfrompnt::VertexAttribute::set_patch | ( | Bezier * | patch | ) | [inline] |
Assigns an address to the patch pointer of this attribute.
patch | The address of the PPS shape function (a rectangular Bézier patch ) associated with the vertex that owns this attribute. |
Definition at line 140 of file vertex_attribute.h.
References _patch.
{ _patch = patch ; }