|
opensurgsim
|
Tests for the Group class. More...
#include "SurgSim/Graphics/UnitTests/MockObjects.h"#include <gtest/gtest.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 (GroupTests, InitTest) | |
| SurgSim::Graphics::TEST (GroupTests, VisibilityTest) | |
| SurgSim::Graphics::TEST (GroupTests, AddRemoveTest) | |
| SurgSim::Graphics::TEST (GroupTests, AppendTest) | |
| SurgSim::Graphics::TEST (GroupTests, ClearTest) | |
Tests for the Group class.
| SurgSim::Graphics::TEST | ( | GroupTests | , |
| AddRemoveTest | |||
| ) |
Add an representation
Add another representation
Try to add a duplicate representation
Remove an representation
Try to remove an representation that is not in the group
| SurgSim::Graphics::TEST | ( | GroupTests | , |
| AppendTest | |||
| ) |
Add 2 representations to group 1
Add an representation to group 2 and append group 1 to group 2.
Try to append a group that has already been appended - this will try to add duplicate representations.
Check that group 1 was not modified by appending it to group 2.
| SurgSim::Graphics::TEST | ( | GroupTests | , |
| ClearTest | |||
| ) |
Add 3 representations
Remove all representations and make sure that they are removed correctly
1.8.12