bool DataSource::handles( const livre::DataSourcePluginData& data ) { const std::string fivox = "fivox"; const std::string& scheme = data.getURI().getScheme(); return scheme.substr( 0, fivox.size( )) == fivox; }
explicit Impl( const livre::DataSourcePluginData& pluginData ) : params( std::to_string( pluginData.getURI( ))) , source( params.newImageSource< uint8_t >( )) {}
explicit Impl( const livre::DataSourcePluginData& pluginData ) : params( pluginData.getURI( )) , source( params.newImageSource< FloatVolume >( )) , scaler( source->GetOutput(), params.getInputRange( )) {}