#include <scene.h>
Public Member Functions | |
| void | addCloud (int id, const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const pcl::IndicesPtr &indices, const rtabmap::Transform &pose) |
| void | addMesh (int id, const Mesh &mesh, const rtabmap::Transform &pose, bool createWireframe=false) |
| void | clear () |
| void | DeleteResources () |
| std::set< int > | getAddedClouds () const |
| rtabmap::Transform | GetCameraPose () const |
| rtabmap::Transform | GetOpenGLCameraPose (float *fov=0) const |
| float | getPointSize () const |
| int | getViewPortHeight () const |
| int | getViewPortWidth () const |
| bool | hasCloud (int id) const |
| bool | hasMesh (int id) const |
| bool | hasTexture (int id) const |
| void | InitGLContent () |
| bool | isBackfaceCulling () const |
| bool | isBlending () const |
| bool | isLighting () const |
| bool | isMapRendering () const |
| bool | isMeshRendering () const |
| bool | isMeshTexturing () const |
| void | OnTouchEvent (int touch_count, tango_gl::GestureCamera::TouchEvent event, float x0, float y0, float x1, float y1) |
| int | Render () |
| Scene () | |
| void | setBackfaceCulling (bool enabled) |
| void | setBackgroundColor (float r, float g, float b) |
| void | setBlending (bool enabled) |
| 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 | setFOV (float angle) |
| void | setGraphVisible (bool visible) |
| void | setGridColor (float r, float g, float b) |
| void | setGridRotation (float angleDeg) |
| void | setGridVisible (bool visible) |
| void | setLighting (bool enabled) |
| void | setMapRendering (bool enabled) |
| void | setMeshRendering (bool enabled, bool withTexture) |
| void | setOrthoCropFactor (float value) |
| void | setPointSize (float size) |
| void | setScreenRotation (TangoSupportRotation colorCameraToDisplayRotation) |
| void | setTraceVisible (bool visible) |
| void | SetupViewPort (int w, int h) |
| void | setWireframe (bool enabled) |
| void | updateCloudPolygons (int id, const std::vector< pcl::Vertices > &polygons) |
| void | updateGains (int id, float gainR, float gainG, float gainB) |
| void | updateGraph (const std::map< int, rtabmap::Transform > &poses, const std::multimap< int, rtabmap::Link > &links) |
| void | updateMesh (int id, const Mesh &mesh) |
| ~Scene () | |
Private Attributes | |
| tango_gl::Axis * | axis_ |
| float | b_ |
| bool | backfaceCulling_ |
| bool | blending_ |
| bool | boundingBoxRendering_ |
| BoundingBoxDrawable * | box_ |
| TangoSupportRotation | color_camera_to_display_rotation_ |
| rtabmap::Transform * | currentPose_ |
| GLuint | depthTexture_ |
| bool | doubleTapOn_ |
| cv::Point2f | doubleTapPos_ |
| GLuint | fboId_ |
| tango_gl::Frustum * | frustum_ |
| float | g_ |
| tango_gl::GestureCamera * | gesture_camera_ |
| GraphDrawable * | graph_ |
| GLuint | graph_shader_program_ |
| bool | graphVisible_ |
| tango_gl::Grid * | grid_ |
| bool | gridVisible_ |
| bool | lighting_ |
| bool | mapRendering_ |
| bool | meshRendering_ |
| bool | meshRenderingTexture_ |
| std::map< int, PointCloudDrawable * > | pointClouds_ |
| float | pointSize_ |
| float | r_ |
| GLsizei | screenHeight_ |
| GLsizei | screenWidth_ |
| tango_gl::Trace * | trace_ |
| bool | traceVisible_ |
| bool | wireFrame_ |
| Scene::Scene | ( | ) |
| Scene::~Scene | ( | ) |
| void Scene::addCloud | ( | int | id, |
| const pcl::PointCloud< pcl::PointXYZRGB >::Ptr & | cloud, | ||
| const pcl::IndicesPtr & | indices, | ||
| const rtabmap::Transform & | pose | ||
| ) |
| void Scene::addMesh | ( | int | id, |
| const Mesh & | mesh, | ||
| const rtabmap::Transform & | pose, | ||
| bool | createWireframe = false |
||
| ) |
| void Scene::clear | ( | ) |
| void Scene::DeleteResources | ( | ) |
| std::set< int > Scene::getAddedClouds | ( | ) | const |
| rtabmap::Transform Scene::GetCameraPose | ( | ) | const [inline] |
| rtabmap::Transform Scene::GetOpenGLCameraPose | ( | float * | fov = 0 | ) | const |
| float Scene::getPointSize | ( | ) | const [inline] |
| int Scene::getViewPortHeight | ( | ) | const [inline] |
| int Scene::getViewPortWidth | ( | ) | const [inline] |
| bool Scene::hasCloud | ( | int | id | ) | const |
| bool Scene::hasMesh | ( | int | id | ) | const |
| bool Scene::hasTexture | ( | int | id | ) | const |
| void Scene::InitGLContent | ( | ) |
| bool Scene::isBackfaceCulling | ( | ) | const [inline] |
| bool Scene::isBlending | ( | ) | const [inline] |
| bool Scene::isLighting | ( | ) | const [inline] |
| bool Scene::isMapRendering | ( | ) | const [inline] |
| bool Scene::isMeshRendering | ( | ) | const [inline] |
| bool Scene::isMeshTexturing | ( | ) | const [inline] |
| void Scene::OnTouchEvent | ( | int | touch_count, |
| tango_gl::GestureCamera::TouchEvent | event, | ||
| float | x0, | ||
| float | y0, | ||
| float | x1, | ||
| float | y1 | ||
| ) |
| int Scene::Render | ( | ) |
| void Scene::setBackfaceCulling | ( | bool | enabled | ) | [inline] |
| void Scene::setBackgroundColor | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) | [inline] |
| void Scene::setBlending | ( | bool | enabled | ) | [inline] |
| void Scene::SetCameraPose | ( | const rtabmap::Transform & | pose | ) |
| void Scene::SetCameraType | ( | tango_gl::GestureCamera::CameraType | camera_type | ) |
| void Scene::setCloudPose | ( | int | id, |
| const rtabmap::Transform & | pose | ||
| ) |
| void Scene::setCloudVisible | ( | int | id, |
| bool | visible | ||
| ) |
| void Scene::setFOV | ( | float | angle | ) |
| void Scene::setGraphVisible | ( | bool | visible | ) |
| void Scene::setGridColor | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
| void Scene::setGridRotation | ( | float | angleDeg | ) |
| void Scene::setGridVisible | ( | bool | visible | ) |
| void Scene::setLighting | ( | bool | enabled | ) | [inline] |
| void Scene::setMapRendering | ( | bool | enabled | ) | [inline] |
| void Scene::setMeshRendering | ( | bool | enabled, |
| bool | withTexture | ||
| ) | [inline] |
| void Scene::setOrthoCropFactor | ( | float | value | ) |
| void Scene::setPointSize | ( | float | size | ) | [inline] |
| void Scene::setScreenRotation | ( | TangoSupportRotation | colorCameraToDisplayRotation | ) | [inline] |
| void Scene::setTraceVisible | ( | bool | visible | ) |
| void Scene::SetupViewPort | ( | int | w, |
| int | h | ||
| ) |
| void Scene::setWireframe | ( | bool | enabled | ) | [inline] |
| void Scene::updateCloudPolygons | ( | int | id, |
| const std::vector< pcl::Vertices > & | polygons | ||
| ) |
| void Scene::updateGains | ( | int | id, |
| float | gainR, | ||
| float | gainG, | ||
| float | gainB | ||
| ) |
| void Scene::updateGraph | ( | const std::map< int, rtabmap::Transform > & | poses, |
| const std::multimap< int, rtabmap::Link > & | links | ||
| ) |
| void Scene::updateMesh | ( | int | id, |
| const Mesh & | mesh | ||
| ) |
tango_gl::Axis* Scene::axis_ [private] |
bool Scene::backfaceCulling_ [private] |
bool Scene::blending_ [private] |
bool Scene::boundingBoxRendering_ [private] |
BoundingBoxDrawable* Scene::box_ [private] |
TangoSupportRotation Scene::color_camera_to_display_rotation_ [private] |
rtabmap::Transform* Scene::currentPose_ [private] |
GLuint Scene::depthTexture_ [private] |
bool Scene::doubleTapOn_ [private] |
cv::Point2f Scene::doubleTapPos_ [private] |
GLuint Scene::fboId_ [private] |
tango_gl::Frustum* Scene::frustum_ [private] |
tango_gl::GestureCamera* Scene::gesture_camera_ [private] |
GraphDrawable* Scene::graph_ [private] |
GLuint Scene::graph_shader_program_ [private] |
bool Scene::graphVisible_ [private] |
tango_gl::Grid* Scene::grid_ [private] |
bool Scene::gridVisible_ [private] |
bool Scene::lighting_ [private] |
bool Scene::mapRendering_ [private] |
bool Scene::meshRendering_ [private] |
bool Scene::meshRenderingTexture_ [private] |
std::map<int, PointCloudDrawable*> Scene::pointClouds_ [private] |
float Scene::pointSize_ [private] |
GLsizei Scene::screenHeight_ [private] |
GLsizei Scene::screenWidth_ [private] |
tango_gl::Trace* Scene::trace_ [private] |
bool Scene::traceVisible_ [private] |
bool Scene::wireFrame_ [private] |