Commit 42f6baa1 authored by Julien Malik's avatar Julien Malik

ENH: rename DoCreateParameters to DoInit

parent b460eeba
......@@ -92,7 +92,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "An image from which to compute description.");
......
......@@ -136,7 +136,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputVectorData, "psin", "Input Positive Vector Data");
......
......@@ -79,7 +79,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputVectorData, "in", "Input Vector Data");
SetParameterDescription("in", "Input vector data for validation");
......
......@@ -59,7 +59,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in1", "Input Image 1");
AddParameter(ParameterType_InputImage, "in2", "Input Image 2");
......
......@@ -59,7 +59,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImageList, "il", "Input images");
SetParameterDescription( "il", "List of input images filenames." );
......
......@@ -76,7 +76,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription( "in", "The input Image to classify.");
......
......@@ -206,7 +206,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
......
......@@ -88,7 +88,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "InputImage");
SetParameterDescription("in", "Input image.");
......
......@@ -144,7 +144,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
//Group IO
AddParameter(ParameterType_Group,"io","Input and output data");
......
......@@ -134,7 +134,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImageList, "il", "Input Image List");
SetParameterDescription("il", "Input image list filename.");
......
......@@ -59,7 +59,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in","The input image to apply MAF decomposition on.");
......
......@@ -129,7 +129,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "ref", "Reference Image");
SetParameterDescription( "ref", "The reference image." );
......
......@@ -81,7 +81,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
// Mandatory parameters
AddParameter(ParameterType_InputImage, "ref", "Reference");
......
......@@ -69,7 +69,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
......
......@@ -119,7 +119,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image Filename");
SetParameterDescription("in","The hyperspectral data cube to unmix");
......
......@@ -79,7 +79,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in","Input hyperspectral data cube");
......
......@@ -68,7 +68,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "inp", "Input PAN Image");
AddParameter(ParameterType_InputImage, "inxs", "Input XS Image");
......
......@@ -77,7 +77,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_Group, "carto", "Input cartographic coordinates");
AddParameter(ParameterType_Float, "carto.x", "X cartographic coordinates");
......
......@@ -65,7 +65,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Sensor image");
......
......@@ -63,7 +63,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "Input image.");
......
......@@ -60,7 +60,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_Float, "lat", "Latitude");
SetParameterDescription("lat", "Latitude value of desired point.");
......
......@@ -105,7 +105,7 @@ private:
AddDocTag(Tags::Geometry);
}
void DoCreateParameters()
void DoInit()
{
// Set the parameters
AddParameter(ParameterType_Group,"io","Input and output data");
......
......@@ -64,7 +64,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input image");
AddParameter(ParameterType_OutputImage, "out", "Output image");
......
......@@ -70,7 +70,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "inr", "Reference input");
AddParameter(ParameterType_InputImage, "inm", "The image to reproject");
......
......@@ -99,7 +99,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "Input image, with at least red and NIR channels");
......
......@@ -91,7 +91,7 @@ private:
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image Filename");
......
......@@ -63,7 +63,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_ComplexInputImage, "in", "Input Complex Image");
AddParameter(ParameterType_ComplexOutputImage, "out", "Output Image");
......
......@@ -83,7 +83,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputVectorData, "in", "InputVectorData");
SetParameterDescription( "in", "The input vector data to be rasterized" );
......
......@@ -82,7 +82,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "The image to segment.");
......
......@@ -61,7 +61,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
AddParameter(ParameterType_OutputImage, "fout", "Filtered output");
......
......@@ -58,9 +58,9 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
std::cout << "TestApplication::DoCreateParameters" << std::endl;
std::cout << "TestApplication::DoInit" << std::endl;
AddParameter(ParameterType_Empty, "boolean", "Boolean");
AddParameter(ParameterType_Int, "int", "Integer");
MandatoryOff("int");
......
......@@ -64,7 +64,7 @@ private:
AddDocTag("Util");
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImageList, "il", "Input image list");
SetParameterDescription("il", "Image list to perform computation on.");
......
......@@ -103,7 +103,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "Input image filename");
......
......@@ -65,7 +65,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_Group, "ref", "Reference image properties");
AddParameter(ParameterType_InputImage, "ref.in", "Reference image");
......
......@@ -78,7 +78,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImageList, "il", "Input image list");
SetParameterDescription("il", "Image list to concatenate");
......
......@@ -63,7 +63,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputVectorDataList, "vd", "Input VectorDatas to concatenate");
SetParameterDescription("vd", "VectorData files to be concatenated in an unique VectorData");
......
......@@ -97,7 +97,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input image");
SetParameterDescription("in", "Input image");
......
......@@ -61,7 +61,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "Input image to filter.");
......
......@@ -66,7 +66,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "Input image.");
......
......@@ -60,7 +60,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input image");
SetParameterDescription("in", "Input image");
......
......@@ -75,7 +75,7 @@ private:
AddDocTag("Util");
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
......
......@@ -64,7 +64,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_OutputVectorData, "out", "Output vector data");
SetParameterDescription("out", "Generated output vector data path");
......
......@@ -68,7 +68,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription( "in", "The image to read" );
......
......@@ -59,7 +59,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
......
......@@ -65,7 +65,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription( "in", "The image to scale." );
......
......@@ -71,7 +71,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in", "Input image to filter.");
......
......@@ -62,7 +62,7 @@ private:
AddDocTag(Tags::Manip);
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputImage, "in", "Input Image");
SetParameterDescription("in","Input image filename.");
......
......@@ -80,7 +80,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_Group,"io","Input and output data");
AddParameter(ParameterType_InputVectorData, "io.vd", "Input Vector data");
......
......@@ -70,7 +70,7 @@ private:
{
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputVectorData, "in", "Input");
SetParameterDescription("in", "Input Vector Data");
......
......@@ -65,7 +65,7 @@ private:
AddDocTag(Tags::Vector);
}
void DoCreateParameters()
void DoInit()
{
AddParameter(ParameterType_InputVectorData, "vd", "Input Vector data");
AddParameter(ParameterType_OutputVectorData,"out","Output Vector data");
......
......@@ -108,7 +108,7 @@ const Parameter* Application::GetParameterByKey(std::string name) const
void Application::Init()
{
m_ParameterList = ParameterGroup::New();
this->DoCreateParameters();
this->DoInit();
}
void Application::UpdateParameters()
......
......@@ -195,7 +195,7 @@ public:
void SetParameterFloat(std::string parameter, float value);
/* Set an default integer value, must used in the
* DoCreateParameters when setting a value by default
* DoInit when setting a value by default
* for the parameter
*
* Can be called for types :
......@@ -207,7 +207,7 @@ public:
void SetDefaultParameterInt(std::string parameter, int value);
/* Set a default floating value, must used in the
* DoCreateParameters when setting a value by default
* DoInit when setting a value by default
* for the parameter
*
* Can be called for types :
......@@ -216,7 +216,7 @@ public:
void SetDefaultParameterFloat(std::string parameter, float value);
/* Set a minimum int value, must used in the
* DoCreateParameters when setting a value by default
* DoInit when setting a value by default
* for the parameter
*
* Can be called for types :
......@@ -225,7 +225,7 @@ public:
void SetMinimumParameterIntValue(std::string parameter, int value);
/* Set a maximum int value, must used in the
* DoCreateParameters when setting a value by default
* DoInit when setting a value by default
* for the parameter
*
* Can be called for types :
......@@ -234,7 +234,7 @@ public:
void SetMaximumParameterIntValue(std::string parameter, int value);
/* Set a minimum int value, must used in the
* DoCreateParameters when setting a value by default
* DoInit when setting a value by default
* for the parameter
*
* Can be called for types :
......@@ -243,7 +243,7 @@ public:
void SetMinimumParameterFloatValue(std::string parameter, float value);
/* Set a maximum int value, must used in the
* DoCreateParameters when setting a value by default
* DoInit when setting a value by default
* for the parameter
*
* Can be called for types :
......@@ -684,7 +684,7 @@ protected:
private:
/* Implement this method to add parameters */
virtual void DoCreateParameters() = 0;
virtual void DoInit() = 0;
/* Implement this method to update non valued parameters */
virtual void DoUpdateParameters() = 0;
......
......@@ -58,7 +58,7 @@ protected:
{
}
void DoCreateParameters()
void DoInit()
{
}
......
Markdown is supported
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