Changeset 9
- Timestamp:
- 11/06/07 12:50:23
- Files:
-
- trunk/src/Cluster.h (modified) (1 diff)
- trunk/src/SlideShowConstructor.cpp (modified) (2 diffs)
- trunk/src/present3D.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/Cluster.h
r1 r9 21 21 #if !defined(WIN32) || defined(__CYGWIN__) 22 22 #include <netinet/in.h> 23 #else 24 #include "winsock.h" 23 25 #endif 24 26 trunk/src/SlideShowConstructor.cpp
r1 r9 37 37 38 38 #include <sstream> 39 #include <algorithm> 39 40 40 41 #include "AnimationMaterial.h" … … 633 634 if (imageStream) 634 635 { 635 imageStream->pause();636 imageStream->pause(); 636 637 637 638 osg::notify(osg::INFO)<<"Reading video "<<imageStream->getFileName()<<std::endl; trunk/src/present3D.cpp
r8 r9 14 14 #include <osg/CameraNode> 15 15 #include <osg/Texture2D> 16 #include <osg/Notify> 16 17 17 18 … … 154 155 155 156 156 enum ApplicationType157 enum P3DApplicationType 157 158 { 158 159 VIEWER, … … 188 189 arguments.getApplicationUsage()->addCommandLineOption("--html <filename>","Print out slides to a series of html & image files."); 189 190 arguments.getApplicationUsage()->addCommandLineOption("--loop","Switch on looping of presentation."); 190 191 arguments.getApplicationUsage()->addCommandLineOption("--devices","Print the Video input capability via QuickTime and exit."); 192 193 // if user requests devices video capability. 194 if (arguments.read("-devices") || arguments.read("--devices")) 195 { 196 // Force load QuickTime plugin, probe video capability, exit 197 osgDB::readImageFile("devices.live"); 198 return 1; 199 } 191 200 192 201 #ifdef USE_SDL … … 357 366 } 358 367 359 ApplicationType applicationType = VIEWER;368 P3DApplicationType P3DApplicationType = VIEWER; 360 369 361 370 str = getenv("PRESENT3D_TYPE"); 362 371 if (str) 363 372 { 364 if (strcmp(str,"viewer")==0) applicationType = VIEWER;365 else if (strcmp(str,"master")==0) applicationType = MASTER;366 else if (strcmp(str,"slave")==0) applicationType = SLAVE;373 if (strcmp(str,"viewer")==0) P3DApplicationType = VIEWER; 374 else if (strcmp(str,"master")==0) P3DApplicationType = MASTER; 375 else if (strcmp(str,"slave")==0) P3DApplicationType = SLAVE; 367 376 } 368 377 369 while (arguments.read("--viewer")) { applicationType = VIEWER; }370 while (arguments.read("--master")) { applicationType = MASTER; }371 while (arguments.read("--slave")) { applicationType = SLAVE; }378 while (arguments.read("--viewer")) { P3DApplicationType = VIEWER; } 379 while (arguments.read("--master")) { P3DApplicationType = MASTER; } 380 while (arguments.read("--slave")) { P3DApplicationType = SLAVE; } 372 381 373 382 while (arguments.read("--version")) 374 383 { 375 384 std::string appTypeName = "invalid"; 376 switch( applicationType)385 switch(P3DApplicationType) 377 386 { 378 387 case(VIEWER): appTypeName = "viewer"; break; … … 568 577 #endif 569 578 570 if ( applicationType==MASTER)579 if (P3DApplicationType==MASTER) 571 580 { 572 581 // take camera zero as the guide. … … 589 598 bc.sync(); 590 599 } 591 else if ( applicationType==SLAVE)600 else if (P3DApplicationType==SLAVE) 592 601 { 593 602 rc.setBuffer(scratchPad._startPtr, scratchPad._numBytes); … … 616 625 viewer.updateTraversal(); 617 626 618 if ( applicationType==SLAVE)627 if (P3DApplicationType==SLAVE) 619 628 { 620 629 osg::Matrix modelview;
