Public Member Functions | |
MeshTransformationBase (const MeshType &meshType) | |
virtual | ~MeshTransformationBase () |
virtual Mesh | apply (const Mesh &inputMesh) const =0 |
Printable interface | |
virtual void | print (std::ostream &os) const |
Describable interface | |
virtual std::string | description () const |
Protected Member Functions | |
Mesh | createMesh (int dim, const MPIComm &comm) const |
Private Attributes | |
MeshType | meshType_ |
If the communicator has more than one processor, the mesh created will be distributed.
The only method you will need to override is
virtual Mesh apply(const Mesh& inputMesh) const = 0
See the ExtrustionMeshTransformation source code for a very simple example of how to write a mesh filter subtype.
Optionally, you can override the description() method to provide more informative descriptive output than the std::string "MeshTransformationBase[unknown subtype]".
Definition at line 80 of file SundanceMeshTransformationBase.hpp.
Sundance::MeshTransformationBase::MeshTransformationBase | ( | const MeshType & | meshType | ) | [inline] |
Construct with a mesh type, which specifies the type of mesh to be built when the filter is applied.
Definition at line 89 of file SundanceMeshTransformationBase.hpp.
virtual Sundance::MeshTransformationBase::~MeshTransformationBase | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 93 of file SundanceMeshTransformationBase.hpp.
virtual Mesh Sundance::MeshTransformationBase::apply | ( | const Mesh & | inputMesh | ) | const [pure virtual] |
Apply the filter to the given input mesh, producing an output mesh
Implemented in Sundance::ExtrusionMeshTransformation, and Sundance::RefinementTransformation.
createMesh() allocates the mesh object with a call to meshType's createMesh() method.
Definition at line 9 of file SundanceMeshTransformationBase.cpp.
References Sundance::MeshType::createEmptyMesh(), and meshType_.
Referenced by Sundance::ExtrusionMeshTransformation::apply().
virtual std::string Sundance::MeshTransformationBase::description | ( | ) | const [inline, virtual] |
Print to a stream
Reimplemented in Sundance::ExtrusionMeshTransformation.
Definition at line 109 of file SundanceMeshTransformationBase.hpp.
Referenced by print().
virtual void Sundance::MeshTransformationBase::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print to a stream
Implements Playa::Printable.
Definition at line 103 of file SundanceMeshTransformationBase.hpp.
References description().
Reimplemented in Sundance::RefinementTransformation.
Definition at line 121 of file SundanceMeshTransformationBase.hpp.
Referenced by createMesh().