opensurgsim
|
Tests for the OsgManager class. More...
#include "SurgSim/Graphics/UnitTests/MockObjects.h"
#include "SurgSim/Graphics/UnitTests/MockOsgObjects.h"
#include "SurgSim/Framework/Runtime.h"
#include "SurgSim/Graphics/OsgCamera.h"
#include "SurgSim/Graphics/OsgGroup.h"
#include "SurgSim/Graphics/OsgManager.h"
#include "SurgSim/Graphics/OsgRepresentation.h"
#include "SurgSim/Graphics/OsgView.h"
#include "SurgSim/Graphics/OsgViewElement.h"
#include <gtest/gtest.h>
#include <memory>
#include <algorithm>
#include <random>
Classes | |
class | SurgSim::Graphics::OsgManagerTest |
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_F (OsgManagerTest, InitTest) | |
bool | SurgSim::Graphics::hasView (osgViewer::CompositeViewer *compositeViewer, osg::View *view) |
SurgSim::Graphics::TEST_F (OsgManagerTest, AddRemoveTest) | |
SurgSim::Graphics::TEST_F (OsgManagerTest, LazyGroupsTest) | |
Tests for the OsgManager class.
SurgSim::Graphics::TEST_F | ( | OsgManagerTest | , |
AddRemoveTest | |||
) |
Perform add and remove from a pointer to a ComponentManager to check that the intended polymorphism is working.
Add an representation
Add a view
Add another view
Add another representation
Try to add a duplicate representation
Try to add a duplicate view
Try to add an representation that is not a subclass of OsgRepresentation
Try to add a view that is not a subclass of OsgView
Try to add a component that is not graphics-related
Remove a view
Remove an representation
Try to remove an representation that is not in the manager
Try to remove a view that is not in the manager
Try to remove a component that is not graphics-related