|
opensurgsim
|
Tests for the OsgCamera class. More...
#include <gtest/gtest.h>#include <osg/Camera>#include <osg/ref_ptr>#include <random>#include "SurgSim/Framework/BasicSceneElement.h"#include "SurgSim/Framework/FrameworkConvert.h"#include "SurgSim/Framework/Runtime.h"#include "SurgSim/Framework/Scene.h"#include "SurgSim/Graphics/OsgCamera.h"#include "SurgSim/Graphics/OsgGroup.h"#include "SurgSim/Graphics/OsgMatrixConversions.h"#include "SurgSim/Graphics/OsgRenderTarget.h"#include "SurgSim/Graphics/OsgTexture2d.h"#include "SurgSim/Graphics/UnitTests/MockObjects.h"#include "SurgSim/Graphics/UnitTests/MockOsgObjects.h"#include "SurgSim/Math/Quaternion.h"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. | |
Functions | |
| SurgSim::Graphics::TEST (OsgCameraTests, InitTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, OsgNodesTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, ActivenessTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, GroupTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, PoseTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, MatricesTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, RenderTargetTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, CameraGroupTest) | |
| SurgSim::Graphics::TEST (OsgCameraTests, Serialization) | |
| SurgSim::Graphics::TEST (OsgCameraTests, SetProjection) | |
| SurgSim::Graphics::TEST (OsgCameraTests, Viewport) | |
| SurgSim::Graphics::TEST (OsgCameraTests, MultipleRenderGroups) | |
Tests for the OsgCamera class.
| SurgSim::Graphics::TEST | ( | OsgCameraTests | , |
| OsgNodesTest | |||
| ) |
Check that the OSG nodes of the camera are built correctly
| SurgSim::Graphics::TEST | ( | OsgCameraTests | , |
| GroupTest | |||
| ) |
Adding an OsgGroup should succeed
Check that the OSG node of the group is added to the OSG camera correctly
Adding a group that does not derive from OsgGroup should fail
1.8.12