#include <but_projection.h>
Public Member Functions | |
void | clear () |
Clear texture. | |
CProjectionData (Ogre::SceneManager *manager, const ros::NodeHandle &nh, const std::string &materialName, const std::string &groupName=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) | |
Constructor - with given texture. | |
Ogre::Material * | getMaterialPtr () |
Get material pointer. | |
int | getTextureHeight () |
Get texture height. | |
int | getTextureWidth () |
Get texture width. | |
void | setAspectRatio (Ogre::Real ar) |
Set aspect ratio. | |
void | setCameraModel (const sensor_msgs::CameraInfo &msg) |
Get camera model reference. | |
void | setDepthTextureTopic (const std::string &topic) |
Set input depth texture topic. | |
void | setFOVy (Ogre::Radian fovy) |
Set FOVy. | |
void | setFrustrumSize (Ogre::Vector2 size) |
Update frustrum aspect ratio. | |
void | setListenerPtr (CMaterialListener *ptr) |
Set listener pointer. | |
void | setProjectorEquation (const Ogre::Vector4 &e) |
Set camera plane equation. | |
void | setProjectorOrientation (const Ogre::Quaternion &q) |
Set projecting direction. | |
void | setProjectorPosition (const Ogre::Vector3 &v) |
Set projector position. | |
void | setRGBTextureTopic (const std::string &topic) |
Set ros texture topic. | |
void | setTextureSize (int width, int height) |
Set texture size. | |
void | update () |
Updata ros texture. | |
void | updateMatrices () |
Update material projection matrix parameter. | |
virtual | ~CProjectionData () |
Destructor. | |
Protected Types | |
enum | ETextureMode { TM_INTERNAL, TM_ROS } |
Protected Attributes | |
Ogre::Vector4 | m_cameraEquation |
Computed camera equation parameters. | |
Ogre::Vector3 | m_cameraPosition |
Camera position. | |
Ogre::Vector2 | m_frustrumSize |
Old frustrum size. | |
Ogre::Frustum * | m_frustum |
Frustum node. | |
boost::mutex | m_lock |
Whole data locking mutex. | |
Ogre::SceneManager * | m_manager |
Sotred scene manager pointer. | |
CMaterialListener * | m_materialListener |
Used material listener. | |
Ogre::MaterialPtr | m_materialPtr |
Material pointer. | |
ETextureMode | m_mode |
Current mode. | |
Ogre::SceneNode * | m_projectorNode |
Projector node. | |
size_t | m_texH |
Ogre::TextureUnitState * | m_texState |
Texture unit state. | |
tRosTextureDepth * | m_textureRosDepth |
tRosTextureRGB * | m_textureRosRGB |
Ros textures. | |
size_t | m_texW |
Texture sizes. | |
tf::TransformListener | m_tfListener |
Transform listener. | |
Private Types | |
typedef CRosDepthTexture | tRosTextureDepth |
Depth texture type. | |
typedef CRosTopicTexture | tRosTextureRGB |
Projection used data
Definition at line 140 of file but_projection.h.
typedef CRosDepthTexture srs_ui_but::CProjectionData::tRosTextureDepth [private] |
Depth texture type.
Definition at line 146 of file but_projection.h.
typedef CRosTopicTexture srs_ui_but::CProjectionData::tRosTextureRGB [private] |
Definition at line 143 of file but_projection.h.
enum srs_ui_but::CProjectionData::ETextureMode [protected] |
Definition at line 149 of file but_projection.h.
srs_ui_but::CProjectionData::CProjectionData | ( | Ogre::SceneManager * | manager, |
const ros::NodeHandle & | nh, | ||
const std::string & | materialName, | ||
const std::string & | groupName = Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME |
||
) |
Constructor - with given texture.
Constructor with given external ros texture
Definition at line 239 of file but_projection.cpp.
srs_ui_but::CProjectionData::~CProjectionData | ( | ) | [virtual] |
void srs_ui_but::CProjectionData::clear | ( | void | ) |
Ogre::Material* srs_ui_but::CProjectionData::getMaterialPtr | ( | ) | [inline] |
Get material pointer.
Definition at line 163 of file but_projection.h.
int srs_ui_but::CProjectionData::getTextureHeight | ( | ) | [inline] |
Get texture height.
Definition at line 184 of file but_projection.h.
int srs_ui_but::CProjectionData::getTextureWidth | ( | ) | [inline] |
Get texture width.
Definition at line 181 of file but_projection.h.
void srs_ui_but::CProjectionData::setAspectRatio | ( | Ogre::Real | ar | ) | [inline] |
Set aspect ratio.
Definition at line 208 of file but_projection.h.
void srs_ui_but::CProjectionData::setCameraModel | ( | const sensor_msgs::CameraInfo & | msg | ) | [inline] |
Get camera model reference.
Definition at line 211 of file but_projection.h.
void srs_ui_but::CProjectionData::setDepthTextureTopic | ( | const std::string & | topic | ) |
Set input depth texture topic.
Set ros depth texture topic
Definition at line 358 of file but_projection.cpp.
void srs_ui_but::CProjectionData::setFOVy | ( | Ogre::Radian | fovy | ) | [inline] |
Set FOVy.
Definition at line 205 of file but_projection.h.
void srs_ui_but::CProjectionData::setFrustrumSize | ( | Ogre::Vector2 | size | ) |
void srs_ui_but::CProjectionData::setListenerPtr | ( | CMaterialListener * | ptr | ) | [inline] |
Set listener pointer.
Definition at line 166 of file but_projection.h.
void srs_ui_but::CProjectionData::setProjectorEquation | ( | const Ogre::Vector4 & | e | ) | [inline] |
Set camera plane equation.
Definition at line 199 of file but_projection.h.
void srs_ui_but::CProjectionData::setProjectorOrientation | ( | const Ogre::Quaternion & | q | ) | [inline] |
Set projecting direction.
Definition at line 196 of file but_projection.h.
void srs_ui_but::CProjectionData::setProjectorPosition | ( | const Ogre::Vector3 & | v | ) | [inline] |
Set projector position.
Definition at line 193 of file but_projection.h.
void srs_ui_but::CProjectionData::setRGBTextureTopic | ( | const std::string & | topic | ) |
void srs_ui_but::CProjectionData::setTextureSize | ( | int | width, |
int | height | ||
) |
Set texture size.
void srs_ui_but::CProjectionData::update | ( | void | ) | [inline] |
Updata ros texture.
Definition at line 190 of file but_projection.h.
Update material projection matrix parameter.
Definition at line 382 of file but_projection.cpp.
Ogre::Vector4 srs_ui_but::CProjectionData::m_cameraEquation [protected] |
Computed camera equation parameters.
Definition at line 255 of file but_projection.h.
Ogre::Vector3 srs_ui_but::CProjectionData::m_cameraPosition [protected] |
Camera position.
Definition at line 252 of file but_projection.h.
Ogre::Vector2 srs_ui_but::CProjectionData::m_frustrumSize [protected] |
Old frustrum size.
Definition at line 221 of file but_projection.h.
Ogre::Frustum* srs_ui_but::CProjectionData::m_frustum [protected] |
Frustum node.
Definition at line 237 of file but_projection.h.
boost::mutex srs_ui_but::CProjectionData::m_lock [protected] |
Whole data locking mutex.
Definition at line 246 of file but_projection.h.
Ogre::SceneManager* srs_ui_but::CProjectionData::m_manager [protected] |
Sotred scene manager pointer.
Definition at line 249 of file but_projection.h.
Used material listener.
Definition at line 215 of file but_projection.h.
Ogre::MaterialPtr srs_ui_but::CProjectionData::m_materialPtr [protected] |
Material pointer.
Definition at line 218 of file but_projection.h.
ETextureMode srs_ui_but::CProjectionData::m_mode [protected] |
Current mode.
Definition at line 227 of file but_projection.h.
Ogre::SceneNode* srs_ui_but::CProjectionData::m_projectorNode [protected] |
Projector node.
Definition at line 234 of file but_projection.h.
size_t srs_ui_but::CProjectionData::m_texH [protected] |
Definition at line 224 of file but_projection.h.
Ogre::TextureUnitState* srs_ui_but::CProjectionData::m_texState [protected] |
Texture unit state.
Definition at line 243 of file but_projection.h.
Definition at line 231 of file but_projection.h.
Ros textures.
Definition at line 230 of file but_projection.h.
size_t srs_ui_but::CProjectionData::m_texW [protected] |
Texture sizes.
Definition at line 224 of file but_projection.h.
Transform listener.
Definition at line 240 of file but_projection.h.