CEDRIC  Revision_backup-2009-02
GetBoundingBoxVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 2008 Boris Iven, Max Hermann
4  *
5  * This file is part of the "CEDRIC Event Display" application.
6  *
7  *****************************************************************************/
8 
9 #ifndef GETBOUNDINGBOXVISITOR_H
10 #define GETBOUNDINGBOXVISITOR_H
11 
12 #include <osg/NodeVisitor>
13 #include <osg/BoundingBox>
14 #include <osg/Geode>
15 
16 class GetBoundingBoxVisitor : public osg::NodeVisitor
17 {
18 public:
20 
21  virtual void apply( osg::Geode& geode );
22 
23  osg::BoundingBox getBoundingBox() const { return _bbox; }
24 
25 private:
26  osg::BoundingBox _bbox;
27 };
28 
29 #endif
Definition: GetBoundingBoxVisitor.h:16
osg::BoundingBox getBoundingBox() const
Definition: GetBoundingBoxVisitor.h:23
virtual void apply(osg::Geode &geode)
Definition: GetBoundingBoxVisitor.cpp:30
GetBoundingBoxVisitor()
Definition: GetBoundingBoxVisitor.cpp:24