Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SceneGlutPrimitives.hh
1 /*
2  This file is part of the BIAS library (Basic ImageAlgorithmS).
3 
4  Copyright (C) 2003-2009 (see file CONTACT for details)
5  Multimediale Systeme der Informationsverarbeitung
6  Institut fuer Informatik
7  Christian-Albrechts-Universitaet Kiel
8 
9 
10  BIAS is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation; either version 2.1 of the License, or
13  (at your option) any later version.
14 
15  BIAS is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with BIAS; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 
25 #ifndef __SCENEGLUTPRMITIVES_H__
26 #define __SCENEGLUTPRMITIVES_H__
27 
28 #include <bias_config.h>
29 
30 #include <GLviewer/Scenes/SceneBase.hh>
31 
32 namespace BIAS
33 {
34  /**
35  @class SceneGlutPrimitives
36  @ingroup g_glviewer
37  @relates SceneBase
38  @brief Class for rendering the Glut primitives like teapot, cube,
39  tetrahedron and icosahedron.
40  Mainly used to test rendering without SceneGraph library.
41  @author Ingo Schiller
42  @date 02/2010
43  */
44  class BIASGLviewer_EXPORT SceneGlutPrimitives : public BIAS::SceneBase
45  {
46  public:
47 
49 
50  virtual ~SceneGlutPrimitives() {};
51 
52  virtual void Draw();
53 
54  virtual void GetBoundingBox(BIAS::Vector3<double> & themin,
55  BIAS::Vector3<double> & themax);
56 
57  void SetDrawTeapot(bool draw, double size){bTeapot_ = draw; fTeapotSize_ = size;}
58  void SetDrawCube(bool draw, double size){bCube_ = draw; fCubeSize_ = size;}
59  void SetDrawTetrahedron(bool draw){bTetrahedron_=draw;}
60  void SetDrawIcosahedron(bool draw){bIcosahedron_=draw;}
61 
62  private:
63 
64  bool bTeapot_;
65  double fTeapotSize_;
66 
67  bool bCube_;
68  double fCubeSize_;
69 
70  bool bTetrahedron_;
71  bool bIcosahedron_;
72  };
73 }
74 
75 #endif // __SCENEGLUTPRMITIVES_H__
Class for rendering the Glut primitives like teapot, cube, tetrahedron and icosahedron. Mainly used to test rendering without SceneGraph library.
Base class for all scenes.
Definition: SceneBase.hh:68
void SetDrawCube(bool draw, double size)
void SetDrawTeapot(bool draw, double size)