Skip to content

Commit

Permalink
Merge pull request #4 from alxbilger/basevirtualfunctions
Browse files Browse the repository at this point in the history
getTemplateName is no longer virtual
  • Loading branch information
fredroy authored Oct 27, 2022
2 parents 9a38a89 + 2c245ef commit e006bae
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/Registration/GroupwiseRegistrationEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ class GroupwiseRegistrationEngine : public core::DataEngine
core::objectmodel::vectorData<VecCoord> vf_inputs;
core::objectmodel::vectorData<VecCoord> vf_outputs;

virtual std::string getTemplateName() const override { return templateName(this); }
static std::string templateName(const GroupwiseRegistrationEngine<T>* = NULL) { return T::Name(); }

void init() override
{
addInput(&f_nbInputs);
Expand Down
3 changes: 0 additions & 3 deletions src/Registration/IntensityProfileCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ class IntensityProfileCreator : public core::DataEngine
Data< ImageTypes > image;
Data< type::vector<T> > values; ///< intensity values for each line

virtual std::string getTemplateName() const override { return templateName(this); }
static std::string templateName(const IntensityProfileCreator<ImageTypes>* = NULL) { return ImageTypes::Name(); }

IntensityProfileCreator() : Inherited()
, image(initData(&image,ImageTypes(),"image",""))
, values(initData(&values,"values","intensity values for each line"))
Expand Down
3 changes: 0 additions & 3 deletions src/Registration/IntensityProfileRegistrationForceField.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ class IntensityProfileRegistrationForceField : public core::behavior::ForceField

core::behavior::MechanicalState<DataTypes>* getObject() { return this->mstate; }

static std::string templateName(const IntensityProfileRegistrationForceField<DataTypes,ImageTypes>* = NULL) { return DataTypes::Name()+ std::string(",")+ImageTypes::Name(); }
virtual std::string getTemplateName() const override { return templateName(this); }

// -- ForceField interface
void reinit() override;
void init() override;
Expand Down

0 comments on commit e006bae

Please sign in to comment.