Public Member Functions | Private Attributes
Scene Class Reference

#include <scene.h>

List of all members.

Public Member Functions

void addCloud (int id, const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const std::vector< pcl::Vertices > &polygons, const rtabmap::Transform &pose, const cv::Mat &image=cv::Mat())
void clear ()
void DeleteResources ()
std::set< int > getAddedClouds () const
rtabmap::Transform GetCameraPose () const
rtabmap::Transform GetOpenGLCameraPose (float *fov) const
bool hasCloud (int id) const
void InitGLContent ()
void OnTouchEvent (int touch_count, tango_gl::GestureCamera::TouchEvent event, float x0, float y0, float x1, float y1)
int Render ()
 Scene ()
void SetCameraPose (const rtabmap::Transform &pose)
void SetCameraType (tango_gl::GestureCamera::CameraType camera_type)
void setCloudPose (int id, const rtabmap::Transform &pose)
void setCloudVisible (int id, bool visible)
void setGraphVisible (bool visible)
void setMapRendering (bool enabled)
void setMeshRendering (bool enabled)
void setPointSize (float size)
void setTraceVisible (bool visible)
void SetupViewPort (int w, int h)
void updateGraph (const std::map< int, rtabmap::Transform > &poses, const std::multimap< int, rtabmap::Link > &links)
 ~Scene ()

Private Attributes

tango_gl::Axisaxis_
GLuint cloud_shader_program_
rtabmap::TransformcurrentPose_
tango_gl::Frustumfrustum_
tango_gl::GestureCameragesture_camera_
GraphDrawablegraph_
GLuint graph_shader_program_
bool graphVisible_
tango_gl::Gridgrid_
bool mapRendering_
bool meshRendering_
std::map< int,
PointCloudDrawable * > 
pointClouds_
float pointSize_
GLuint texture_mesh_shader_program_
tango_gl::Tracetrace_
bool traceVisible_

Detailed Description

Definition at line 45 of file scene.h.


Constructor & Destructor Documentation

Definition at line 104 of file scene.cpp.

Definition at line 121 of file scene.cpp.


Member Function Documentation

void Scene::addCloud ( int  id,
const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &  cloud,
const std::vector< pcl::Vertices > &  polygons,
const rtabmap::Transform pose,
const cv::Mat &  image = cv::Mat() 
)

Definition at line 409 of file scene.cpp.

void Scene::clear ( )

Definition at line 199 of file scene.cpp.

Definition at line 168 of file scene.cpp.

std::set< int > Scene::getAddedClouds ( ) const

Definition at line 461 of file scene.cpp.

Definition at line 77 of file scene.h.

Definition at line 365 of file scene.cpp.

bool Scene::hasCloud ( int  id) const

Definition at line 456 of file scene.cpp.

Definition at line 124 of file scene.cpp.

void Scene::OnTouchEvent ( int  touch_count,
tango_gl::GestureCamera::TouchEvent  event,
float  x0,
float  y0,
float  x1,
float  y1 
)

Definition at line 375 of file scene.cpp.

int Scene::Render ( )

Definition at line 230 of file scene.cpp.

void Scene::SetCameraPose ( const rtabmap::Transform pose)

Definition at line 358 of file scene.cpp.

Definition at line 354 of file scene.cpp.

void Scene::setCloudPose ( int  id,
const rtabmap::Transform pose 
)

Definition at line 437 of file scene.cpp.

void Scene::setCloudVisible ( int  id,
bool  visible 
)

Definition at line 447 of file scene.cpp.

void Scene::setGraphVisible ( bool  visible)

Definition at line 398 of file scene.cpp.

void Scene::setMapRendering ( bool  enabled) [inline]

Definition at line 111 of file scene.h.

void Scene::setMeshRendering ( bool  enabled) [inline]

Definition at line 112 of file scene.h.

void Scene::setPointSize ( float  size) [inline]

Definition at line 113 of file scene.h.

void Scene::setTraceVisible ( bool  visible)

Definition at line 403 of file scene.cpp.

void Scene::SetupViewPort ( int  w,
int  h 
)

Definition at line 219 of file scene.cpp.

void Scene::updateGraph ( const std::map< int, rtabmap::Transform > &  poses,
const std::multimap< int, rtabmap::Link > &  links 
)

Definition at line 382 of file scene.cpp.


Member Data Documentation

Definition at line 120 of file scene.h.

Definition at line 139 of file scene.h.

Definition at line 136 of file scene.h.

Definition at line 123 of file scene.h.

Definition at line 117 of file scene.h.

Definition at line 130 of file scene.h.

Definition at line 141 of file scene.h.

bool Scene::graphVisible_ [private]

Definition at line 131 of file scene.h.

Definition at line 126 of file scene.h.

bool Scene::mapRendering_ [private]

Definition at line 143 of file scene.h.

bool Scene::meshRendering_ [private]

Definition at line 144 of file scene.h.

std::map<int, PointCloudDrawable*> Scene::pointClouds_ [private]

Definition at line 134 of file scene.h.

float Scene::pointSize_ [private]

Definition at line 145 of file scene.h.

Definition at line 140 of file scene.h.

Definition at line 129 of file scene.h.

bool Scene::traceVisible_ [private]

Definition at line 132 of file scene.h.


The documentation for this class was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:31