[svn] / trunk / src / examples / eqPly / node.cpp Repository:
ViewVC logotype

View of /trunk/src/examples/eqPly/node.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1079 - (download) (as text) (annotate)
Wed May 2 12:54:50 2007 UTC (2 months, 1 week ago) by eile
File size: 872 byte(s)
configtool: enable different # of pipes per node, update documentation,
add eqPly html doc.
[ ] May break build
[ ] Breaks existing applications
[ ] Bugfix
[x] New Feature
[ ] Cleanup
[ ] Optimization
[x] Documentation
/* Copyright (c) 2006-2007, Stefan Eilemann <[email protected]> 
   All rights reserved. */
#include "node.h"
#include "plyFileIO.h"
using namespace eqBase;
using namespace std;
namespace eqPly
{
bool Node::configInit( const uint32_t initID )
{
    eq::Config* config = getConfig();
    const bool  mapped = config->mapObject( &_initData, initID );
    EQASSERT( mapped );
    const string& filename = _initData.getFilename();
    EQINFO << "Loading model " << filename << endl;
    _model = PlyFileIO::read( filename.c_str( ));
    if( !_model)
        EQWARN << "Can't load model: " << filename << endl;
    return eq::Node::configInit( initID );
}
bool Node::configExit()
{
    if( _model )
        delete _model;
    _model = NULL;
    eq::Config* config = getConfig();
    config->unmapObject( &_initData );
    return eq::Node::configExit();
}
}

Back to Equalizer website
ViewVC Help
Powered by ViewVC 1.0.3