opensurgsim
Classes | Namespaces | Functions
OsgRepresentationTests.cpp File Reference

Tests for the OsgRepresentation class. More...

#include <gtest/gtest.h>
#include <osg/Geode>
#include <osg/Geometry>
#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/OsgBoxRepresentation.h"
#include "SurgSim/Graphics/OsgCamera.h"
#include "SurgSim/Graphics/OsgManager.h"
#include "SurgSim/Graphics/OsgMaterial.h"
#include "SurgSim/Graphics/OsgSceneryRepresentation.h"
#include "SurgSim/Graphics/Representation.h"
#include "SurgSim/Graphics/UnitTests/MockOsgObjects.h"
#include "SurgSim/Math/Matrix.h"
#include "SurgSim/Math/Quaternion.h"
#include "SurgSim/Math/Vector.h"

Classes

class  SurgSim::Graphics::CheckTangentsVisitor
 

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 (OsgRepresentationTests, InitTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationsTests, ParameterTests)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, OsgNodeTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, ActivityTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, WireFrameTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, PoseTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, MaterialTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, AddUniformTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, UpdateTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, GroupTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, GroupsTest)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, SetGroupsTests)
 
 SurgSim::Graphics::TEST (OsgRepresentationTests, TangentGenerationTest)
 
 SurgSim::Graphics::TEST (OsgRepresentation, MaterialFromReference)
 
 SurgSim::Graphics::TEST (OsgRepresentation, Serialization)
 

Detailed Description

Tests for the OsgRepresentation class.

Function Documentation

§ TEST()

SurgSim::Graphics::TEST ( OsgRepresentationTests  ,
UpdateTest   
)

Do 10 updates with random dt and check each time that the number of updates and sum of dt are correct.