Changeset 20085
- Timestamp:
- 05/01/07 21:01:39 (2 years ago)
- Files:
-
- juggler/branches/2.2/modules/gadgeteer/ChangeLog (modified) (1 diff)
- juggler/branches/2.2/modules/gadgeteer/VERSION (modified) (1 diff)
- juggler/branches/2.2/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowCocoa.mm (modified) (5 diffs)
- juggler/branches/2.2/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowXWin.cpp (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/ChangeLog (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/VERSION (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/C4.displays.closed.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/C4.displays.closed.mono.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/example.sim.cluster.jconf (modified) (2 diffs)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/powerwall_18x8.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/ptah.cluster.jconf (modified) (4 diffs)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/sim.base.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/sim.trackd.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/simstandalone.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/configFiles/standalone.jconf (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/data/definitions/display_system.jdef (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/vrj/Display/DisplayManager.cpp (modified) (6 diffs)
- juggler/branches/2.2/modules/vrjuggler/vrj/Display/DisplayManager.h (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.mm (modified) (4 diffs)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowWin32.cpp (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowXWin.cpp (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/Pf/PfDrawManager.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.2/modules/gadgeteer/ChangeLog
r20015 r20085 1 1 DATE AUTHOR CHANGE 2 2 ----------- ----------- ------------------------------------------------------- 3 May-01-2007 patrick Renamed the x11_pipes property of the display_system 4 config element to pipes. 5 NEW VERSION: 1.1.27 3 6 Apr-27-2007 aronb Changed clustering to be single-threaded. 4 7 NEW VERSION: 1.1.26 juggler/branches/2.2/modules/gadgeteer/VERSION
r20015 r20085 1 1.1.27-0 @05/02/2007 02:00:00 UTC@ 1 2 1.1.26-0 @04/28/2007 14:15:00 UTC@ 2 3 1.1.25-0 @03/04/2007 05:20:00 UTC@ juggler/branches/2.2/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowCocoa.mm
r19865 r20085 45 45 #include <jccl/Config/ConfigElement.h> 46 46 47 #include <gadget/InputManager.h> 47 48 #include <gadget/Util/Debug.h> 48 49 … … 169 170 mY = e->getProperty<float>("origin", 1); 170 171 171 // TODO: We could use the display_number property to choose the NSScreen 172 // where this window will be opened. We could even have the display_system 173 // pipe identifiers correlate to NSScreen instances so that we continue to 174 // have the same level of indirection that is supposed with X11. 175 /* 172 // Use the display_number property to choose the NSScreen where this window 173 // will be opened. The display_system pipe identifiers for Cocoa correlate 174 // to NSScreen instances so that we continue to have the same level of 175 // indirection that is supported with X11. 176 176 const int screen_num = e->getProperty<int>("display_number"); 177 177 … … 192 192 } 193 193 194 if ( screen_num >= 0 )194 if ( screen_num >= 0 && screen_num < disp_sys_elt->getNum("pipes") ) 195 195 { 196 196 mScreen = disp_sys_elt->getProperty<unsigned int>("pipes", screen_num); 197 197 198 NSArray* screens = [NS Arrayscreens];198 NSArray* screens = [NSScreen screens]; 199 199 if ( mScreen >= [screens count] ) 200 200 { … … 203 203 204 204 vprDEBUG(gadgetDBG_INPUT_MGR, vprDBG_CONFIG_LVL) 205 << "[gadget::InputWindowCocoa ] Screen: " << mXDisplayString205 << "[gadget::InputWindowCocoa::config()] Screen: " << mScreen 206 206 << std::endl << vprDEBUG_FLUSH; 207 207 } … … 210 210 mScreen = 0; 211 211 } 212 */213 212 214 213 return true; juggler/branches/2.2/modules/gadgeteer/gadget/Devices/KeyboardMouseDevice/InputWindowXWin.cpp
r19829 r20085 104 104 if (NULL == disp_sys_elt.get()) 105 105 { 106 vprDEBUG(vprDBG_ERROR, vprDBG_CONFIG_LVL)107 << clrOutNORM(clrRED, "ERROR")108 << ": gadget::InputWindowXWin: display_system element is NULL.\n"109 << vprDEBUG_FLUSH;106 vprDEBUG(vprDBG_ERROR, vprDBG_CONFIG_LVL) 107 << clrOutNORM(clrRED, "ERROR") 108 << ": [gadget::InputWindowXWin::config()] display_system element " 109 << "is NULL.\n" << vprDEBUG_FLUSH; 110 110 return false; 111 111 } 112 112 113 114 if ((x_disp_num >= 0) && (disp_sys_elt.get() != NULL) ) 115 { 116 mXDisplayString = disp_sys_elt->getProperty<std::string>("x11_pipes", 113 if ( x_disp_num >= 0 && disp_sys_elt.get() != NULL ) 114 { 115 if ( disp_sys_elt->getVersion() < 3 ) 116 { 117 vprDEBUG(gadgetDBG_INPUT_MGR, vprDBG_WARNING_LVL) 118 << clrOutBOLD(clrYELLOW, "WARNING") << ": Display system element '" 119 << disp_sys_elt->getName() << "'" << std::endl; 120 vprDEBUG_NEXTnl(gadgetDBG_INPUT_MGR, vprDBG_WARNING_LVL) 121 << " is out of date.\n"; 122 vprDEBUG_NEXTnl(gadgetDBG_INPUT_MGR, vprDBG_WARNING_LVL) 123 << " Expected version 3 but found version " 124 << disp_sys_elt->getVersion() << ". Pipe\n"; 125 vprDEBUG_NEXTnl(gadgetDBG_INPUT_MGR, vprDBG_WARNING_LVL) 126 << " configurations will not work.\n" << vprDEBUG_FLUSH; 127 } 128 129 mXDisplayString = disp_sys_elt->getProperty<std::string>("pipes", 117 130 x_disp_num); 118 131 119 132 vprDEBUG(gadgetDBG_INPUT_MGR, vprDBG_CONFIG_LVL) 120 << " gadget::InputWindowXWin: display: " << mXDisplayString133 << "[gadget::InputWindowXWin::config()] Display: " << mXDisplayString 121 134 << std::endl << vprDEBUG_FLUSH; 122 135 } juggler/branches/2.2/modules/vrjuggler/ChangeLog
r20000 r20085 1 1 DATE AUTHOR CHANGE 2 2 ----------- ----------- ------------------------------------------------------- 3 May-01-2007 patrick Renamed the x11_pipes property of the display_system 4 config element to pipes. 5 NEW VERSION: 2.1.24 3 6 Apr-22-2007 patrick Application programmers can now choose to use an 4 7 NSApplication delegate other than VrjMainController. juggler/branches/2.2/modules/vrjuggler/VERSION
r20000 r20085 1 2.1.24-0 @05/02/2007 02:00:00 UTC@ 1 2 2.1.23-0 @04/22/2007 21:20:00 UTC@ 2 3 2.1.22-0 @04/07/2007 18:00:00 UTC@ juggler/branches/2.2/modules/vrjuggler/data/configFiles/C4.displays.closed.jconf
r19910 r20085 3 3 <configuration xmlns="http://www.vrjuggler.org/jccl/xsd/3.0/configuration" name="Configuration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vrjuggler.org/jccl/xsd/3.0/configuration http://www.vrjuggler.org/jccl/xsd/3.0/configuration.xsd"> 4 4 <elements> 5 <display_system name="Pipe Setup" version=" 2">5 <display_system name="Pipe Setup" version="3"> 6 6 <number_of_pipes>4</number_of_pipes> 7 < x11_pipes>mammoth:0.0</x11_pipes>8 < x11_pipes>mammoth:1.0</x11_pipes>9 < x11_pipes>mammoth:2.0</x11_pipes>10 < x11_pipes>mammoth:1.0</x11_pipes>11 < x11_pipes>snow:0.0</x11_pipes>7 <pipes>mammoth:0.0</pipes> 8 <pipes>mammoth:1.0</pipes> 9 <pipes>mammoth:2.0</pipes> 10 <pipes>mammoth:1.0</pipes> 11 <pipes>snow:0.0</pipes> 12 12 <use_swap_group>false</use_swap_group> 13 13 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/C4.displays.closed.mono.jconf
r19910 r20085 3 3 <configuration xmlns="http://www.vrjuggler.org/jccl/xsd/3.0/configuration" name="Configuration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vrjuggler.org/jccl/xsd/3.0/configuration http://www.vrjuggler.org/jccl/xsd/3.0/configuration.xsd"> 4 4 <elements> 5 <display_system name="Pipe Setup" version=" 2">5 <display_system name="Pipe Setup" version="3"> 6 6 <number_of_pipes>4</number_of_pipes> 7 < x11_pipes>mammoth:0.0</x11_pipes>8 < x11_pipes>mammoth:1.0</x11_pipes>9 < x11_pipes>mammoth:2.0</x11_pipes>10 < x11_pipes>mammoth:1.0</x11_pipes>11 < x11_pipes>snow:0.0</x11_pipes>7 <pipes>mammoth:0.0</pipes> 8 <pipes>mammoth:1.0</pipes> 9 <pipes>mammoth:2.0</pipes> 10 <pipes>mammoth:1.0</pipes> 11 <pipes>snow:0.0</pipes> 12 12 <use_swap_group>false</use_swap_group> 13 13 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/example.sim.cluster.jconf
r19910 r20085 753 753 <cluster_node name="Node 0" version="1"> 754 754 <display_system> 755 <display_system name="Node 0 Display System" version=" 2">755 <display_system name="Node 0 Display System" version="3"> 756 756 <number_of_pipes>1</number_of_pipes> 757 < x11_pipes>-1</x11_pipes>757 <pipes>-1</pipes> 758 758 <use_swap_group>false</use_swap_group> 759 759 </display_system> … … 887 887 <cluster_node name="Node 1" version="1"> 888 888 <display_system> 889 <display_system name="Node 1 Display System" version=" 2">889 <display_system name="Node 1 Display System" version="3"> 890 890 <number_of_pipes>1</number_of_pipes> 891 < x11_pipes>-1</x11_pipes>891 <pipes>-1</pipes> 892 892 <use_swap_group>false</use_swap_group> 893 893 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/powerwall_18x8.jconf
r19910 r20085 462 462 <unit>1</unit> 463 463 </digital_proxy> 464 <display_system name="Pipe Setup" version=" 2">464 <display_system name="Pipe Setup" version="3"> 465 465 <number_of_pipes>1</number_of_pipes> 466 < x11_pipes>-1</x11_pipes>467 < x11_pipes>:0.1</x11_pipes>468 < x11_pipes>:0.1</x11_pipes>469 < x11_pipes>:0.0</x11_pipes>470 < x11_pipes>:0.0</x11_pipes>471 < x11_pipes>:0.0</x11_pipes>472 < x11_pipes>:0.0</x11_pipes>473 < x11_pipes>:0.0</x11_pipes>466 <pipes>-1</pipes> 467 <pipes>:0.1</pipes> 468 <pipes>:0.1</pipes> 469 <pipes>:0.0</pipes> 470 <pipes>:0.0</pipes> 471 <pipes>:0.0</pipes> 472 <pipes>:0.0</pipes> 473 <pipes>:0.0</pipes> 474 474 <use_swap_group>false</use_swap_group> 475 475 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/ptah.cluster.jconf
r19910 r20085 22 22 <cluster_node name="Node(ptah-1)" version="1"> 23 23 <display_system> 24 <display_system name="display_system 0" version=" 2">24 <display_system name="display_system 0" version="3"> 25 25 <number_of_pipes>1</number_of_pipes> 26 < x11_pipes>-1</x11_pipes>26 <pipes>-1</pipes> 27 27 <use_swap_group>false</use_swap_group> 28 28 </display_system> … … 94 94 <cluster_node name="Node(ptah-2)" version="1"> 95 95 <display_system> 96 <display_system name="display_system 0" version=" 2">96 <display_system name="display_system 0" version="3"> 97 97 <number_of_pipes>1</number_of_pipes> 98 < x11_pipes>-1</x11_pipes>98 <pipes>-1</pipes> 99 99 <use_swap_group>false</use_swap_group> 100 100 </display_system> … … 166 166 <cluster_node name="Node(ptah-3)" version="1"> 167 167 <display_system> 168 <display_system name="display_system 0" version=" 2">168 <display_system name="display_system 0" version="3"> 169 169 <number_of_pipes>1</number_of_pipes> 170 < x11_pipes>-1</x11_pipes>170 <pipes>-1</pipes> 171 171 <use_swap_group>false</use_swap_group> 172 172 </display_system> … … 238 238 <cluster_node name="Node(ptah-4)" version="1"> 239 239 <display_system> 240 <display_system name="display_system 0" version=" 2">240 <display_system name="display_system 0" version="3"> 241 241 <number_of_pipes>1</number_of_pipes> 242 < x11_pipes>-1</x11_pipes>242 <pipes>-1</pipes> 243 243 <use_swap_group>false</use_swap_group> 244 244 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/sim.base.jconf
r19910 r20085 479 479 <device_host /> 480 480 </simulated_digital_device> 481 <display_system name="Pipe Setup" version=" 2">481 <display_system name="Pipe Setup" version="3"> 482 482 <number_of_pipes>1</number_of_pipes> 483 < x11_pipes>-1</x11_pipes>484 < x11_pipes>-1</x11_pipes>485 < x11_pipes>-1</x11_pipes>486 < x11_pipes>-1</x11_pipes>487 < x11_pipes>-1</x11_pipes>488 < x11_pipes>:0.0</x11_pipes>489 < x11_pipes>:0.0</x11_pipes>490 < x11_pipes>:0.0</x11_pipes>483 <pipes>-1</pipes> 484 <pipes>-1</pipes> 485 <pipes>-1</pipes> 486 <pipes>-1</pipes> 487 <pipes>-1</pipes> 488 <pipes>:0.0</pipes> 489 <pipes>:0.0</pipes> 490 <pipes>:0.0</pipes> 491 491 <use_swap_group>false</use_swap_group> 492 492 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/sim.trackd.jconf
r18351 r20085 96 96 <unit>1</unit> 97 97 </digital_proxy> 98 <display_system name="Pipe Setup" version=" 2">98 <display_system name="Pipe Setup" version="3"> 99 99 <number_of_pipes>1</number_of_pipes> 100 < x11_pipes>-1</x11_pipes>101 < x11_pipes>:0.1</x11_pipes>102 < x11_pipes>:0.1</x11_pipes>103 < x11_pipes>:0.0</x11_pipes>104 < x11_pipes>:0.0</x11_pipes>105 < x11_pipes>:0.0</x11_pipes>106 < x11_pipes>:0.0</x11_pipes>107 < x11_pipes>:0.0</x11_pipes>100 <pipes>-1</pipes> 101 <pipes>:0.1</pipes> 102 <pipes>:0.1</pipes> 103 <pipes>:0.0</pipes> 104 <pipes>:0.0</pipes> 105 <pipes>:0.0</pipes> 106 <pipes>:0.0</pipes> 107 <pipes>:0.0</pipes> 108 108 <use_swap_group>false</use_swap_group> 109 109 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/simstandalone.jconf
r19910 r20085 368 368 <unit>5</unit> 369 369 </digital_proxy> 370 <display_system name="Pipe Setup" version=" 2">370 <display_system name="Pipe Setup" version="3"> 371 371 <number_of_pipes>1</number_of_pipes> 372 < x11_pipes>-1</x11_pipes>373 < x11_pipes>:0.0</x11_pipes>372 <pipes>-1</pipes> 373 <pipes>:0.0</pipes> 374 374 <use_swap_group>false</use_swap_group> 375 375 </display_system> juggler/branches/2.2/modules/vrjuggler/data/configFiles/standalone.jconf
r19915 r20085 353 353 <unit>5</unit> 354 354 </digital_proxy> 355 <display_system name="Pipe Setup" version=" 2">355 <display_system name="Pipe Setup" version="3"> 356 356 <number_of_pipes>1</number_of_pipes> 357 < x11_pipes>-1</x11_pipes>358 < x11_pipes>:0.1</x11_pipes>359 < x11_pipes>:0.1</x11_pipes>360 < x11_pipes>:0.0</x11_pipes>361 < x11_pipes>:0.0</x11_pipes>362 < x11_pipes>:0.0</x11_pipes>363 < x11_pipes>:0.0</x11_pipes>364 < x11_pipes>:0.0</x11_pipes>357 <pipes>-1</pipes> 358 <pipes>:0.1</pipes> 359 <pipes>:0.1</pipes> 360 <pipes>:0.0</pipes> 361 <pipes>:0.0</pipes> 362 <pipes>:0.0</pipes> 363 <pipes>:0.0</pipes> 364 <pipes>:0.0</pipes> 365 365 <use_swap_group>false</use_swap_group> 366 366 </display_system> juggler/branches/2.2/modules/vrjuggler/data/definitions/display_system.jdef
r19774 r20085 58 58 </upgrade_transform> 59 59 </definition_version> 60 <definition_version version="3" label="Display System"> 61 <abstract>false</abstract> 62 <help>Graphics pipe configuration for display windows. (<a href="http://www.infiscape.com/documentation/vrjuggler-config/2.0/configuring_vr_juggler/ch03.html#section.display.manager">more on the Display Manager</a>)</help> 63 <parent/> 64 <category>/Display</category> 65 <property valuetype="integer" variable="false" name="number_of_pipes"> 66 <help>The number of pipes on the system. (<a href="http://www.infiscape.com/documentation/vrjuggler-config/2.0/configuring_vr_juggler/ch03.html#section.display.manager">more ...</a>)</help> 67 <value label="Number of Pipes" defaultvalue="0"/> 68 </property> 69 <property valuetype="string" variable="true" name="pipes"> 70 <help>The pipe identifier. For the X Window System, this is the display string for a pipe (e.g., :1.0). The string "-1" is treated as being equal to the <tt>$DISPLAY</tt> environment variable. For Cocoa, this is treated as an integer index into the available screens. NOTE: This is a zero-based list. (<a href="http://www.infiscape.com/documentation/vrjuggler-config/2.0/configuring_vr_juggler/ch03.html#section.display.manager">more ...</a>)</help> 71 <value label="Pipe Identifier" defaultvalue=":0.0"/> 72 </property> 73 <property valuetype="boolean" variable="false" name="use_swap_group"> 74 <help>If true, attempt to use a hardware swap group to keep all window buffer swaps in sync. Also if using cluster this will try to create a swap group across the cluster.</help> 75 <value label="Use Swap Group" defaultvalue="false"/> 76 </property> 77 <upgrade_transform> 78 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jconf="http://www.vrjuggler.org/jccl/xsd/3.0/configuration" version="1.0"> 79 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> 80 <xsl:variable name="jconf">http://www.vrjuggler.org/jccl/xsd/3.0/configuration</xsl:variable> 81 82 <xsl:template match="/"> 83 <xsl:apply-templates/> 84 </xsl:template> 85 86 <xsl:template match="jconf:display_system"> 87 <xsl:element namespace="{$jconf}" name="display_system"> 88 <xsl:attribute name="name"> 89 <xsl:value-of select="@name"/> 90 </xsl:attribute> 91 <xsl:attribute name="version">3</xsl:attribute> 92 <xsl:copy-of select="./jconf:number_of_pipes"/> 93 <xsl:for-each select="./jconf:x11_pipes"> 94 <xsl:element namespace="{$jconf}" name="pipes"> 95 <xsl:value-of select="."/> 96 </xsl:element> 97 </xsl:for-each> 98 <xsl:copy-of select="./jconf:use_swap_group"/> 99 </xsl:element> 100 </xsl:template> 101 </xsl:stylesheet> 102 </upgrade_transform> 103 </definition_version> 60 104 </definition> juggler/branches/2.2/modules/vrjuggler/vrj/Display/DisplayManager.cpp
r19873 r20085 63 63 if ( (*i)->getID() == std::string("display_system") ) 64 64 { 65 mDisplaySystemElement = *i;66 break; // This guarantees that we get the first display System element.65 setDisplaySystemElement(*i); 66 break; // This guarantees that we get the first display_system element. 67 67 } 68 68 } … … 90 90 if ( (*i).mElement->getID() == std::string("display_system") ) 91 91 { 92 mDisplaySystemElement = (*i).mElement;93 break; // This guarantees that we get the first display System element.92 setDisplaySystemElement((*i).mElement); 93 break; // This guarantees that we get the first display_system element. 94 94 } 95 95 } … … 100 100 101 101 return mDisplaySystemElement; 102 } 103 104 void DisplayManager::setDisplaySystemElement(jccl::ConfigElementPtr elt) 105 { 106 if ( elt->getVersion() < 3 ) 107 { 108 vprDEBUG(vrjDBG_DISP_MGR, vprDBG_WARNING_LVL) 109 << clrOutBOLD(clrYELLOW, "WARNING") << ": Display system element '" 110 << elt->getName() << "'" << std::endl; 111 vprDEBUG_NEXTnl(vrjDBG_DISP_MGR, vprDBG_WARNING_LVL) 112 << " is out of date.\n"; 113 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 114 << " Expected version 3 but found version " 115 << elt->getVersion() << ". Pipe\n"; 116 vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 117 << " configurations will not work.\n" << vprDEBUG_FLUSH; 118 } 119 120 mDisplaySystemElement = elt; 102 121 } 103 122 … … 271 290 return success_flag; 272 291 } 273 274 275 276 292 277 293 // notifyDrawMgr = 0; Defaults to 0 … … 384 400 } 385 401 386 387 402 void DisplayManager::updateProjections(const float scaleFactor) 388 403 { … … 401 416 } 402 417 403 } ;418 } juggler/branches/2.2/modules/vrjuggler/vrj/Display/DisplayManager.h
r19873 r20085 124 124 125 125 private: 126 void setDisplaySystemElement(jccl::ConfigElementPtr elt); 127 126 128 /** 127 129 * Adds the element to the configuration. juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.mm
r19884 r20085 45 45 #include <jccl/Config/ConfigElement.h> 46 46 47 #include <vrj/Display/DisplayManager.h> 47 48 #include <vrj/Util/Debug.h> 48 49 #import <vrj/Draw/OGL/GlViewCocoa.h> … … 337 338 [NSString stringWithUTF8String:display_elt->getName().c_str()]; 338 339 339 // TODO: Could use +screens from NSScreen to allow opening of windows on 340 // different screens. The display system configuration isn't necessarily 341 // important. We could use the display ID in the display window 342 // configuration as the screen index. 343 /* 340 // Use +screens from NSScreen to allow opening of windows on different 341 // screens. 344 342 const int screen_num = displayWindow->getPipe(); 345 343 … … 348 346 << std::endl << vprDEBUG_FLUSH; 349 347 350 if ( screen_num >= 0 ) 351 { 352 jccl::ConfigElementPtr disp_sys_elt = 353 DisplayManager::instance()->getDisplaySystemElement(); 348 jccl::ConfigElementPtr disp_sys_elt = 349 vrj::DisplayManager::instance()->getDisplaySystemElement(); 350 351 if ( screen_num >= 0 && screen_num < disp_sys_elt->getNum("pipes") ) 352 { 354 353 mScreen = disp_sys_elt->getProperty<unsigned int>("pipes", screen_num); 355 354 356 NSArray* screens = [NS Arrayscreens];355 NSArray* screens = [NSScreen screens]; 357 356 if ( mScreen >= [screens count] ) 358 357 { … … 361 360 362 361 vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 363 << "[vrj::GlWindowCocoa ] Screen: " << mScreen << std::endl362 << "[vrj::GlWindowCocoa::config()] Screen: " << mScreen << std::endl 364 363 << vprDEBUG_FLUSH; 365 364 } 366 */367 365 368 366 // If we are opening the window full screen, then ignore whatever the juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowWin32.cpp
r19917 r20085 296 296 vprASSERT(mPipe >= 0); 297 297 298 mXDisplayName = disp_sys_elt->getProperty<std::string>(" x11_pipes", mPipe);298 mXDisplayName = disp_sys_elt->getProperty<std::string>("pipes", mPipe); 299 299 if (mXDisplayName == neg_one_STRING) // Use display env 300 300 { juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowXWin.cpp
r19917 r20085 543 543 // not present. So if a pipe string is not specified for this pipe then 544 544 // it gets the default value of "-1". 545 mXDisplayName = disp_sys_elt->getProperty<std::string>(" x11_pipes", mPipe);545 mXDisplayName = disp_sys_elt->getProperty<std::string>("pipes", mPipe); 546 546 547 547 if ( mXDisplayName == neg_one_string ) // Use display env juggler/branches/2.2/modules/vrjuggler/vrj/Draw/Pf/PfDrawManager.cpp
r19938 r20085 129 129 // value is not present. So if a pipe string is not specified for 130 130 // this pipe then it gets the default value of "-1". 131 mPipeStrs.push_back(element->getProperty<std::string>(" x11_pipes", i));131 mPipeStrs.push_back(element->getProperty<std::string>("pipes", i)); 132 132 133 133 if ( mPipeStrs[i] == cur_disp_name ) // Use display env
