29 #ifndef EQ_PLY_MODELASSIGNER_H
30 #define EQ_PLY_MODELASSIGNER_H
39 : _models( models ), _current( models.begin( )) {}
41 virtual eq::VisitorResult visit(
eq::View* view )
43 const ModelDist* model = *_current;
44 static_cast< View*
>( view )->setModelID( model->getID( ));
47 if( _current == _models.end( ))
48 _current = _models.begin();
50 return eq::TRAVERSE_CONTINUE;
54 const ModelDists& _models;
55 ModelDists::const_iterator _current;
59 #endif // EQ_PLY_MODELASSIGNER_H
A visitor to traverse configs and all children.
Helper to assign models to views.
A View is a 2D area of a Layout.