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