SceneryRepresentation.h
Go to the documentation of this file.
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_GRAPHICS_SCENERYREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_SCENERYREPRESENTATION_H
18 
20 
21 #include <string>
22 
23 namespace SurgSim
24 {
25 
26 namespace Graphics
27 {
28 
30 class SceneryRepresentation : public virtual Representation
31 {
32 public:
33 
36  explicit SceneryRepresentation(const std::string& name): Representation(name)
37  {
39  }
40 
43  virtual std::string getFileName() const = 0;
44 
47  virtual void setFileName(const std::string& fileName) = 0;
48 };
49 
50 }; // namespace Graphics
51 }; // namespace SurgSim
52 
53 #endif // SURGSIM_GRAPHICS_SCENERYREPRESENTATION_H
virtual std::string getFileName() const =0
Return file name of the object.
Definition: DriveElementFromInputBehavior.cpp:27
SceneryRepresentation(const std::string &name)
Constructor.
Definition: SceneryRepresentation.h:36
virtual void setFileName(const std::string &fileName)=0
Set file name of the object to be loaded.
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
#define SURGSIM_ADD_SERIALIZABLE_PROPERTY(class, type, property, getter, setter)
A macro to register a serializable property, this needs to support reading, writing and all the conve...
Definition: Accessible.h:211
Base class defining the interface for a Graphics Scenery Object.
Definition: SceneryRepresentation.h:30
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39