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_PHYSICS_RENDERTESTS_RENDERTEST_H
17 #define SURGSIM_PHYSICS_RENDERTESTS_RENDERTEST_H
18 
19 #include <gtest/gtest.h>
20 
26 #include "SurgSim/Math/Vector.h"
28 
29 namespace SurgSim
30 {
31 namespace Physics
32 {
33 
34 struct RenderTests : public ::testing::Test
35 {
36 public:
37 
38  virtual void SetUp();
39 
40  virtual void TearDown();
41 
42  virtual void runTest(const SurgSim::Math::Vector3d& cameraPosition,
43  const SurgSim::Math::Vector3d& cameraLookAt, double miliseconds);
44 
45  std::shared_ptr<SurgSim::Framework::Runtime> runtime;
46  std::shared_ptr<SurgSim::Graphics::OsgManager> graphicsManager;
47  std::shared_ptr<SurgSim::Physics::PhysicsManager> physicsManager;
48  std::shared_ptr<SurgSim::Framework::BehaviorManager> behaviorManager;
49  std::shared_ptr<SurgSim::Framework::Scene> scene;
50  std::shared_ptr<SurgSim::Graphics::OsgViewElement> viewElement;
51 };
52 
53 }; // namespace Physics
54 }; // namespace SurgSim
55 
56 #endif //SURGSIM_PHYSICS_RENDERTESTS_RENDERTEST_H
Definition: DriveElementFromInputBehavior.cpp:27
std::shared_ptr< SurgSim::Framework::BehaviorManager > behaviorManager
Definition: RenderTest.h:48
virtual void SetUp()
Definition: RenderTest.cpp:24
std::shared_ptr< SurgSim::Graphics::OsgViewElement > viewElement
Definition: RenderTest.h:50
std::shared_ptr< SurgSim::Graphics::OsgManager > graphicsManager
Definition: RenderTest.h:46
Definition: RenderTest.h:34
Definitions of small fixed-size vector types.
std::shared_ptr< SurgSim::Physics::PhysicsManager > physicsManager
Definition: RenderTest.h:47
std::shared_ptr< SurgSim::Framework::Scene > scene
Definition: RenderTest.h:49
std::shared_ptr< SurgSim::Framework::Runtime > runtime
Definition: RenderTest.h:45
virtual void runTest(const SurgSim::Math::Vector3d &cameraPosition, const SurgSim::Math::Vector3d &cameraLookAt, double miliseconds)
Definition: RenderTest.cpp:48
virtual void TearDown()
Definition: RenderTest.cpp:43
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:56