opensurgsim
BasicSceneElement.h
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_FRAMEWORK_BASICSCENEELEMENT_H
17 #define SURGSIM_FRAMEWORK_BASICSCENEELEMENT_H
18 
19 #include "SurgSim/Framework/SceneElement.h"
20 #include "SurgSim/Framework/Macros.h"
21 
22 namespace SurgSim
23 {
24 
25 namespace Framework
26 {
27 
30 {
31 public:
34  explicit BasicSceneElement(const std::string& name);
36  virtual ~BasicSceneElement();
37 
38  SURGSIM_CLASSNAME(SurgSim::Framework::BasicSceneElement);
39 
40 protected:
43  bool doInitialize() override;
44 
45 };
46 
47 }; // namespace Framework
48 }; // namespace SurgSim
49 
50 #endif // SURGSIM_FRAMEWORK_BASICSCENEELEMENT_H
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Simple concrete implementation of a scene element that does not have any higher logic.
Definition: BasicSceneElement.h:29
virtual ~BasicSceneElement()
Destructor.
Definition: BasicSceneElement.cpp:28
bool doInitialize() override
Initializes the scene element.
Definition: BasicSceneElement.cpp:32
SceneElement is the basic part of a scene, it is a container of components.
Definition: SceneElement.h:51