#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 |
bool | isWireframe () 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(), bool mapping=false) |
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 | |
BackgroundRenderer * | background_renderer_ |
Private Attributes | |
tango_gl::Axis * | axis_ |
float | b_ |
bool | backfaceCulling_ |
bool | blending_ |
bool | boundingBoxRendering_ |
BoundingBoxDrawable * | box_ |
rtabmap::ScreenRotation | color_camera_to_display_rotation_ |
rtabmap::Transform * | currentPose_ |
GLuint | depthTexture_ |
bool | doubleTapOn_ |
cv::Point2f | doubleTapPos_ |
GLuint | fboId_ |
tango_gl::Frustum * | frustum_ |
bool | frustumVisible_ |
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_ |
std::map< int, tango_gl::Axis * > | markers_ |
bool | meshRendering_ |
bool | meshRenderingTexture_ |
std::map< int, PointCloudDrawable * > | pointClouds_ |
float | pointSize_ |
float | r_ |
GLuint | rboId_ |
GLsizei | screenHeight_ |
GLsizei | screenWidth_ |
tango_gl::Trace * | trace_ |
bool | traceVisible_ |
bool | wireFrame_ |
void Scene::addCloud | ( | int | id, |
const pcl::PointCloud< pcl::PointXYZRGB >::Ptr & | cloud, | ||
const pcl::IndicesPtr & | indices, | ||
const rtabmap::Transform & | pose | ||
) |
void Scene::addMarker | ( | int | id, |
const rtabmap::Transform & | pose | ||
) |
void Scene::addMesh | ( | int | id, |
const rtabmap::Mesh & | mesh, | ||
const rtabmap::Transform & | pose, | ||
bool | createWireframe = false |
||
) |
|
inline |
|
inline |
rtabmap::Transform Scene::GetOpenGLCameraPose | ( | float * | fov = 0 | ) | const |
|
inline |
void Scene::OnTouchEvent | ( | int | touch_count, |
tango_gl::GestureCamera::TouchEvent | event, | ||
float | x0, | ||
float | y0, | ||
float | x1, | ||
float | y1 | ||
) |
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() , |
||
bool | mapping = false |
||
) |
|
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::setMarkerPose | ( | int | id, |
const rtabmap::Transform & | pose | ||
) |
|
inline |
|
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 rtabmap::Mesh & | mesh | ||
) |
|
private |
BackgroundRenderer* Scene::background_renderer_ |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |