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 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::Axisaxis_
float b_
bool backfaceCulling_
bool blending_
bool boundingBoxRendering_
BoundingBoxDrawablebox_
TangoSupportRotation color_camera_to_display_rotation_
rtabmap::TransformcurrentPose_
GLuint depthTexture_
bool doubleTapOn_
cv::Point2f doubleTapPos_
GLuint fboId_
tango_gl::Frustumfrustum_
float g_
tango_gl::GestureCameragesture_camera_
GraphDrawablegraph_
GLuint graph_shader_program_
bool graphVisible_
tango_gl::Gridgrid_
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::Tracetrace_
bool traceVisible_
bool wireFrame_

Detailed Description

Definition at line 46 of file scene.h.


Constructor & Destructor Documentation

Definition at line 71 of file scene.cpp.

Definition at line 108 of file scene.cpp.


Member Function Documentation

void Scene::addCloud ( int  id,
const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &  cloud,
const pcl::IndicesPtr &  indices,
const rtabmap::Transform pose 
)

Definition at line 651 of file scene.cpp.

void Scene::addMesh ( int  id,
const Mesh mesh,
const rtabmap::Transform pose,
bool  createWireframe = false 
)

Definition at line 671 of file scene.cpp.

void Scene::clear ( )

Definition at line 184 of file scene.cpp.

Definition at line 151 of file scene.cpp.

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

Definition at line 778 of file scene.cpp.

Definition at line 82 of file scene.h.

rtabmap::Transform Scene::GetOpenGLCameraPose ( float *  fov = 0) const

Definition at line 586 of file scene.cpp.

float Scene::getPointSize ( ) const [inline]

Definition at line 143 of file scene.h.

int Scene::getViewPortHeight ( ) const [inline]

Definition at line 61 of file scene.h.

int Scene::getViewPortWidth ( ) const [inline]

Definition at line 60 of file scene.h.

bool Scene::hasCloud ( int  id) const

Definition at line 763 of file scene.cpp.

bool Scene::hasMesh ( int  id) const

Definition at line 768 of file scene.cpp.

bool Scene::hasTexture ( int  id) const

Definition at line 773 of file scene.cpp.

Definition at line 114 of file scene.cpp.

bool Scene::isBackfaceCulling ( ) const [inline]

Definition at line 145 of file scene.h.

bool Scene::isBlending ( ) const [inline]

Definition at line 139 of file scene.h.

bool Scene::isLighting ( ) const [inline]

Definition at line 144 of file scene.h.

bool Scene::isMapRendering ( ) const [inline]

Definition at line 140 of file scene.h.

bool Scene::isMeshRendering ( ) const [inline]

Definition at line 141 of file scene.h.

bool Scene::isMeshTexturing ( ) const [inline]

Definition at line 142 of file scene.h.

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

Definition at line 595 of file scene.cpp.

int Scene::Render ( )

Definition at line 362 of file scene.cpp.

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

Definition at line 134 of file scene.h.

void Scene::setBackgroundColor ( float  r,
float  g,
float  b 
) [inline]

Definition at line 136 of file scene.h.

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

Definition at line 126 of file scene.h.

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

Definition at line 561 of file scene.cpp.

Definition at line 557 of file scene.cpp.

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

Definition at line 744 of file scene.cpp.

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

Definition at line 754 of file scene.cpp.

void Scene::setFOV ( float  angle)

Definition at line 568 of file scene.cpp.

void Scene::setGraphVisible ( bool  visible)

Definition at line 635 of file scene.cpp.

void Scene::setGridColor ( float  r,
float  g,
float  b 
)

Definition at line 810 of file scene.cpp.

void Scene::setGridRotation ( float  angleDeg)

Definition at line 576 of file scene.cpp.

void Scene::setGridVisible ( bool  visible)

Definition at line 640 of file scene.cpp.

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

Definition at line 133 of file scene.h.

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

Definition at line 127 of file scene.h.

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

Definition at line 128 of file scene.h.

void Scene::setOrthoCropFactor ( float  value)

Definition at line 572 of file scene.cpp.

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

Definition at line 129 of file scene.h.

void Scene::setScreenRotation ( TangoSupportRotation  colorCameraToDisplayRotation) [inline]

Definition at line 63 of file scene.h.

void Scene::setTraceVisible ( bool  visible)

Definition at line 645 of file scene.cpp.

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

Definition at line 208 of file scene.cpp.

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

Definition at line 135 of file scene.h.

void Scene::updateCloudPolygons ( int  id,
const std::vector< pcl::Vertices > &  polygons 
)

Definition at line 783 of file scene.cpp.

void Scene::updateGains ( int  id,
float  gainR,
float  gainG,
float  gainB 
)

Definition at line 801 of file scene.cpp.

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

Definition at line 616 of file scene.cpp.

void Scene::updateMesh ( int  id,
const Mesh mesh 
)

Definition at line 792 of file scene.cpp.


Member Data Documentation

Definition at line 152 of file scene.h.

float Scene::b_ [private]

Definition at line 190 of file scene.h.

bool Scene::backfaceCulling_ [private]

Definition at line 186 of file scene.h.

bool Scene::blending_ [private]

Definition at line 179 of file scene.h.

Definition at line 184 of file scene.h.

Definition at line 161 of file scene.h.

TangoSupportRotation Scene::color_camera_to_display_rotation_ [private]

Definition at line 170 of file scene.h.

Definition at line 174 of file scene.h.

Definition at line 192 of file scene.h.

bool Scene::doubleTapOn_ [private]

Definition at line 195 of file scene.h.

cv::Point2f Scene::doubleTapPos_ [private]

Definition at line 196 of file scene.h.

GLuint Scene::fboId_ [private]

Definition at line 191 of file scene.h.

Definition at line 155 of file scene.h.

float Scene::g_ [private]

Definition at line 189 of file scene.h.

Definition at line 149 of file scene.h.

Definition at line 165 of file scene.h.

Definition at line 177 of file scene.h.

bool Scene::graphVisible_ [private]

Definition at line 166 of file scene.h.

Definition at line 158 of file scene.h.

bool Scene::gridVisible_ [private]

Definition at line 167 of file scene.h.

bool Scene::lighting_ [private]

Definition at line 185 of file scene.h.

bool Scene::mapRendering_ [private]

Definition at line 180 of file scene.h.

bool Scene::meshRendering_ [private]

Definition at line 181 of file scene.h.

Definition at line 182 of file scene.h.

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

Definition at line 172 of file scene.h.

float Scene::pointSize_ [private]

Definition at line 183 of file scene.h.

float Scene::r_ [private]

Definition at line 188 of file scene.h.

GLsizei Scene::screenHeight_ [private]

Definition at line 194 of file scene.h.

GLsizei Scene::screenWidth_ [private]

Definition at line 193 of file scene.h.

Definition at line 164 of file scene.h.

bool Scene::traceVisible_ [private]

Definition at line 168 of file scene.h.

bool Scene::wireFrame_ [private]

Definition at line 187 of file scene.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:39