Esempio n. 1
0
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;
}
Esempio n. 2
0
 explicit Impl( const livre::DataSourcePluginData& pluginData )
     : params( std::to_string( pluginData.getURI( )))
     , source( params.newImageSource< uint8_t >( ))
 {}
Esempio n. 3
0
 explicit Impl( const livre::DataSourcePluginData& pluginData )
     : params( pluginData.getURI( ))
     , source( params.newImageSource< FloatVolume >( ))
     , scaler( source->GetOutput(), params.getInputRange( ))
 {}