Classes | Defines | Functions | Variables
utest.cpp File Reference
#include <gtest/gtest.h>
#include "../src/ogre_tools/fps_camera.h"
#include "../src/ogre_tools/orbit_camera.h"
#include "../src/ogre_tools/initialization.h"
#include <ros/package.h>
#include <OGRE/Ogre.h>
Include dependency graph for utest.cpp:

Go to the source code of this file.

Classes

class  FPSSetFromOrbit
class  OrbitSetFromFPS
class  TestEnvironment

Defines

#define EXPECT_QUATERNION_EQ(expected, actual)
#define EXPECT_QUATERNION_NEAR(expected, actual, tolerance)
#define EXPECT_VECTOR_EQ(expected, actual)
#define EXPECT_VECTOR_NEAR(expected, actual, tolerance)

Functions

int main (int argc, char **argv)
 TEST (OrbitCamera, setPosition)
 TEST (OrbitCamera, setOrientation)
 TEST (OrbitCamera, saveAndLoad)
 TEST (FPSCamera, setPosition)
 TEST (FPSCamera, setOrientation)
 TEST (FPSCamera, saveAndLoad)
 TEST_F (OrbitSetFromFPS, quadrantPosXPosYPosZ)
 TEST_F (OrbitSetFromFPS, quadrantPosXNegYPosZ)
 TEST_F (OrbitSetFromFPS, quadrantNegXPosYPosZ)
 TEST_F (OrbitSetFromFPS, quadrantNegXNegYPosZ)
 TEST_F (OrbitSetFromFPS, quadrantNegXPosYNegZ)
 TEST_F (OrbitSetFromFPS, quadrantNegXNegYNegZ)
 TEST_F (OrbitSetFromFPS, quadrantPosXPosYNegZ)
 TEST_F (OrbitSetFromFPS, quadrantPosXNegYNegZ)
 TEST_F (FPSSetFromOrbit, quadrantPosXPosYPosZ)
 TEST_F (FPSSetFromOrbit, quadrantPosXNegYPosZ)
 TEST_F (FPSSetFromOrbit, quadrantNegXPosYPosZ)
 TEST_F (FPSSetFromOrbit, quadrantNegXNegYPosZ)
 TEST_F (FPSSetFromOrbit, quadrantNegXPosYNegZ)
 TEST_F (FPSSetFromOrbit, quadrantNegXNegYNegZ)
 TEST_F (FPSSetFromOrbit, quadrantPosXPosYNegZ)
 TEST_F (FPSSetFromOrbit, quadrantPosXNegYNegZ)

Variables

bool g_initialized = false
Ogre::RenderWindow * g_render_window = NULL
Ogre::Root * g_root = NULL
Ogre::SceneManager * g_scene_manager = NULL
Ogre::Viewport * g_viewport = NULL

Define Documentation

#define EXPECT_QUATERNION_EQ (   expected,
  actual 
)
Value:
EXPECT_FLOAT_EQ( expected.x, actual.x ); \
  EXPECT_FLOAT_EQ( expected.y, actual.y ); \
  EXPECT_FLOAT_EQ( expected.z, actual.z ); \
  EXPECT_FLOAT_EQ( expected.w, actual.w );

Definition at line 119 of file utest.cpp.

#define EXPECT_QUATERNION_NEAR (   expected,
  actual,
  tolerance 
)
Value:
EXPECT_NEAR( expected.x, actual.x, tolerance ); \
  EXPECT_NEAR( expected.y, actual.y, tolerance ); \
  EXPECT_NEAR( expected.z, actual.z, tolerance ); \
  EXPECT_NEAR( expected.w, actual.w, tolerance );

Definition at line 125 of file utest.cpp.

#define EXPECT_VECTOR_EQ (   expected,
  actual 
)
Value:
EXPECT_FLOAT_EQ( expected.x, actual.x ); \
  EXPECT_FLOAT_EQ( expected.y, actual.y ); \
  EXPECT_FLOAT_EQ( expected.z, actual.z );

Definition at line 109 of file utest.cpp.

#define EXPECT_VECTOR_NEAR (   expected,
  actual,
  tolerance 
)
Value:
EXPECT_NEAR( expected.x, actual.x, tolerance ); \
  EXPECT_NEAR( expected.y, actual.y, tolerance ); \
  EXPECT_NEAR( expected.z, actual.z, tolerance );

Definition at line 114 of file utest.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 403 of file utest.cpp.

TEST ( OrbitCamera  ,
setPosition   
)

Definition at line 131 of file utest.cpp.

TEST ( OrbitCamera  ,
setOrientation   
)

Definition at line 147 of file utest.cpp.

TEST ( OrbitCamera  ,
saveAndLoad   
)

Definition at line 166 of file utest.cpp.

TEST ( FPSCamera  ,
setPosition   
)

Definition at line 193 of file utest.cpp.

TEST ( FPSCamera  ,
setOrientation   
)

Definition at line 209 of file utest.cpp.

TEST ( FPSCamera  ,
saveAndLoad   
)

Definition at line 228 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantPosXPosYPosZ   
)

Definition at line 288 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantPosXNegYPosZ   
)

Definition at line 293 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantNegXPosYPosZ   
)

Definition at line 298 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantNegXNegYPosZ   
)

Definition at line 303 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantNegXPosYNegZ   
)

Definition at line 308 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantNegXNegYNegZ   
)

Definition at line 313 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantPosXPosYNegZ   
)

Definition at line 318 of file utest.cpp.

TEST_F ( OrbitSetFromFPS  ,
quadrantPosXNegYNegZ   
)

Definition at line 323 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantPosXPosYPosZ   
)

Definition at line 363 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantPosXNegYPosZ   
)

Definition at line 368 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantNegXPosYPosZ   
)

Definition at line 373 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantNegXNegYPosZ   
)

Definition at line 378 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantNegXPosYNegZ   
)

Definition at line 383 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantNegXNegYNegZ   
)

Definition at line 388 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantPosXPosYNegZ   
)

Definition at line 393 of file utest.cpp.

TEST_F ( FPSSetFromOrbit  ,
quadrantPosXNegYNegZ   
)

Definition at line 398 of file utest.cpp.


Variable Documentation

Definition at line 41 of file utest.cpp.

Ogre::RenderWindow* g_render_window = NULL

Definition at line 45 of file utest.cpp.

Ogre::Root* g_root = NULL

Definition at line 42 of file utest.cpp.

Ogre::SceneManager* g_scene_manager = NULL

Definition at line 43 of file utest.cpp.

Ogre::Viewport* g_viewport = NULL

Definition at line 44 of file utest.cpp.



ogre_tools_qt
Author(s): Josh Faust
autogenerated on Fri Dec 6 2013 20:56:43