#include <point_cloud_drawable.h>
|
const pcl::PointXYZ & | aabbMaxModel () const |
|
const pcl::PointXYZ & | aabbMaxWorld () const |
|
const pcl::PointXYZ & | aabbMinModel () const |
|
const pcl::PointXYZ & | aabbMinWorld () const |
|
float | getMinHeight () const |
|
rtabmap::Transform | getPose () const |
|
const glm::mat4 & | getPoseGl () const |
|
bool | hasMesh () const |
|
bool | hasTexture () const |
|
bool | isVisible () const |
|
| PointCloudDrawable (const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const pcl::IndicesPtr &indices, float gainR=1.0f, float gainG=1.0f, float gainB=1.0f) |
|
| PointCloudDrawable (const Mesh &mesh, bool createWireframe=false) |
|
void | Render (const glm::mat4 &projectionMatrix, const glm::mat4 &viewMatrix, bool meshRendering=true, float pointSize=3.0f, bool textureRendering=false, bool lighting=true, float distanceToCamSqr=0.0f, const GLuint &depthTexture=0, int screenWidth=0, int screenHeight=0, float nearClipPlane=0, float farClipPlane=0, bool packDepthToColorChannel=false, bool wireFrame=false) const |
|
void | setGains (float gainR, float gainG, float gainB) |
|
void | setPose (const rtabmap::Transform &pose) |
|
void | setVisible (bool visible) |
|
void | updateCloud (const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const pcl::IndicesPtr &indices) |
|
void | updateMesh (const Mesh &mesh, bool createWireframe=false) |
|
void | updatePolygons (const std::vector< pcl::Vertices > &polygons, const std::vector< pcl::Vertices > &polygonsLowRes=std::vector< pcl::Vertices >(), bool createWireframe=false) |
|
virtual | ~PointCloudDrawable () |
|
Definition at line 42 of file point_cloud_drawable.h.
PointCloudDrawable::PointCloudDrawable |
( |
const pcl::PointCloud< pcl::PointXYZRGB >::Ptr & |
cloud, |
|
|
const pcl::IndicesPtr & |
indices, |
|
|
float |
gainR = 1.0f , |
|
|
float |
gainG = 1.0f , |
|
|
float |
gainB = 1.0f |
|
) |
| |
PointCloudDrawable::PointCloudDrawable |
( |
const Mesh & |
mesh, |
|
|
bool |
createWireframe = false |
|
) |
| |
PointCloudDrawable::~PointCloudDrawable |
( |
| ) |
|
|
virtual |
const pcl::PointXYZ& PointCloudDrawable::aabbMaxModel |
( |
| ) |
const |
|
inline |
const pcl::PointXYZ& PointCloudDrawable::aabbMaxWorld |
( |
| ) |
const |
|
inline |
const pcl::PointXYZ& PointCloudDrawable::aabbMinModel |
( |
| ) |
const |
|
inline |
const pcl::PointXYZ& PointCloudDrawable::aabbMinWorld |
( |
| ) |
const |
|
inline |
void PointCloudDrawable::createShaderPrograms |
( |
| ) |
|
|
static |
float PointCloudDrawable::getMinHeight |
( |
| ) |
const |
|
inline |
const glm::mat4& PointCloudDrawable::getPoseGl |
( |
| ) |
const |
|
inline |
bool PointCloudDrawable::hasMesh |
( |
| ) |
const |
|
inline |
bool PointCloudDrawable::hasTexture |
( |
| ) |
const |
|
inline |
bool PointCloudDrawable::isVisible |
( |
| ) |
const |
|
inline |
void PointCloudDrawable::releaseShaderPrograms |
( |
| ) |
|
|
static |
void PointCloudDrawable::Render |
( |
const glm::mat4 & |
projectionMatrix, |
|
|
const glm::mat4 & |
viewMatrix, |
|
|
bool |
meshRendering = true , |
|
|
float |
pointSize = 3.0f , |
|
|
bool |
textureRendering = false , |
|
|
bool |
lighting = true , |
|
|
float |
distanceToCamSqr = 0.0f , |
|
|
const GLuint & |
depthTexture = 0 , |
|
|
int |
screenWidth = 0 , |
|
|
int |
screenHeight = 0 , |
|
|
float |
nearClipPlane = 0 , |
|
|
float |
farClipPlane = 0 , |
|
|
bool |
packDepthToColorChannel = false , |
|
|
bool |
wireFrame = false |
|
) |
| const |
void PointCloudDrawable::setGains |
( |
float |
gainR, |
|
|
float |
gainG, |
|
|
float |
gainB |
|
) |
| |
|
inline |
void PointCloudDrawable::setVisible |
( |
bool |
visible | ) |
|
|
inline |
template<class PointT >
void PointCloudDrawable::updateAABBMinMax |
( |
const PointT & |
pt, |
|
|
pcl::PointXYZ & |
min, |
|
|
pcl::PointXYZ & |
max |
|
) |
| |
|
inlineprivate |
void PointCloudDrawable::updateCloud |
( |
const pcl::PointCloud< pcl::PointXYZRGB >::Ptr & |
cloud, |
|
|
const pcl::IndicesPtr & |
indices |
|
) |
| |
void PointCloudDrawable::updateMesh |
( |
const Mesh & |
mesh, |
|
|
bool |
createWireframe = false |
|
) |
| |
void PointCloudDrawable::updatePolygons |
( |
const std::vector< pcl::Vertices > & |
polygons, |
|
|
const std::vector< pcl::Vertices > & |
polygonsLowRes = std::vector<pcl::Vertices>() , |
|
|
bool |
createWireframe = false |
|
) |
| |
pcl::PointXYZ PointCloudDrawable::aabbMaxModel_ |
|
private |
pcl::PointXYZ PointCloudDrawable::aabbMaxWorld_ |
|
private |
pcl::PointXYZ PointCloudDrawable::aabbMinModel_ |
|
private |
pcl::PointXYZ PointCloudDrawable::aabbMinWorld_ |
|
private |
float PointCloudDrawable::gainB_ |
|
private |
float PointCloudDrawable::gainG_ |
|
private |
float PointCloudDrawable::gainR_ |
|
private |
bool PointCloudDrawable::hasNormals_ |
|
private |
float PointCloudDrawable::minHeight_ |
|
private |
int PointCloudDrawable::nPoints_ |
|
private |
std::vector<unsigned int> PointCloudDrawable::organizedToDenseIndices_ |
|
private |
std::vector<GLuint> PointCloudDrawable::polygonLines_ |
|
private |
std::vector<GLuint> PointCloudDrawable::polygonLinesLowRes_ |
|
private |
std::vector<GLuint> PointCloudDrawable::polygons_ |
|
private |
std::vector<GLuint> PointCloudDrawable::polygonsLowRes_ |
|
private |
std::vector< GLuint > PointCloudDrawable::shaderPrograms_ |
|
staticprivate |
GLuint PointCloudDrawable::textures_ |
|
private |
GLuint PointCloudDrawable::vertex_buffers_ |
|
private |
std::vector<GLuint> PointCloudDrawable::verticesLowLowRes_ |
|
private |
std::vector<GLuint> PointCloudDrawable::verticesLowRes_ |
|
private |
bool PointCloudDrawable::visible_ |
|
private |
The documentation for this class was generated from the following files: