opensurgsim
Classes | Namespaces | Functions
FemRepresentationTests.cpp File Reference

This file tests the non-abstract functionalities of the base class FemRepresentation. More...

#include <gtest/gtest.h>
#include "SurgSim/DataStructures/IndexedLocalCoordinate.h"
#include "SurgSim/Framework/Runtime.h"
#include "SurgSim/Physics/UnitTests/DeformableTestsUtility.h"
#include "SurgSim/Physics/UnitTests/MockObjects.h"

Classes

class  SurgSim::Physics::FemRepresentationTests
 

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::Physics::TEST_F (FemRepresentationTests, ConstructorTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, AddSetGetTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, IsValidCoordinateTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, BeforeUpdateTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, AfterUpdateTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, ComputesWithNoGravityAndNoDampingTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, ComputesWithNoGravityAndDampingTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, ComputesWithGravityAndNoDampingTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, ComputesWithGravityAndDampingTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, DoInitializeTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, ComplianceWarpingTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, MassLumpingTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, SerializationTest)
 
 SurgSim::Physics::TEST_F (FemRepresentationTests, SetInitialStateTest)
 

Detailed Description

This file tests the non-abstract functionalities of the base class FemRepresentation.

Function Documentation

§ TEST_F()

SurgSim::Physics::TEST_F ( FemRepresentationTests  ,
AddSetGetTest   
)

Add/Get FemElement

Test gets the total mass of the fem (Each MockFemElement has a fixed volume of 1m^3)

Test sets/gets the Rayleigh stiffness parameter

Test sets/gets the Rayleigh mass parameter