MoCSI API Reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ShapeFactory< T > Class Template Reference

Class that manages the creation of the ShapeBase object, which is used by GridFactory. Supports loading of shape models from files through VTK, if it is installed. More...

#include <ShapeFactory.h>

Collaboration diagram for ShapeFactory< T >:
Collaboration graph

Public Member Functions

 ShapeFactory (SimulationClassBase< T > *sim, bool shape_file, const std::string &dimension)
 Creator of a ShapeFactory. Invokes creation routine.
 
std::shared_ptr< ShapeBase< T > > getShapePtr ()
 

Detailed Description

template<typename T>
class ShapeFactory< T >

Class that manages the creation of the ShapeBase object, which is used by GridFactory. Supports loading of shape models from files through VTK, if it is installed.

Constructor & Destructor Documentation

◆ ShapeFactory()

template<typename T >
ShapeFactory< T >::ShapeFactory ( SimulationClassBase< T > *  sim,
bool  shape_file,
const std::string &  dimension 
)

Creator of a ShapeFactory. Invokes creation routine.

Parameters
simThe simulation class pointer.
shape_fileIf a shape_file should be loaded or not.
dimensionDimension of the simulation environment, either 1D/2D/3D.

Member Function Documentation

◆ getShapePtr()

template<typename T >
std::shared_ptr< ShapeBase< T > > ShapeFactory< T >::getShapePtr ( )
inline

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