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

This class represents a set of attributes of a face of the underlying triangle surface mesh of a PPS constructed from a PN triangle surface. More...

#include <face_attribute.h>

Collaboration diagram for ppsfrompnt::FaceAttribute:

List of all members.

Public Member Functions

 FaceAttribute ()
 Creates an instance of this class.
 FaceAttribute (PNTriangle *patch)
 Creates an instance of this class.
 FaceAttribute (const FaceAttribute &a)
 Creates an instance of this class from another instance.
 ~FaceAttribute ()
 Destroys an instance of this class.
PNTriangleget_patch () const
 Returns a pointer to the triangular surface patch associated with this face.
void set_patch (PNTriangle *patch)
 Assigns an address to the pointer to the triangular surface patch associated with this face.

Private Attributes

PNTriangle_patch
 Pointer to the PN triangle associated with this face.

Detailed Description

This class represents a set of attributes of a face of the underlying triangle surface mesh of a PPS constructed from a PN triangle surface.

Definition at line 56 of file face_attribute.h.


Constructor & Destructor Documentation

ppsfrompnt::FaceAttribute::FaceAttribute ( PNTriangle patch) [inline]

Creates an instance of this class.

Parameters:
patchA pointer to the PN triangle associated with the face that owns this attribute.

Definition at line 81 of file face_attribute.h.

                                       : _patch( patch )
    {}
ppsfrompnt::FaceAttribute::FaceAttribute ( const FaceAttribute a) [inline]

Creates an instance of this class from another instance.

Parameters:
aA given instance of this class.

Definition at line 92 of file face_attribute.h.

References _patch, and get_patch().

    {
      _patch = new PNTriangle( *( a.get_patch() ) ) ;
    }

Member Function Documentation

PNTriangle * ppsfrompnt::FaceAttribute::get_patch ( ) const [inline]

Returns a pointer to the triangular surface patch associated with this face.

Returns:
A pointer to the triangular surface patch associated with this face.

Definition at line 119 of file face_attribute.h.

References _patch.

Referenced by FaceAttribute(), and ~FaceAttribute().

    {
      return _patch ; 
    }
void ppsfrompnt::FaceAttribute::set_patch ( PNTriangle patch) [inline]

Assigns an address to the pointer to the triangular surface patch associated with this face.

Parameters:
patchThe address of the PN triangle associated with this face.

Definition at line 134 of file face_attribute.h.

References _patch.

    {
      _patch = patch ; 
    }

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