|
opensurgsim
|
Tests for the OsgView class. More...
#include "SurgSim/Framework/FrameworkConvert.h"#include "SurgSim/Graphics/UnitTests/MockObjects.h"#include "SurgSim/Graphics/UnitTests/MockOsgObjects.h"#include "SurgSim/Graphics/OsgCamera.h"#include "SurgSim/Graphics/OsgView.h"#include <gtest/gtest.h>#include <random>#include "osg/GraphicsContext"Namespaces | |
| SurgSim | |
| Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions. | |
Typedefs | |
| typedef std::array< int, 2 > | SurgSim::Graphics::CoordinateType |
Functions | |
| SurgSim::Graphics::TEST (OsgViewTests, InitTest) | |
| SurgSim::Graphics::TEST (OsgViewTests, PositionAndDimensionsTest) | |
| SurgSim::Graphics::TEST (OsgViewTests, FullScreenSize) | |
| SurgSim::Graphics::TEST (OsgViewTests, CameraTest) | |
| void | SurgSim::Graphics::expectEqual (std::shared_ptr< OsgView > expected, std::shared_ptr< OsgView > actual) |
| SurgSim::Graphics::TEST (OsgViewTests, Serialization) | |
| SurgSim::Graphics::TEST (OsgViewTests, OnlyOneDevice) | |
| SurgSim::Graphics::TEST (OsgViewTest, TargetScreenTest) | |
Tests for the OsgView class.
| SurgSim::Graphics::TEST | ( | OsgViewTests | , |
| PositionAndDimensionsTest | |||
| ) |
Set position and check that it set correctly
Set dimensions and check that it set correctly
The window border should be enabled initially
Disable the window border
| SurgSim::Graphics::TEST | ( | OsgViewTests | , |
| CameraTest | |||
| ) |
Set the camera and check that it set correctly
Try to set a camera that does not derive from OsgCamera
| SurgSim::Graphics::TEST | ( | OsgViewTests | , |
| Serialization | |||
| ) |
Serialize
Deserialize
Serialize
Deserialize
1.8.12