36 #include "AbstractStimulusFactory.hpp" 37 #include "ZeroStimulus.hpp" 40 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
44 boost::shared_ptr<ZeroStimulus> p_stim (
new ZeroStimulus() );
48 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
51 assert(mpMesh != NULL);
52 return mpMesh->GetNumNodes();
55 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
62 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
67 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
73 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
79 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
84 EXCEPTION(
"The mesh object has not been set in the stimulus factory");
95 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
virtual ~AbstractStimulusFactory()
#define EXCEPTION(message)
std::vector< AbstractChasteRegion< SPACE_DIM > * > mGroundedRegions
virtual boost::shared_ptr< AbstractStimulusFunction > CreateStimulusForNode(Node< SPACE_DIM > *pNode)
void SetMesh(AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh)
std::vector< AbstractChasteRegion< SPACE_DIM > * > GetRegionsToBeGrounded()
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * mpMesh
virtual void SetCompatibleExtracellularStimulus()
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * GetMesh()
virtual unsigned GetNumberOfCells()
AbstractStimulusFactory()