MIRA
Namespaces | Functions
OgreUtils.h File Reference

Declaration of helper functions for converting from and to Ogre. More...

#include <geometry/Point.h>
#include <utils/Path.h>
#include <image/Color.h>
#include <transform/Pose.h>
#include <OGRE/OgreString.h>
#include <OGRE/OgreVector3.h>
#include <OGRE/OgreColourValue.h>
#include <OGRE/OgreSceneQuery.h>
#include <widgets/GuiWidgetsExports.h>
Include dependency graph for OgreUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Ogre
 
 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 
 mira::OgreUtils
 

Functions

template<typename TPoint >
Ogre::Vector3 toOgreVector (const TPoint &p)
 
template<>
Ogre::Vector3 toOgreVector< Point2f > (const Point2f &p)
 
template<>
Ogre::Vector3 toOgreVector< Point3f > (const Point3f &p)
 
template<>
Ogre::Vector3 toOgreVector< Pose2 > (const Pose2 &p)
 
template<>
Ogre::Vector3 toOgreVector< PoseCov2 > (const PoseCov2 &p)
 
template<>
Ogre::Vector3 toOgreVector< Pose3 > (const Pose3 &p)
 
template<>
Ogre::Vector3 toOgreVector< PoseCov3 > (const PoseCov3 &p)
 
template<>
Ogre::Vector3 toOgreVector< RigidTransform< double, 2 > > (const RigidTransform< double, 2 > &p)
 
template<>
Ogre::Vector3 toOgreVector< RigidTransformCov< double, 2 > > (const RigidTransformCov< double, 2 > &p)
 
template<>
Ogre::Vector3 toOgreVector< RigidTransform< double, 3 > > (const RigidTransform< double, 3 > &p)
 
template<>
Ogre::Vector3 toOgreVector< RigidTransformCov< double, 3 > > (const RigidTransformCov< double, 3 > &p)
 
template<typename ColorType >
Ogre::ColourValue toOgreColor (const ColorType &c)
 
template<>
Ogre::ColourValue toOgreColor< Color::RGB > (const Color::RGB &c)
 
template<>
Ogre::ColourValue toOgreColor< Color::RGBA > (const Color::RGBA &c)
 
MIRA_GUI_WIDGETS_EXPORT void loadResource (const Path &path, const Ogre::String &resourceGroup)
 
MIRA_GUI_WIDGETS_EXPORT void setTransform (Ogre::SceneNode *node, const RigidTransform2f &t)
 Sets position and orientation of the scene node according to the specified transform. More...
 
MIRA_GUI_WIDGETS_EXPORT void setTransform (Ogre::SceneNode *node, const RigidTransform3f &t)
 Sets position and orientation of the scene node according to the specified transform. More...
 
MIRA_GUI_WIDGETS_EXPORT void setPosition (Ogre::SceneNode *node, const Eigen::Vector2f &t)
 Sets the position of the scene node according to the specified translation. More...
 
MIRA_GUI_WIDGETS_EXPORT void setPosition (Ogre::SceneNode *node, const Eigen::Vector3f &t)
 Sets the position of the scene node according to the specified translation. More...
 
MIRA_GUI_WIDGETS_EXPORT void setOrientation (Ogre::SceneNode *node, const Eigen::Rotation2D< float > &r)
 Sets the orientation of the scene node according to the specified rotation. More...
 
MIRA_GUI_WIDGETS_EXPORT void setOrientation (Ogre::SceneNode *node, const Eigen::Quaternion< float > &r)
 Sets the orientation of the scene node according to the specified rotation. More...
 
MIRA_GUI_WIDGETS_EXPORT bool hasAttachedObject (Ogre::SceneNode *node, Ogre::MovableObject *object)
 Returns true if object is directly or indirectly attached to the given node. More...
 
MIRA_GUI_WIDGETS_EXPORT void rayQuery (Ogre::SceneNode *node, const Ogre::Ray &ray, Ogre::RaySceneQueryResult &oResult, uint32 queryMask=0xFFFFFFFF)
 Performs ray intersection tests for ALL movable objects in the specified scene node and all of its child nodes. More...
 
MIRA_GUI_WIDGETS_EXPORT std::pair< bool, float > rayObjectCollision (const Ogre::Ray &ray, const Ogre::MovableObject *object)
 Performs a ray/object collision check. More...
 

Detailed Description

Declaration of helper functions for converting from and to Ogre.

Author
Erik Einhorn
Date
2010/12/19