OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Functions
testbulletnifloader.cpp File Reference
#include <components/nifbullet/bulletnifloader.hpp>
#include <components/bullethelpers/processtrianglecallback.hpp>
#include <components/nif/node.hpp>
#include <BulletCollision/CollisionShapes/btBoxShape.h>
#include <BulletCollision/CollisionShapes/btCompoundShape.h>
#include <BulletCollision/CollisionShapes/btTriangleMesh.h>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
Include dependency graph for testbulletnifloader.cpp:

Classes

struct  anonymous_namespace{testbulletnifloader.cpp}::NifFileMock
 
struct  anonymous_namespace{testbulletnifloader.cpp}::RecordMock
 
struct  anonymous_namespace{testbulletnifloader.cpp}::TestBulletNifLoader
 

Namespaces

 anonymous_namespace{testbulletnifloader.cpp}
 
 Resource
 
 osg
 

Functions

template<class T >
bool anonymous_namespace{testbulletnifloader.cpp}::compareObjects (const T *lhs, const T *rhs)
 
std::vector< btVector3 > anonymous_namespace{testbulletnifloader.cpp}::getTriangles (const btBvhTriangleMeshShape &shape)
 
static std::ostream & operator<< (std::ostream &stream, const btVector3 &value)
 
static std::ostream & operator<< (std::ostream &stream, const btMatrix3x3 &value)
 
static std::ostream & operator<< (std::ostream &stream, const btTransform &value)
 
static std::ostream & operator<< (std::ostream &stream, const btCollisionShape *value)
 
static std::ostream & operator<< (std::ostream &stream, const btCompoundShape &value)
 
static std::ostream & operator<< (std::ostream &stream, const btBoxShape &value)
 
static std::ostream & Resource::operator<< (std::ostream &stream, const TriangleMeshShape &value)
 
static std::ostream & operator<< (std::ostream &stream, const btCollisionShape &value)
 
static std::ostream & osg::operator<< (std::ostream &stream, const Vec3f &value)
 
static std::ostream & std::operator<< (std::ostream &stream, const map< int, int > &value)
 
static bool Resource::operator== (const Resource::BulletShape &lhs, const Resource::BulletShape &rhs)
 
static std::ostream & Resource::operator<< (std::ostream &stream, const Resource::BulletShape &value)
 
static bool operator== (const btCollisionShape &lhs, const btCollisionShape &rhs)
 
static bool operator== (const btCompoundShape &lhs, const btCompoundShape &rhs)
 
static bool operator== (const btBoxShape &lhs, const btBoxShape &rhs)
 
static bool operator== (const btBvhTriangleMeshShape &lhs, const btBvhTriangleMeshShape &rhs)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::Transformation &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::Extra &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::Controlled &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::Named &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::Node &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::NiTriShape &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::NiSkinInstance &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::init (Nif::Controller &value)
 
void anonymous_namespace{testbulletnifloader.cpp}::copy (const btTransform &src, Nif::Transformation &dst)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_zero_num_roots_should_return_default)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_not_nif_node_should_return_default)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_default_root_nif_node_should_return_default)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_default_root_collision_node_nif_node_should_return_default)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_default_root_nif_node_and_filename_starting_with_x_should_return_default)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_nif_node_with_bounding_box_should_return_shape_with_compound_shape_and_box_inside)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_child_nif_node_with_bounding_box)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_and_child_nif_node_with_bounding_box_but_root_without_flag_should_use_child_bounds)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_and_two_children_where_both_with_bounds_but_only_first_with_flag_should_use_first_bounds)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_and_two_children_where_both_with_bounds_but_only_second_with_flag_should_use_second_bounds)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_nif_node_with_bounds_but_without_flag_should_return_shape_with_bounds_but_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_root_node_should_return_shape_with_triangle_mesh_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_root_node_with_bounds_should_return_shape_with_bounds_but_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_should_return_shape_with_triangle_mesh_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_nested_tri_shape_child_should_return_shape_with_triangle_mesh_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_two_tri_shape_children_should_return_shape_with_triangle_mesh_shape_with_all_meshes)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_and_filename_starting_with_x_and_not_empty_skin_should_return_shape_with_triangle_mesh_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_root_node_and_filename_starting_with_x_should_return_shape_with_compound_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_and_filename_starting_with_x_should_return_shape_with_compound_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_two_tri_shape_children_nodes_and_filename_starting_with_x_should_return_shape_with_compound_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_controller_should_return_shape_with_compound_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_two_tri_shape_children_nodes_where_one_with_controller_should_return_shape_with_compound_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_root_avoid_node_and_tri_shape_child_node_should_return_shape_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_empty_data_should_return_shape_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_empty_data_triangles_should_return_shape_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_extra_data_string_starting_with_nc_should_return_shape_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_not_first_extra_data_string_starting_with_nc_should_return_shape_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_extra_data_string_mrk_should_return_shape_with_null_collision_shape)
 
 anonymous_namespace{testbulletnifloader.cpp}::TEST_F (TestBulletNifLoader, for_tri_shape_child_node_with_extra_data_string_mrk_and_other_collision_node_should_return_shape_with_triangle_mesh_shape_with_all_meshes)
 

Function Documentation

static std::ostream& operator<< ( std::ostream &  stream,
const btVector3 &  value 
)
static
static std::ostream& operator<< ( std::ostream &  stream,
const btMatrix3x3 &  value 
)
static
static std::ostream& operator<< ( std::ostream &  stream,
const btTransform &  value 
)
static
static std::ostream & operator<< ( std::ostream &  stream,
const btCollisionShape *  value 
)
static
static std::ostream& operator<< ( std::ostream &  stream,
const btCompoundShape &  value 
)
static
static std::ostream& operator<< ( std::ostream &  stream,
const btBoxShape &  value 
)
static
static std::ostream& operator<< ( std::ostream &  stream,
const btCollisionShape &  value 
)
static
static bool operator== ( const btCollisionShape &  lhs,
const btCollisionShape &  rhs 
)
static
static bool operator== ( const btCompoundShape &  lhs,
const btCompoundShape &  rhs 
)
static

Here is the call graph for this function:

static bool operator== ( const btBoxShape &  lhs,
const btBoxShape &  rhs 
)
static
static bool operator== ( const btBvhTriangleMeshShape lhs,
const btBvhTriangleMeshShape rhs 
)
static

Here is the call graph for this function: