X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FBaseObjects%2FParameters.cxx;h=b30b7d7cc82b2264f08ed0c8c10537726ae36e76;hb=3bb947834c947c43da2ae10ed3f5fcec9707d5bb;hp=1c6363863830cd14e55b5da9f784ad555cf7c226;hpb=6bb9f03efacd4a16feea0b43acf0d818abac7969;p=cpPlugins.git diff --git a/lib/cpPlugins/BaseObjects/Parameters.cxx b/lib/cpPlugins/BaseObjects/Parameters.cxx index 1c63638..b30b7d7 100644 --- a/lib/cpPlugins/BaseObjects/Parameters.cxx +++ b/lib/cpPlugins/BaseObjects/Parameters.cxx @@ -174,6 +174,20 @@ ConfigureAsChoices( this->Modified( ); } +// ------------------------------------------------------------------------- +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 ); +} + // ------------------------------------------------------------------------- std::vector< std::string > cpPlugins::BaseObjects::Parameters:: GetChoices( const std::string& name ) const