]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/Parameters.cxx
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Parameters.cxx
index 227898cddc843e4dadfd8750b4a4caf3e8822e98..4025461f345cc060d294880281c3c9f9b4d989f3 100644 (file)
@@ -197,13 +197,10 @@ void cpPlugins::BaseObjects::Parameters::
 ConfigureAsRealTypesChoices( const std::string& name )
 {
   std::vector< std::string > choices;
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
   choices.push_back( "float" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
   choices.push_back( "double" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
   this->ConfigureAsChoices( name, choices );
+  this->SetSelectedChoice( name, "float" );
 }
 
 // -------------------------------------------------------------------------
@@ -211,23 +208,16 @@ void cpPlugins::BaseObjects::Parameters::
 ConfigureAsIntTypesChoices( const std::string& name )
 {
   std::vector< std::string > choices;
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char
   choices.push_back( "char" );
   choices.push_back( "uchar" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_char
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short
   choices.push_back( "short" );
   choices.push_back( "ushort" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_short
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int
   choices.push_back( "int" );
   choices.push_back( "uint" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_int
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long
   choices.push_back( "long" );
   choices.push_back( "ulong" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
   this->ConfigureAsChoices( name, choices );
+  this->SetSelectedChoice( name, "char" );
 }
 
 // -------------------------------------------------------------------------
@@ -235,29 +225,18 @@ void cpPlugins::BaseObjects::Parameters::
 ConfigureAsScalarTypesChoices( const std::string& name )
 {
   std::vector< std::string > choices;
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char
   choices.push_back( "char" );
   choices.push_back( "uchar" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_char
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short
   choices.push_back( "short" );
   choices.push_back( "ushort" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_short
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int
   choices.push_back( "int" );
   choices.push_back( "uint" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_int
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long
   choices.push_back( "long" );
   choices.push_back( "ulong" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
   choices.push_back( "float" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
   choices.push_back( "double" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
   this->ConfigureAsChoices( name, choices );
+  this->SetSelectedChoice( name, "char" );
 }
 
 // -------------------------------------------------------------------------