MeshKit  1.0
BasicTransform< T > Class Template Reference

A utility class for transforming extruded meshes. More...

#include <meshkit/Transform.hpp>

Inheritance diagram for BasicTransform< T >:

List of all members.

Public Member Functions

virtual void transform (int step, iMesh *mesh, const std::vector< iMesh::EntityHandle > &src, std::vector< iMesh::EntityHandle > &dest) const
 Transform the selected vertices.
virtual int steps () const
 The number of steps in this extrusion.
virtual Transformclone () const
 Clone this transform object.

Protected Member Functions

 BasicTransform (int steps)

Protected Attributes

int steps_

Detailed Description

template<typename T>
class MeshKit::Extrude::BasicTransform< T >

A utility class for transforming extruded meshes.

This class template simplifies the creation of new transformation functions. To use this, create a new class and inherit from this one, passing the new class name as the template parameter (the curiously- recurring template pattern).

Example: class Example : public BasicTransform<Example> { friend class BasicTransform<Example>; public: Example() { ... } protected: void transform_one(int step, Vector<3> &coords) const { ... } };

Definition at line 162 of file TransformBase.hpp.


Constructor & Destructor Documentation

BasicTransform ( int  steps) [inline, protected]

Definition at line 202 of file TransformBase.hpp.


Member Function Documentation

virtual Transform* clone ( ) const [inline, virtual]

Clone this transform object.

Implements Transform.

Definition at line 197 of file TransformBase.hpp.

virtual int steps ( ) const [inline, virtual]

The number of steps in this extrusion.

Implements Transform.

Definition at line 190 of file TransformBase.hpp.

virtual void transform ( int  step,
iMesh mesh,
const std::vector< iMesh::EntityHandle > &  src,
std::vector< iMesh::EntityHandle > &  dest 
) const [inline, virtual]

Transform the selected vertices.

Parameters:
stepthe step number for the extrusion, with 0 being the already-existing mesh data
meshthe iMesh implementation holding the vertices
srcan array of the source vertices
destan array of the destination vertices

Implements Transform.

Definition at line 172 of file TransformBase.hpp.


Member Data Documentation

int steps_ [protected]

Definition at line 205 of file TransformBase.hpp.


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