17 #ifndef TANGO_POINT_CLOUD_SCENE_H_ 18 #define TANGO_POINT_CLOUD_SCENE_H_ 45 #include <pcl/point_cloud.h> 46 #include <pcl/point_types.h> 100 float x0,
float y0,
float x1,
float y1);
103 const std::map<int, rtabmap::Transform> & poses,
104 const std::multimap<int, rtabmap::Link> & links);
119 const pcl::PointCloud<pcl::PointXYZRGB>::Ptr & cloud,
120 const pcl::IndicesPtr & indices,
126 bool createWireframe =
false);
136 void updateGains(
int id,
float gainR,
float gainG,
float gainB);
218 #endif // TANGO_POINT_CLOUD_SCENE_H_
void addMesh(int id, const rtabmap::Mesh &mesh, const rtabmap::Transform &pose, bool createWireframe=false)
void setGridVisible(bool visible)
BoundingBoxDrawable * box_
void updateCloudPolygons(int id, const std::vector< pcl::Vertices > &polygons)
void OnTouchEvent(int touch_count, tango_gl::GestureCamera::TouchEvent event, float x0, float y0, float x1, float y1)
void SetupViewPort(int w, int h)
bool hasMarker(int id) const
std::set< int > getAddedMarkers() const
CameraType GetCameraType() const
void setCloudPose(int id, const rtabmap::Transform &pose)
std::map< int, PointCloudDrawable * > pointClouds_
int getViewPortWidth() const
bool hasTexture(int id) const
void setGridColor(float r, float g, float b)
void setWireframe(bool enabled)
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)
std::set< int > getAddedClouds() const
void setBackfaceCulling(bool enabled)
bool isMeshRendering() const
void setScreenRotation(rtabmap::ScreenRotation colorCameraToDisplayRotation)
bool isMapRendering() const
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
int getViewPortHeight() const
BackgroundRenderer * background_renderer_
bool meshRenderingTexture_
void setMeshRendering(bool enabled, bool withTexture)
tango_gl::Frustum * frustum_
void removeMarker(int id)
void setLighting(bool enabled)
void setOrthoCropFactor(float value)
void updateGains(int id, float gainR, float gainG, float gainB)
std::map< int, tango_gl::Axis * > markers_
rtabmap::Transform GetCameraPose() const
void SetCameraPose(const rtabmap::Transform &pose)
void setMapRendering(bool enabled)
void setBlending(bool enabled)
void addCloud(int id, const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const pcl::IndicesPtr &indices, const rtabmap::Transform &pose)
void setBackgroundColor(float r, float g, float b)
void setCloudVisible(int id, bool visible)
void updateGraph(const std::map< int, rtabmap::Transform > &poses, const std::multimap< int, rtabmap::Link > &links)
void setPointSize(float size)
bool isBackfaceCulling() const
bool hasCloud(int id) const
cv::Point2f doubleTapPos_
rtabmap::ScreenRotation color_camera_to_display_rotation_
void addMarker(int id, const rtabmap::Transform &pose)
void setFrustumVisible(bool visible)
void setTraceVisible(bool visible)
void SetCameraType(tango_gl::GestureCamera::CameraType camera_type)
float getPointSize() const
void updateMesh(int id, const rtabmap::Mesh &mesh)
void setGraphVisible(bool visible)
bool hasMesh(int id) const
void setMarkerPose(int id, const rtabmap::Transform &pose)
bool isMeshTexturing() const
bool boundingBoxRendering_
tango_gl::GestureCamera::CameraType GetCameraType() const
void setGridRotation(float angleDeg)
rtabmap::ScreenRotation getScreenRotation() const
tango_gl::GestureCamera * gesture_camera_
rtabmap::Transform GetOpenGLCameraPose(float *fov=0) const
rtabmap::Transform * currentPose_
GLuint graph_shader_program_