Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1406 - trunk/StandAlone
- Date: Fri, 1 Jun 2007 15:32:39 -0600 (MDT)
Author: bigler
Date: Fri Jun 1 15:32:38 2007
New Revision: 1406
Modified:
trunk/StandAlone/manta.cc
Log:
Added -nodisplaybench that sets the user interface and image display
classes to the Null versions.
Removed unused variables that were causing warnings.
Modified: trunk/StandAlone/manta.cc
==============================================================================
--- trunk/StandAlone/manta.cc (original)
+++ trunk/StandAlone/manta.cc Fri Jun 1 15:32:38 2007
@@ -216,7 +216,6 @@
rtrt->changeNumWorkers(1);
// Default options.
- MantaInterface::CreateImageCallback *defaultCreateImage = 0;
if(!factory->selectImageType("argb8"))
throw InternalError("default image not found", __FILE__, __LINE__);
@@ -234,7 +233,6 @@
bool haveUI = false;
bool channelCreated=false;
bool stereo = false;
- bool compute_bb_camera = false;
bool timeView = false;
vector<string> timeViewArgs;
Color bgcolor;
@@ -244,14 +242,15 @@
// Parse command line args.
try {
- int argc = static_cast<int>(args.size());
- for(int i=0;i<argc;i++){
+ for(int i=0;i<static_cast<int>(args.size());i++){
string arg = args[i];
if(arg == "-help"){
usage(factory);
- } else if(arg == "-bench" || arg == "-quietbench"){
+ } else if(arg == "-bench" ||
+ arg == "-quietbench" ||
+ arg == "-nodisplaybench") {
///////////////////////////////////////////////////////////////////////
// Benchmark Helper.
@@ -271,6 +270,16 @@
rtrt->addOneShotCallback(MantaInterface::Absolute,
warmup+numFrames,
Callback::create(b, &BenchHelper::stop));
+ if (arg == "-nodisplaybench") {
+ // setup the ui and imagedisplay to both be null
+ ImageDisplay *display = factory->createImageDisplay( "null" );
+ rtrt->createChannel(display, currentCamera, stereo, xres, yres);
+ channelCreated=true;
+ UserInterface* ui = factory->createUserInterface("null");
+ if (!ui) throw UnknownComponent( "Null user interface not
found", "");
+ ui->startup();
+ haveUI = true;
+ }
} else if(arg == "-camera"){
string s;
@@ -507,10 +516,6 @@
// Default stack setup.
void make_stack( ReadContext &context, const vector<string> &args ) {
-
- // Obtain a pointer to manta.
- MantaInterface *rtrt = context.manta_interface;
-
// Defaults.
if(!factory->selectLoadBalancer("workqueue"))
@@ -526,7 +531,7 @@
throw InternalError("default renderer not found", __FILE__, __LINE__ );
// Parse command line args.
- for (int i=0;i<args.size();++i) {
+ for (int i=0; i < static_cast<int>(args.size()); ++i) {
string arg = args[i];
if(arg == "-imagetraverser"){
- [MANTA] r1406 - trunk/StandAlone, bigler, 06/01/2007
Archive powered by MHonArc 2.6.16.