Public Member Functions | Public Attributes | Private Attributes | List of all members
Scene Class Reference

#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 addMarker (int id, const rtabmap::Transform &pose)
 
void addMesh (int id, const rtabmap::Mesh &mesh, const rtabmap::Transform &pose, bool createWireframe=false)
 
void clear ()
 
void DeleteResources ()
 
std::set< int > getAddedClouds () const
 
std::set< int > getAddedMarkers () const
 
rtabmap::Transform GetCameraPose () const
 
tango_gl::GestureCamera::CameraType GetCameraType () const
 
rtabmap::Transform GetOpenGLCameraPose (float *fov=0) const
 
float getPointSize () const
 
rtabmap::ScreenRotation getScreenRotation () const
 
int getViewPortHeight () const
 
int getViewPortWidth () const
 
bool hasCloud (int id) const
 
bool hasMarker (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)
 
void removeMarker (int id)
 
int Render (const float *uvsTransformed=0, glm::mat4 arViewMatrix=glm::mat4(0), glm::mat4 arProjectionMatrix=glm::mat4(0), const rtabmap::Mesh &occlusionMesh=rtabmap::Mesh())
 
 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 setFrustumVisible (bool visible)
 
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 setMarkerPose (int id, const rtabmap::Transform &pose)
 
void setMeshRendering (bool enabled, bool withTexture)
 
void setOrthoCropFactor (float value)
 
void setPointSize (float size)
 
void setScreenRotation (rtabmap::ScreenRotation 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 rtabmap::Mesh &mesh)
 
 ~Scene ()
 

Public Attributes

BackgroundRendererbackground_renderer_
 

Private Attributes

tango_gl::Axisaxis_
 
float b_
 
bool backfaceCulling_
 
bool blending_
 
bool boundingBoxRendering_
 
BoundingBoxDrawablebox_
 
rtabmap::ScreenRotation color_camera_to_display_rotation_
 
rtabmap::TransformcurrentPose_
 
GLuint depthTexture_
 
bool doubleTapOn_
 
cv::Point2f doubleTapPos_
 
GLuint fboId_
 
tango_gl::Frustumfrustum_
 
bool frustumVisible_
 
float g_
 
tango_gl::GestureCameragesture_camera_
 
GraphDrawablegraph_
 
GLuint graph_shader_program_
 
bool graphVisible_
 
tango_gl::Gridgrid_
 
bool gridVisible_
 
bool lighting_
 
bool mapRendering_
 
std::map< int, tango_gl::Axis * > markers_
 
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 47 of file scene.h.

Constructor & Destructor Documentation

Scene::Scene ( )

Definition at line 71 of file scene.cpp.

Scene::~Scene ( )

Definition at line 110 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 757 of file scene.cpp.

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

Definition at line 710 of file scene.cpp.

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

Definition at line 777 of file scene.cpp.

void Scene::clear ( )

Definition at line 187 of file scene.cpp.

void Scene::DeleteResources ( )

Definition at line 153 of file scene.cpp.

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

Definition at line 884 of file scene.cpp.

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

Definition at line 752 of file scene.cpp.

rtabmap::Transform Scene::GetCameraPose ( ) const
inline

Definition at line 85 of file scene.h.

tango_gl::GestureCamera::CameraType Scene::GetCameraType ( ) const
inline

Definition at line 82 of file scene.h.

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

Definition at line 640 of file scene.cpp.

float Scene::getPointSize ( ) const
inline

Definition at line 153 of file scene.h.

rtabmap::ScreenRotation Scene::getScreenRotation ( ) const
inline

Definition at line 64 of file scene.h.

int Scene::getViewPortHeight ( ) const
inline

Definition at line 62 of file scene.h.

int Scene::getViewPortWidth ( ) const
inline

Definition at line 61 of file scene.h.

bool Scene::hasCloud ( int  id) const

Definition at line 869 of file scene.cpp.

bool Scene::hasMarker ( int  id) const

Definition at line 739 of file scene.cpp.

bool Scene::hasMesh ( int  id) const

Definition at line 874 of file scene.cpp.

bool Scene::hasTexture ( int  id) const

Definition at line 879 of file scene.cpp.

void Scene::InitGLContent ( )

Definition at line 117 of file scene.cpp.

bool Scene::isBackfaceCulling ( ) const
inline

Definition at line 155 of file scene.h.

bool Scene::isBlending ( ) const
inline

Definition at line 149 of file scene.h.

bool Scene::isLighting ( ) const
inline

Definition at line 154 of file scene.h.

bool Scene::isMapRendering ( ) const
inline

Definition at line 150 of file scene.h.

bool Scene::isMeshRendering ( ) const
inline

Definition at line 151 of file scene.h.

bool Scene::isMeshTexturing ( ) const
inline

Definition at line 152 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 649 of file scene.cpp.

void Scene::removeMarker ( int  id)

Definition at line 743 of file scene.cpp.

int Scene::Render ( const float *  uvsTransformed = 0,
glm::mat4  arViewMatrix = glm::mat4(0),
glm::mat4  arProjectionMatrix = glm::mat4(0),
const rtabmap::Mesh occlusionMesh = rtabmap::Mesh() 
)

Definition at line 370 of file scene.cpp.

void Scene::setBackfaceCulling ( bool  enabled)
inline

Definition at line 144 of file scene.h.

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

Definition at line 146 of file scene.h.

void Scene::setBlending ( bool  enabled)
inline

Definition at line 136 of file scene.h.

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

Definition at line 612 of file scene.cpp.

void Scene::SetCameraType ( tango_gl::GestureCamera::CameraType  camera_type)

Definition at line 608 of file scene.cpp.

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

Definition at line 850 of file scene.cpp.

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

Definition at line 860 of file scene.cpp.

void Scene::setFOV ( float  angle)

Definition at line 622 of file scene.cpp.

void Scene::setFrustumVisible ( bool  visible)

Definition at line 704 of file scene.cpp.

void Scene::setGraphVisible ( bool  visible)

Definition at line 689 of file scene.cpp.

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

Definition at line 916 of file scene.cpp.

void Scene::setGridRotation ( float  angleDeg)

Definition at line 630 of file scene.cpp.

void Scene::setGridVisible ( bool  visible)

Definition at line 694 of file scene.cpp.

void Scene::setLighting ( bool  enabled)
inline

Definition at line 143 of file scene.h.

void Scene::setMapRendering ( bool  enabled)
inline

Definition at line 137 of file scene.h.

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

Definition at line 726 of file scene.cpp.

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

Definition at line 138 of file scene.h.

void Scene::setOrthoCropFactor ( float  value)

Definition at line 626 of file scene.cpp.

void Scene::setPointSize ( float  size)
inline

Definition at line 139 of file scene.h.

void Scene::setScreenRotation ( rtabmap::ScreenRotation  colorCameraToDisplayRotation)
inline

Definition at line 65 of file scene.h.

void Scene::setTraceVisible ( bool  visible)

Definition at line 699 of file scene.cpp.

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

Definition at line 216 of file scene.cpp.

void Scene::setWireframe ( bool  enabled)
inline

Definition at line 145 of file scene.h.

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

Definition at line 889 of file scene.cpp.

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

Definition at line 907 of file scene.cpp.

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

Definition at line 670 of file scene.cpp.

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

Definition at line 898 of file scene.cpp.

Member Data Documentation

tango_gl::Axis* Scene::axis_
private

Definition at line 164 of file scene.h.

float Scene::b_
private

Definition at line 205 of file scene.h.

bool Scene::backfaceCulling_
private

Definition at line 201 of file scene.h.

BackgroundRenderer* Scene::background_renderer_

Definition at line 157 of file scene.h.

bool Scene::blending_
private

Definition at line 194 of file scene.h.

bool Scene::boundingBoxRendering_
private

Definition at line 199 of file scene.h.

BoundingBoxDrawable* Scene::box_
private

Definition at line 173 of file scene.h.

rtabmap::ScreenRotation Scene::color_camera_to_display_rotation_
private

Definition at line 185 of file scene.h.

rtabmap::Transform* Scene::currentPose_
private

Definition at line 189 of file scene.h.

GLuint Scene::depthTexture_
private

Definition at line 207 of file scene.h.

bool Scene::doubleTapOn_
private

Definition at line 210 of file scene.h.

cv::Point2f Scene::doubleTapPos_
private

Definition at line 211 of file scene.h.

GLuint Scene::fboId_
private

Definition at line 206 of file scene.h.

tango_gl::Frustum* Scene::frustum_
private

Definition at line 167 of file scene.h.

bool Scene::frustumVisible_
private

Definition at line 181 of file scene.h.

float Scene::g_
private

Definition at line 204 of file scene.h.

tango_gl::GestureCamera* Scene::gesture_camera_
private

Definition at line 161 of file scene.h.

GraphDrawable* Scene::graph_
private

Definition at line 177 of file scene.h.

GLuint Scene::graph_shader_program_
private

Definition at line 192 of file scene.h.

bool Scene::graphVisible_
private

Definition at line 178 of file scene.h.

tango_gl::Grid* Scene::grid_
private

Definition at line 170 of file scene.h.

bool Scene::gridVisible_
private

Definition at line 179 of file scene.h.

bool Scene::lighting_
private

Definition at line 200 of file scene.h.

bool Scene::mapRendering_
private

Definition at line 195 of file scene.h.

std::map<int, tango_gl::Axis*> Scene::markers_
private

Definition at line 183 of file scene.h.

bool Scene::meshRendering_
private

Definition at line 196 of file scene.h.

bool Scene::meshRenderingTexture_
private

Definition at line 197 of file scene.h.

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

Definition at line 187 of file scene.h.

float Scene::pointSize_
private

Definition at line 198 of file scene.h.

float Scene::r_
private

Definition at line 203 of file scene.h.

GLsizei Scene::screenHeight_
private

Definition at line 209 of file scene.h.

GLsizei Scene::screenWidth_
private

Definition at line 208 of file scene.h.

tango_gl::Trace* Scene::trace_
private

Definition at line 176 of file scene.h.

bool Scene::traceVisible_
private

Definition at line 180 of file scene.h.

bool Scene::wireFrame_
private

Definition at line 202 of file scene.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:08