MeshKit  1.0
AF2FreeZoneDefSimple Class Reference

#include <AF2FreeZoneDefSimple.hpp>

Inheritance diagram for AF2FreeZoneDefSimple:

List of all members.

Public Member Functions

 AF2FreeZoneDefSimple (std::list< AF2Point2D > const &rfrncBndryPnts, std::list< const AF2PointTransform * > const &bndryPntTrnsfrms)
 Constructor.
 ~AF2FreeZoneDefSimple ()
 AF2FreeZoneDefSimple (const AF2FreeZoneDefSimple &toCopy)
 Copy constructor.
AF2FreeZoneDefSimpleoperator= (const AF2FreeZoneDefSimple &rhs)
 Assignment operator.
AF2FreeZoneDefSimpleclone () const
 Make and return an independent copy of yourself.
AF2FreeZonemakeFreeZone (AF2Binding const &vertexBinding, unsigned int qualityClass) const
 Implement the makeFreeZone method defined in the parent pure virtual class AF2FreeZoneDef.

Private Attributes

int numPoints
AF2Point2DbndryPoints
const AF2PointTransform ** pointTransforms

Detailed Description

Definition at line 22 of file AF2FreeZoneDefSimple.hpp.


Constructor & Destructor Documentation

AF2FreeZoneDefSimple ( std::list< AF2Point2D > const &  rfrncBndryPnts,
std::list< const AF2PointTransform * > const &  bndryPntTrnsfrms 
)

Constructor.

The constructor requires a list of boundary points and a list of point transforms. The lists must be the same length. Each point transform will be applied to the boundary point at the corresponding position in the list of boundary points.

Points should be listed in order such that after the transforms are applied they will define a counterclockwise traversal of the vertices of a convex polygon.

This class will clone the point transforms that are passed into the method, so the calling context is responsible for managing memory for the AF2PointTransform objects in the list that is passed into this method.

Parameters:
rfrncBndryPntsthe reference locations of the boundary points of the free zone, i.e., the locations that the boundary points will have if the existing points of the rule are all placed in their ideal positions
bndryPntTrnsfrmsthe list of point transformations

Definition at line 4 of file AF2FreeZoneDefSimple.cpp.

Definition at line 36 of file AF2FreeZoneDefSimple.cpp.

Copy constructor.

Definition at line 46 of file AF2FreeZoneDefSimple.cpp.


Member Function Documentation

AF2FreeZoneDefSimple * clone ( ) const [virtual]

Make and return an independent copy of yourself.

This method supports making copies of the concrete derived class that an AF2FreeZoneDef pointer references.

Deletion of the object pointed to by the pointer returned from this method must be managed by the context that calls the method.

Implements AF2FreeZoneDef.

Definition at line 91 of file AF2FreeZoneDefSimple.cpp.

AF2FreeZone * makeFreeZone ( AF2Binding const &  vertexBinding,
unsigned int  qualityClass 
) const [virtual]

Implement the makeFreeZone method defined in the parent pure virtual class AF2FreeZoneDef.

See the documentation in the parent class for the general contract of the makeFreeZone method.

This implementation works by taking each reference boundary point in the list of points passed to the constructor and transforming it to a different location using the corresponding point transform passed to the constructor together with the vertex binding passed into this method. The quality class is ignored in this implementation.

Implements AF2FreeZoneDef.

Definition at line 96 of file AF2FreeZoneDefSimple.cpp.

AF2FreeZoneDefSimple & operator= ( const AF2FreeZoneDefSimple rhs)

Assignment operator.

Definition at line 58 of file AF2FreeZoneDefSimple.cpp.


Member Data Documentation

AF2Point2D* bndryPoints [private]

Definition at line 27 of file AF2FreeZoneDefSimple.hpp.

int numPoints [private]

Definition at line 26 of file AF2FreeZoneDefSimple.hpp.

Definition at line 28 of file AF2FreeZoneDefSimple.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines