Commit 59b626a4 authored by lealv's avatar lealv
Browse files

FIXED : avoid prefix "camitk::" added in the header file name (COMPONENTNAME variable).

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1969 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 8b3c9016
......@@ -135,10 +135,7 @@ void ActionGenerator::writeHFile(QString directoryName) {
text = in.readLine();
text.replace(QRegExp("@LICENCE@"), licence);
text.replace(QRegExp("@HEADDEF@"), className.toUpper());
if (componentName == "ImageComponent" || componentName == "MeshComponent")
text.replace(QRegExp("@COMPONENTNAME@"), "camitk::" + componentName);
else
text.replace(QRegExp("@COMPONENTNAME@"), componentName);
text.replace(QRegExp("@COMPONENTNAME@"), componentName);
text.replace(QRegExp("@ACTIONCLASSNAME@"), className);
if (text.contains(QRegExp("@IF_NOCOMP@"))) {
......
......@@ -30,7 +30,7 @@ public slots:
@IF_DEFCOMPONENT@
private:
/// helper method to simplify the target component processing
virtual void process(@COMPONENTNAME@ *);
virtual void process(camitk::@COMPONENTNAME@ *);
@IF_ITKFILTER@
vtkSmartPointer<vtkImageData> implementProcess(vtkSmartPointer<vtkImageData> img);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment