59 const InitData& initData = config->getInitData();
60 const eq::uint128_t frameDataID = initData.getFrameDataID();
62 const bool mapped = config->
mapObject( &_frameData, frameDataID );
65 const std::string& filename = initData.getFilename();
66 const uint32_t precision = initData.getPrecision();
67 LBINFO <<
"Loading model " << filename << std::endl;
69 _renderer =
new Renderer( filename.c_str(), precision );
70 LBASSERT( _renderer );
72 if( !_renderer->loadHeader( initData.getBrightness(), initData.getAlpha( )))
74 sendError( ERROR_EVOLVE_LOADMODEL_FAILED ) << filename;
97 _frameData.sync( frameID );
99 _renderer->setOrtho( _frameData.useOrtho( ));
A configuration is a visualization session driven by an application.
EQ_API EventOCommand sendError(const uint32_t error)
Send a pipe error event to the application node.
virtual EQ_API bool configInit(const uint128_t &initID)
Initialize this pipe.
virtual eq::WindowSystem selectWindowSystem() const
Choose the window system to be used by this pipe.
virtual EQ_API bool configExit()
De-initialize this pipe.
virtual bool configExit()
De-initialize this pipe.
EQ_API Config * getConfig()
virtual EQ_API bool mapObject(co::Object *object, const uint128_t &id, const uint128_t &version=co::VERSION_OLDEST)
Map a distributed object.
virtual bool configInit(const eq::uint128_t &initID)
Initialize this pipe.
virtual void frameStart(const eq::uint128_t &frameID, const uint32_t frameNumber)
Start rendering a frame.
virtual EQ_API void frameStart(const uint128_t &frameID, const uint32_t frameNumber)
Start rendering a frame.
virtual EQ_API void unmapObject(co::Object *object)
Unmap a mapped object.