28 #ifndef EQ_ADMIN_ADD_WINDOW_H
29 #define EQ_ADMIN_ADD_WINDOW_H
33 #include <eq/admin/base.h>
38 inline bool addWindow( eq::admin::ServerPtr server,
const bool passiveStereo )
44 eq::admin::Pipe* pipe = findPipe( server );
49 eq::admin::Config* config = pipe->getConfig();
50 eq::admin::Window* window =
new eq::admin::Window( pipe );
51 eq::admin::Channel* channel =
new eq::admin::Channel( window );
52 eq::admin::Canvas* canvas =
new eq::admin::Canvas( config );
53 eq::admin::Segment* segment =
new eq::admin::Segment( canvas );
54 eq::admin::Layout* layout =
new eq::admin::Layout( config );
55 eq::admin::View* view =
new eq::admin::View( layout );
56 eq::admin::Observer* observer =
new eq::admin::Observer( config );
59 channel->setName(
"Runtime-created channel" );
60 canvas->setName(
"Runtime-created canvas" );
61 layout->setName(
"Runtime-created layout" );
62 view->setName(
"Runtime-created view" );
63 observer->setName(
"Runtime-created observer" );
64 view->changeMode( eq::admin::View::MODE_STEREO );
68 window->setName(
"Passive stereo window" );
69 window->setPixelViewport(
72 view->changeMode( eq::admin::View::MODE_MONO );
75 eq::admin::Channel* channelLeft =
new eq::admin::Channel( window );
76 eq::admin::Channel* channelRight =
new eq::admin::Channel( window );
78 eq::admin::Segment* segmentLeft =
new eq::admin::Segment( canvas );
79 eq::admin::Segment* segmentRight =
new eq::admin::Segment( canvas );
83 segmentLeft->setChannel( channelLeft );
87 segmentRight->setChannel( channelRight );
89 channelLeft->setName(
"Runtime-created left eye channel" );
90 channelRight->setName(
"Runtime-created right eye channel" );
93 window->setName(
"Active stereo window" );
95 view->setObserver( observer );
99 segment->setChannel( channel );
100 canvas->addLayout( layout );
108 #endif // EQ_ADMIN_ADD_WINDOW_H
monoscopic 'middle' eye
vmml::vector< 3, float > Vector3f
A three-component float vector.
A wall defining a view frustum.
Holds a 2D pixel viewport with methods for manipulation.
A fractional viewport with methods for manipulation.