#include <mesh_object.H>
Public Member Functions | |
mesh_object_t (dWorldID *world_body, dSpaceID *world_space, dGeomID ground, object_info_t *object_data, rndf_tool_t *rndf_tool, access_data_t *access_data_) | |
~mesh_object_t () | |
bool | update (float curr_time) |
void | get_data (vector< obstacle_data_t > *&object_info, vector< obstacle_points_data_t > *&object_points_) |
Private Member Functions | |
bool | load_vertices () |
bool | load_indices () |
Private Attributes | |
dGeomID | m_trimesh |
dTriMeshDataID | m_data |
std::ifstream | m_indices_file |
std::ifstream | m_vertices_file |
std::vector< dReal > | m_vertex_data |
std::vector< int > | m_indices |
mesh_object_t::mesh_object_t | ( | dWorldID * | world_body, | |
dSpaceID * | world_space, | |||
dGeomID | ground, | |||
object_info_t * | object_data, | |||
rndf_tool_t * | rndf_tool, | |||
access_data_t * | access_data_ | |||
) |
References cajun::mesh_object_info_t::indices_file, cajun::mesh_object_info_t::indices_file_is_full_path, load_indices(), load_vertices(), m_data, m_indices, m_indices_file, cajun::object_info_t::m_mesh_object, m_trimesh, m_vertex_data, m_vertices_file, progname, cajun::mesh_object_info_t::vertices_file, cajun::mesh_object_info_t::vertices_file_is_full_path, cajun::sim_world_object_t::x_offset, and cajun::sim_world_object_t::y_offset.
mesh_object_t::~mesh_object_t | ( | ) |
void mesh_object_t::get_data | ( | vector< obstacle_data_t > *& | object_info, | |
vector< obstacle_points_data_t > *& | object_points_ | |||
) | [virtual] |
Implements cajun::sim_world_object_t.
bool mesh_object_t::load_indices | ( | ) | [private] |
References m_indices, m_indices_file, and progname.
Referenced by mesh_object_t().
bool mesh_object_t::load_vertices | ( | ) | [private] |
References m_vertex_data, m_vertices_file, and progname.
Referenced by mesh_object_t().
bool mesh_object_t::update | ( | float | curr_time | ) | [virtual] |
Implements cajun::sim_world_object_t.
dTriMeshDataID cajun::mesh_object_t::m_data [private] |
Referenced by mesh_object_t().
std::vector<int> cajun::mesh_object_t::m_indices [private] |
Referenced by load_indices(), and mesh_object_t().
std::ifstream cajun::mesh_object_t::m_indices_file [private] |
Referenced by load_indices(), and mesh_object_t().
dGeomID cajun::mesh_object_t::m_trimesh [private] |
Referenced by mesh_object_t().
std::vector<dReal> cajun::mesh_object_t::m_vertex_data [private] |
Referenced by load_vertices(), and mesh_object_t().
std::ifstream cajun::mesh_object_t::m_vertices_file [private] |
Referenced by load_vertices(), and mesh_object_t().