The Parametric Pseudo-Manifold (PPS) Library 1.0
ppsfrompnt::VertexAttribute Class Reference

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>

Collaboration diagram for ppsfrompnt::VertexAttribute:

List of all members.

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.
Bezierget_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.

Detailed Description

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.


Constructor & Destructor Documentation

ppsfrompnt::VertexAttribute::VertexAttribute ( Bezier patch) [inline]

Creates an instance of this class.

Parameters:
patchThe 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.

Parameters:
aA 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() ) ) ;
    }

Member Function Documentation

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.

Returns:
A pointer to the 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.

Parameters:
patchThe 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 ;
    }

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