RenderTest.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_RENDERTESTS_RENDERTEST_H
17 #define SURGSIM_GRAPHICS_RENDERTESTS_RENDERTEST_H
18 
19 #include <gtest/gtest.h>
20 #include <memory>
21 
25 
30 
31 namespace SurgSim
32 {
33 namespace Framework
34 {
35 
36 class Runtime;
37 class Scene;
38 
39 }
40 
41 namespace Graphics
42 {
43 
44 struct RenderTest : public ::testing::Test
45 {
46 public:
47 
48  virtual void SetUp();
49 
50  virtual void TearDown();
51 
52  std::shared_ptr<ScreenSpaceQuadRepresentation> makeQuad(
53  const std::string& name,
54  int width,
55  int height,
56  int x,
57  int y);
58 
59  std::shared_ptr<SurgSim::Framework::Runtime> runtime;
60  std::shared_ptr<OsgManager> graphicsManager;
61  std::shared_ptr<SurgSim::Framework::Scene> scene;
62  std::shared_ptr<OsgViewElement> viewElement;
63  std::shared_ptr<const SurgSim::Framework::ApplicationData> applicationData;
64 
65 };
66 
67 }; // Graphics
68 }; // SurgSim
69 
70 #endif
Definition: DriveElementFromInputBehavior.cpp:27
virtual void SetUp()
Definition: RenderTest.cpp:38
std::shared_ptr< const SurgSim::Framework::ApplicationData > applicationData
Definition: RenderTest.h:63
std::shared_ptr< SurgSim::Framework::Runtime > runtime
Definition: RenderTest.h:59
std::shared_ptr< OsgViewElement > viewElement
Definition: RenderTest.h:62
Definition: RenderTest.h:44
virtual void TearDown()
Definition: RenderTest.cpp:57
std::shared_ptr< OsgManager > graphicsManager
Definition: RenderTest.h:60
std::shared_ptr< SurgSim::Framework::Scene > scene
Definition: RenderTest.h:61
std::shared_ptr< ScreenSpaceQuadRepresentation > makeQuad(const std::string &name, int width, int height, int x, int y)
Definition: RenderTest.cpp:62