MeshKit  1.0
BasicTransform< T > Class Template Reference

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

#include <meshkit/Transform.hpp>

Inheritance diagram for BasicTransform< T >:

List of all members.

Public Member Functions

virtual void transform (iMesh *mesh, const std::vector< iMesh::EntityHandle > &src, std::vector< iMesh::EntityHandle > &dest) const
 Transform the selected vertices.
virtual Transformclone () const
 Clone this transform object.

Protected Member Functions

 BasicTransform ()

Detailed Description

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

A utility class for transforming copied 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(Vector<3> &coords) const { ... } };

Definition at line 64 of file TransformBase.hpp.


Constructor & Destructor Documentation

BasicTransform ( ) [inline, protected]

Definition at line 102 of file TransformBase.hpp.


Member Function Documentation

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

Clone this transform object.

Implements Transform.

Definition at line 97 of file TransformBase.hpp.

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

Transform the selected vertices.

Parameters:
meshthe iMesh implementation holding the vertices
srcan array of the source vertices
destan array of the destination vertices

Implements Transform.

Definition at line 72 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