Exemplo n.º 1
0
    Argument( int argc, char** argv ) :
        CommandLine( argc, argv )
    {
        add_help_option();
        add_value( "kvs::PolygonObject file path.", true );

        if( !this->parse() ) exit( EXIT_FAILURE );
    }
void CommandLineHandlerBase::add_default_options()
{
    add_help_option();
    add_version_option();
    add_system_option();
    add_message_verbosity_option();
    add_message_coloring_option();
    add_display_options_option();
}
Exemplo n.º 3
0
 Argument( int argc, char** argv ) : CommandLine ( argc, argv )
 {
     add_help_option();
     add_option( "f", "input filename", 1,  false );
     add_option( "b", "block size", 1, false );
     add_option( "t", "transfer function", 1, false );
     add_option( "rl", "repeat level", 1, false );
     add_option( "s", "stochastic renderer", 1, false );
     add_value( "hydrogen", false );
 }
Exemplo n.º 4
0
Arquivo: main.cpp Projeto: koron21/kvs
    Argument( int argc, char** argv ) :
        CommandLine( argc, argv )
    {
        add_help_option();
        add_option( "r", "[size_t] Repeat level. ( default : 1 )", 1, false );

        add_option( "volume1",  "[string] Tensor Volume.", 1, false );
        add_option( "volume2",  "[string] Display Volume.", 1, false );
        add_option( "polygon",  "[string] Display Polygon", 1, false );
        add_option( "celltree", "[string] Celltree", 1, false ); 

        if( !this->parse() ) exit( EXIT_FAILURE );
    }
Exemplo n.º 5
0
CommandLineHandler::CommandLineHandler()
  : CommandLineHandlerBase("appleseed.studio")
{
    add_help_option();

    m_filename.set_min_value_count(0);
    m_filename.set_max_value_count(1);
    parser().set_default_option_handler(&m_filename);

    m_render.add_name("--render");
    m_render.set_description("start rendering using the specified configuration");
    m_render.set_exact_value_count(1);
    parser().add_option_handler(&m_render);
}
Exemplo n.º 6
0
    Argument( int argc, char** argv ) :
        CommandLine( argc, argv )
    {
        add_help_option();
        add_option( "r", "[size_t] Repeat level. ( default : 1 )", 1, false );

        add_option( "structure", "[string] kvs::StructuredVolumeObject file path. ( optional )", 1, false );
        add_option( "unstructure", "[string] kvs::UnstructuredVolumeObject file path. ( optional )", 1, false );
        add_option( "tfunc", "[string] kvs::TransferFunction file path. ( optional )", 1, false );

        add_option( "s", "[float] sampling step for PBVR. ( default : 1 )", 1, false );
        add_option( "DisableShading", "Disable shading. ( default : eable shading )", 0, false );

        if( !this->parse() ) exit( EXIT_FAILURE );
    }
Exemplo n.º 7
0
 Argument( int argc, char** argv ) : CommandLine( argc, argv )
 {
     add_help_option();
     addOption( "ori", "input the filename of the original volume", 1, true );
     addOption( "eva", "input the filename of the evaluation volume", 1, true );
 }