Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SkyDomeObject.hh
Go to the documentation of this file.
1 /*===========================================================================*\
2 * *
3 * OpenFlipper *
4 * Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
5 * www.openflipper.org *
6 * *
7 *--------------------------------------------------------------------------- *
8 * This file is part of OpenFlipper. *
9 * *
10 * OpenFlipper is free software: you can redistribute it and/or modify *
11 * it under the terms of the GNU Lesser General Public License as *
12 * published by the Free Software Foundation, either version 3 of *
13 * the License, or (at your option) any later version with the *
14 * following exceptions: *
15 * *
16 * If other files instantiate templates or use macros *
17 * or inline functions from this file, or you compile this file and *
18 * link it with other files to produce an executable, this file does *
19 * not by itself cause the resulting executable to be covered by the *
20 * GNU Lesser General Public License. This exception does not however *
21 * invalidate any other reasons why the executable file might be *
22 * covered by the GNU Lesser General Public License. *
23 * *
24 * OpenFlipper is distributed in the hope that it will be useful, *
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
27 * GNU Lesser General Public License for more details. *
28 * *
29 * You should have received a copy of the GNU LesserGeneral Public *
30 * License along with OpenFlipper. If not, *
31 * see <http://www.gnu.org/licenses/>. *
32 * *
33 \*===========================================================================*/
34 
35 /*===========================================================================*\
36 * *
37 * $Revision: 10745 $ *
38 * $LastChangedBy: moebius $ *
39 * $Date: 2011-01-26 10:23:50 +0100 (Mi, 26 Jan 2011) $ *
40 * *
41 \*===========================================================================*/
42 
43 //=============================================================================
44 //
45 // Types
46 //
47 //=============================================================================
48 
54 #ifndef SKYDOMEOBJECT_HH
55 #define SKYDOMEOBJECT_HH
56 
57 
58 //== INCLUDES =================================================================
59 
63 #include <ObjectTypes/SkyDome/SkyDomeNode.hh>
64 
65 //== TYPEDEFS =================================================================
66 
67 // //== CLASS DEFINITION =========================================================
68 
70 
71  public:
73  SkyDomeObject();
74 
79  SkyDomeObject(SkyDomeObject& _object);
80 
82  virtual ~SkyDomeObject();
83 
85  virtual void cleanup();
86 
90  BaseObject* copy();
91 
92 
93  protected:
95  virtual void init(SkyDome* _SkyDome = 0);
96 
97  //===========================================================================
100  //===========================================================================
101  public:
102 
104  void setName( QString _name );
105 
106  //===========================================================================
109  //===========================================================================
110 
111  public:
113  SkyDomeNode* skyDomeNode();
114 
115  private:
117 
120  //===========================================================================
123  //===========================================================================
124 
125  public:
127  SkyDome& getSkyDome();
128 
130  void update(UpdateType _type = UPDATE_ALL);
131 
132  private:
134 
137  //===========================================================================
140  //===========================================================================
141  public:
143  QString getObjectinfo();
144 
148  //===========================================================================
151  //===========================================================================
152  public:
154  bool picked( uint _node_idx );
155 //
156 // /// Enable or disable picking for this Object
157 // void enablePicking( bool _enable );
158 //
159 // /// Check if picking is enabled for this Object
160 // bool pickingEnabled();
161 
164 };
165 
166 //=============================================================================
167 #endif // SKYDOMEOBJECT_HH
168 //=============================================================================
virtual bool picked(uint _node_idx)
detect if the node has been picked
virtual BaseObject * copy()
Returns a full copy of the object.
Definition: BaseObject.cc:780
virtual QString getObjectinfo()
Get all Info for the Object as a string.
Definition: BaseObject.cc:255
virtual void cleanup()
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
Update type class.
Definition: UpdateType.hh:70
SkyDomeNode * skyDomeNode_
Get the scenegraph Node.
#define DLLEXPORT
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
SkyDome skyDome_
Get all Info for the Object as a string.