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