Tinman
1.0
|
#include <scene.h>
Public Types | |
typedef std::shared_ptr< Scene > | shared |
Public Member Functions | |
Scene () | |
void | render_one_frame (void) |
Ogre::Ray | set_ray_query (float x, float y) |
void | create_light (void) |
void | set_light_range (Ogre::Light *light, Ogre::Real range) |
void | create_camera (Ogre::RenderWindow *window) |
Ogre::SceneNode * | get_node (std::string node) |
void | attach (Ogre::SceneNode *node, Ogre::Entity *entity) |
Ogre::SceneNode * | create_graphic_element (Ogre::Vector3 position, std::string name, std::string mesh) |
Ogre::SceneNode * | create_graphic_element (std::string entity, std::string mesh, std::string parent, std::string name) |
Ogre::SceneNode * | create_graphic_element (Ogre::Entity *entity, std::string parent, std::string name) |
Ogre::SceneNode * | create_plane (std::string axis, std::string name, std::string mesh, std::string parent, std::string material) |
Ogre::SceneNode * | get_child_node (std::string parent, std::string name) |
Ogre::SceneNode * | get_child_node (Ogre::SceneNode *parent, std::string name) |
Ogre::Entity * | create_entity (std::string name, std::string mesh, bool cast_shadows) |
void | move_node (std::string node_name, Ogre::Vector3 increment) |
Ogre::ParticleSystem * | get_particle (std::string name, std::string particle_system) |
Ogre::ParticleSystem * | get_particle (Ogre::SceneNode *node, std::string name, std::string particle_system) |
Ogre::ParticleSystem * | get_particle (std::string name, std::string particle_system, Ogre::Vector3 position) |
void | add_child (Ogre::SceneNode *parent, Ogre::SceneNode *child) |
void | destroy_node (std::string) |
void | destroy_node (Ogre::SceneNode *child) |
void | destroy_entity (Ogre::Entity *entity) |
void | remove_child (std::string parent, std::string child) |
void | remove_child (std::string parent, Ogre::SceneNode *child) |
void | remove_child (Ogre::SceneNode *parent, std::string child) |
void | remove_child (Ogre::SceneNode *parent, Ogre::SceneNode *child) |
void | destroy_scene () |
void | destroy_all_attached_movable_objects (Ogre::SceneNode *node) |
Ogre::Vector3 | convert_btvector3_to_vector3 (btVector3 position) |
Public Attributes | |
Ogre::RenderWindow * | window_ |
Ogre::Camera * | camera_ |
Ogre::RaySceneQuery * | ray_query_ |
Private Member Functions | |
void | load_resources () |
Ogre::SceneNode * | create_node (std::string name) |
Ogre::SceneNode * | create_child_node (Ogre::SceneNode *parent, std::string name) |
Ogre::Vector3 | get_axis (std::string axis) |
Ogre::Vector3 | get_normal (std::string axis) |
Private Attributes | |
const std::string | window_title = "Tinman Project" |
Ogre::Root * | root_ |
Ogre::SceneManager * | scene_manager_ |
typedef std::shared_ptr<Scene> Scene::shared |
Scene::Scene | ( | ) |
void Scene::add_child | ( | Ogre::SceneNode * | parent, |
Ogre::SceneNode * | child | ||
) |
void Scene::attach | ( | Ogre::SceneNode * | node, |
Ogre::Entity * | entity | ||
) |
Ogre::Vector3 Scene::convert_btvector3_to_vector3 | ( | btVector3 | position | ) |
void Scene::create_camera | ( | Ogre::RenderWindow * | window | ) |
|
private |
Ogre::Entity * Scene::create_entity | ( | std::string | name, |
std::string | mesh, | ||
bool | cast_shadows | ||
) |
Ogre::SceneNode * Scene::create_graphic_element | ( | Ogre::Vector3 | position, |
std::string | name, | ||
std::string | mesh | ||
) |
Ogre::SceneNode * Scene::create_graphic_element | ( | std::string | entity, |
std::string | mesh, | ||
std::string | parent, | ||
std::string | name | ||
) |
Ogre::SceneNode * Scene::create_graphic_element | ( | Ogre::Entity * | entity, |
std::string | parent, | ||
std::string | name | ||
) |
void Scene::create_light | ( | void | ) |
|
private |
Ogre::SceneNode * Scene::create_plane | ( | std::string | axis, |
std::string | name, | ||
std::string | mesh, | ||
std::string | parent, | ||
std::string | material | ||
) |
void Scene::destroy_all_attached_movable_objects | ( | Ogre::SceneNode * | node | ) |
void Scene::destroy_entity | ( | Ogre::Entity * | entity | ) |
void Scene::destroy_node | ( | std::string | name | ) |
void Scene::destroy_node | ( | Ogre::SceneNode * | child | ) |
void Scene::destroy_scene | ( | ) |
|
private |
Ogre::SceneNode * Scene::get_child_node | ( | std::string | parent, |
std::string | name | ||
) |
Ogre::SceneNode * Scene::get_child_node | ( | Ogre::SceneNode * | parent, |
std::string | name | ||
) |
Ogre::SceneNode * Scene::get_node | ( | std::string | node | ) |
|
private |
Ogre::ParticleSystem * Scene::get_particle | ( | std::string | name, |
std::string | particle_system | ||
) |
Ogre::ParticleSystem * Scene::get_particle | ( | Ogre::SceneNode * | node, |
std::string | name, | ||
std::string | particle_system | ||
) |
Ogre::ParticleSystem * Scene::get_particle | ( | std::string | name, |
std::string | particle_system, | ||
Ogre::Vector3 | position | ||
) |
|
private |
void Scene::move_node | ( | std::string | node_name, |
Ogre::Vector3 | increment | ||
) |
void Scene::remove_child | ( | std::string | parent, |
std::string | child | ||
) |
void Scene::remove_child | ( | std::string | parent, |
Ogre::SceneNode * | child | ||
) |
void Scene::remove_child | ( | Ogre::SceneNode * | parent, |
std::string | child | ||
) |
void Scene::remove_child | ( | Ogre::SceneNode * | parent, |
Ogre::SceneNode * | child | ||
) |
void Scene::render_one_frame | ( | void | ) |
void Scene::set_light_range | ( | Ogre::Light * | light, |
Ogre::Real | range | ||
) |
Ogre::Ray Scene::set_ray_query | ( | float | x, |
float | y | ||
) |
Ogre::Camera* Scene::camera_ |
Ogre::RaySceneQuery* Scene::ray_query_ |
|
private |
|
private |
Ogre::RenderWindow* Scene::window_ |
|
private |