Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r656 - in branches/itanium2: UserInterface fox


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r656 - in branches/itanium2: UserInterface fox
  • Date: Mon, 24 Oct 2005 14:26:57 -0600 (MDT)

Author: abe
Date: Mon Oct 24 14:26:50 2005
New Revision: 656

Modified:
   branches/itanium2/UserInterface/PromptUI.cc
   branches/itanium2/UserInterface/PromptUI.h
   branches/itanium2/fox/FMantaRecorder.cc
   branches/itanium2/fox/dm_demo.cc
Log:

Fixed several Callback::create(...) invocations so that they compile on gcc.

M    fox/FMantaRecorder.cc
M    fox/dm_demo.cc
M    UserInterface/PromptUI.cc
M    UserInterface/PromptUI.h


Modified: branches/itanium2/UserInterface/PromptUI.cc
==============================================================================
--- branches/itanium2/UserInterface/PromptUI.cc (original)
+++ branches/itanium2/UserInterface/PromptUI.cc Mon Oct 24 14:26:50 2005
@@ -181,13 +181,13 @@
     }
     else if (option_string == "-camera") {
       manta_interface->addTransaction( "select camera",
-                                       Callback::create( this, 
PromptUI::mantaCamera, value_string ));
+                                       Callback::create( this, 
&PromptUI::mantaCamera, value_string ));
     }
     else if (option_string == "-idlemode") {
     }
     else if (option_string == "-imagetraverser") {
       manta_interface->addTransaction( "select imagetraverser",
-                                       Callback::create( this, 
PromptUI::mantaImageTraverser, value_string ));
+                                       Callback::create( this, 
&PromptUI::mantaImageTraverser, value_string ));
     }
     else if (option_string == "-loadbalancer") {
     }
@@ -214,7 +214,7 @@
       if (automator != 0) {
 
         // Set the termination callback so we know when the automator 
finishes.
-        automator->set_terminate_callback( Callback::create( this, 
automatorComplete ));
+        automator->set_terminate_callback( Callback::create( this, 
&PromptUI::automatorComplete ));
       }
 
       // Start the ui.
@@ -246,7 +246,7 @@
 
///////////////////////////////////////////////////////////////////////////////
 
///////////////////////////////////////////////////////////////////////////////
 
-void PromptUI::mantaCamera( const string text ) {
+void PromptUI::mantaCamera( string text ) {
 
   // Create the camera.
        Camera *new_camera = manta_interface->createCamera( text );
@@ -264,7 +264,7 @@
        delete old_camera;  
 }
 
-void PromptUI::mantaImageTraverser( const string text ) {
+void PromptUI::mantaImageTraverser( string text ) {
 
   manta_interface->selectImageTraverser( text );
 }

Modified: branches/itanium2/UserInterface/PromptUI.h
==============================================================================
--- branches/itanium2/UserInterface/PromptUI.h  (original)
+++ branches/itanium2/UserInterface/PromptUI.h  Mon Oct 24 14:26:50 2005
@@ -71,8 +71,8 @@
     void processCommand( const string &input_line );
 
     // Transaction callbacks
-    void mantaCamera( const string text );
-    void mantaImageTraverser( const string text );
+    void mantaCamera( string text );
+    void mantaImageTraverser( string text );
 
     void automatorComplete();
     

Modified: branches/itanium2/fox/FMantaRecorder.cc
==============================================================================
--- branches/itanium2/fox/FMantaRecorder.cc     (original)
+++ branches/itanium2/fox/FMantaRecorder.cc     Mon Oct 24 14:26:50 2005
@@ -195,7 +195,7 @@
       // Specify that the Automator should wait for additional commands after
       // completing each run.
       automator->set_automator_mode( AutomatorUI::AUTOMATOR_KEEPALIVE );
-      automator->set_terminate_callback( Callback::create( this, 
cameraPathComplete ) );
+      automator->set_terminate_callback( Callback::create( this, 
&FMantaRecorderDialog::cameraPathComplete ) );
 
     } catch (SCIRun::Exception *e) {
       FXMessageBox::error(this,MBOX_OK,"Error processing 
file:",e->message());
@@ -352,7 +352,7 @@
   // Specify that the Automator should wait for additional commands after
   // completing each run.
   automator->set_automator_mode( AutomatorUI::AUTOMATOR_KEEPALIVE );
-  automator->set_terminate_callback( Callback::create( this, 
cameraPathComplete ) );
+  automator->set_terminate_callback( Callback::create( this, 
&FMantaRecorderDialog::cameraPathComplete ) );
   
   // Set the GUI configurable values.
   play_t_spinner->setValue( record_t_spinner->getValue() );

Modified: branches/itanium2/fox/dm_demo.cc
==============================================================================
--- branches/itanium2/fox/dm_demo.cc    (original)
+++ branches/itanium2/fox/dm_demo.cc    Mon Oct 24 14:26:50 2005
@@ -171,7 +171,8 @@
     
     // Find the bounds of the model.
     BBox bounds;
-    root_object->computeBounds( PreprocessContext(), bounds );
+    PreprocessContext context;
+    root_object->computeBounds( context, bounds );
 
     Point lookat = bounds[0] + (bounds[1] - bounds[0]) * 0.5;
     Point eye = lookat + Vector( 0, bounds.diagonal().length(), 0 );





Archive powered by MHonArc 2.6.16.

Top of page