MeVisLab Toolbox Reference
|
A container with pointers from the PCL (Point Cloud Library) passed in BaseObjects between PCL modules. More...
#include <mlPCLObjectPtrsContainer.h>
Public Member Functions | |
MLPCLObjectPtrsContainer () | |
Default constructor initializing all pointers to defaults. | |
void | clearPCLObjectPointers () |
Sets all pointers to nullptr. | |
bool | hasValidPointCloudPointer () const |
Returns true if at least one of all point cloud pointers is valid. | |
bool | hasValidPolygonMeshPointer () const |
Returns true if at least one of all polygon mesh pointers is valid. | |
bool | hasValidPCLObjectPointer () const |
Returns true if at least one of all PCL object pointer is valid. | |
std::string | getScalarMemberValueAsString (size_t pointIdx, size_t memberIdx) const |
From the first valid pointer return the memberIdx'th scalar member as string, regardless of its types or whether it is stored in a structures, arrays or single member. | |
std::string | getScalarMemberNameAsString (size_t memberIdx) const |
From the first valid member pointer the memberIdx'th scalar member is returned as string, regardless of its types or whether it is stored in a structures, arrays or single member. | |
MLPCLObjectPtrsContainer (MLPointCloudXYZPtr pcPtr) | |
Specific constructor for the given object type setting all other objects to nullptr. | |
MLPCLObjectPtrsContainer (MLPointCloudXYZLNormalPtr pcPtr) | |
MLPCLObjectPtrsContainer (MLPointCloudXYZRGBNormalPtr pcPtr) | |
MLPCLObjectPtrsContainer (MLPointCloudXYZINormalPtr pcPtr) | |
MLPCLObjectPtrsContainer (MLPolygonMeshPtr pMeshPtr) | |
void | setPCLObjectPointer (MLPointCloudXYZPtr pcPtr) |
Setting a new container object clearing all other ones. | |
void | setPCLObjectPointer (MLPointCloudXYZLNormalPtr pcPtr) |
void | setPCLObjectPointer (MLPointCloudXYZRGBNormalPtr pcPtr) |
void | setPCLObjectPointer (MLPointCloudXYZINormalPtr pcPtr) |
void | setPCLObjectPointer (MLPolygonMeshPtr pMeshPtr) |
void | getPCLObjectPointer (MLPointCloudXYZPtr &pcPtr) const |
Method returning the cloud pointer matching the given pointer type. | |
void | getPCLObjectPointer (MLPointCloudXYZLNormalPtr &pcPtr) const |
void | getPCLObjectPointer (MLPointCloudXYZRGBNormalPtr &pcPtr) const |
void | getPCLObjectPointer (MLPointCloudXYZINormalPtr &pcPtr) const |
Public Attributes | |
Supported and precompiled point cloud and mesh types. | |
MLPointCloudXYZPtr | pointCloudXYZ |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], data[3] should usually be 1, see pcl::PointXYZ for details. | |
MLPointCloudXYZLNormalPtr | pointCloudXYZLNormal |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], and a normal of four floats normal[0]-normal[2], data_n[3], or alternatively data_n[0]-data_n[3], a float curvature, an uint32 label; data[3] should usually be set to 1 and data_n[3] to 0, see pcl::PointXYZLNormal for details. | |
MLPointCloudXYZRGBNormalPtr | pointCloudXYZRGBNormal |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], and a normal of four floats normal[0]-normal[2], data_n[3], or alternatively data_n[0]-data_n[3], and an rgba uint32 packed color value (alternatively and deprecated as float rgb); a float curvature, data[3] should usually be set to 1 and data_n[3] to 0, see pcl::PointXYZRGBNormal for details. | |
MLPointCloudXYZINormalPtr | pointCloudXYZINormal |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], and a normal of four floats normal[0]-normal[2], data_n[3], or alternatively data_n[0]-data_n[3], a float curvature, and an intensity float value; data[3] should usually be set to 1 and data_n[3] to 0, see pcl::PointXYZINormal for details. | |
MLPolygonMeshPtr | polygonMesh |
Pointer to a pcl::Polygon mesh, see pcl::Polygon for details. | |
A container with pointers from the PCL (Point Cloud Library) passed in BaseObjects between PCL modules.
Definition at line 21 of file mlPCLObjectPtrsContainer.h.
ml::MLPCLObjectPtrsContainer::MLPCLObjectPtrsContainer | ( | ) |
Default constructor initializing all pointers to defaults.
ml::MLPCLObjectPtrsContainer::MLPCLObjectPtrsContainer | ( | MLPointCloudXYZPtr | pcPtr | ) |
Specific constructor for the given object type setting all other objects to nullptr.
ml::MLPCLObjectPtrsContainer::MLPCLObjectPtrsContainer | ( | MLPointCloudXYZLNormalPtr | pcPtr | ) |
ml::MLPCLObjectPtrsContainer::MLPCLObjectPtrsContainer | ( | MLPointCloudXYZRGBNormalPtr | pcPtr | ) |
ml::MLPCLObjectPtrsContainer::MLPCLObjectPtrsContainer | ( | MLPointCloudXYZINormalPtr | pcPtr | ) |
ml::MLPCLObjectPtrsContainer::MLPCLObjectPtrsContainer | ( | MLPolygonMeshPtr | pMeshPtr | ) |
void ml::MLPCLObjectPtrsContainer::clearPCLObjectPointers | ( | ) |
Sets all pointers to nullptr.
|
inline |
Definition at line 87 of file mlPCLObjectPtrsContainer.h.
References mlrange_cast().
|
inline |
Definition at line 85 of file mlPCLObjectPtrsContainer.h.
References mlrange_cast().
|
inline |
Method returning the cloud pointer matching the given pointer type.
Definition at line 84 of file mlPCLObjectPtrsContainer.h.
References mlrange_cast().
|
inline |
Definition at line 86 of file mlPCLObjectPtrsContainer.h.
References mlrange_cast().
std::string ml::MLPCLObjectPtrsContainer::getScalarMemberNameAsString | ( | size_t | memberIdx | ) | const |
From the first valid member pointer the memberIdx'th scalar member is returned as string, regardless of its types or whether it is stored in a structures, arrays or single member.
Invalid indexes are allowed and lead to the return of an empty string.
std::string ml::MLPCLObjectPtrsContainer::getScalarMemberValueAsString | ( | size_t | pointIdx, |
size_t | memberIdx ) const |
From the first valid pointer return the memberIdx'th scalar member as string, regardless of its types or whether it is stored in a structures, arrays or single member.
Invalid indexes are allowed and lead to the return of an empty string.
bool ml::MLPCLObjectPtrsContainer::hasValidPCLObjectPointer | ( | ) | const |
Returns true if at least one of all PCL object pointer is valid.
bool ml::MLPCLObjectPtrsContainer::hasValidPointCloudPointer | ( | ) | const |
Returns true if at least one of all point cloud pointers is valid.
bool ml::MLPCLObjectPtrsContainer::hasValidPolygonMeshPointer | ( | ) | const |
Returns true if at least one of all polygon mesh pointers is valid.
void ml::MLPCLObjectPtrsContainer::setPCLObjectPointer | ( | MLPointCloudXYZINormalPtr | pcPtr | ) |
void ml::MLPCLObjectPtrsContainer::setPCLObjectPointer | ( | MLPointCloudXYZLNormalPtr | pcPtr | ) |
void ml::MLPCLObjectPtrsContainer::setPCLObjectPointer | ( | MLPointCloudXYZPtr | pcPtr | ) |
Setting a new container object clearing all other ones.
void ml::MLPCLObjectPtrsContainer::setPCLObjectPointer | ( | MLPointCloudXYZRGBNormalPtr | pcPtr | ) |
void ml::MLPCLObjectPtrsContainer::setPCLObjectPointer | ( | MLPolygonMeshPtr | pMeshPtr | ) |
MLPointCloudXYZPtr ml::MLPCLObjectPtrsContainer::pointCloudXYZ |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], data[3] should usually be 1, see pcl::PointXYZ for details.
Definition at line 28 of file mlPCLObjectPtrsContainer.h.
MLPointCloudXYZINormalPtr ml::MLPCLObjectPtrsContainer::pointCloudXYZINormal |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], and a normal of four floats normal[0]-normal[2], data_n[3], or alternatively data_n[0]-data_n[3], a float curvature, and an intensity float value; data[3] should usually be set to 1 and data_n[3] to 0, see pcl::PointXYZINormal for details.
Definition at line 52 of file mlPCLObjectPtrsContainer.h.
MLPointCloudXYZLNormalPtr ml::MLPCLObjectPtrsContainer::pointCloudXYZLNormal |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], and a normal of four floats normal[0]-normal[2], data_n[3], or alternatively data_n[0]-data_n[3], a float curvature, an uint32 label; data[3] should usually be set to 1 and data_n[3] to 0, see pcl::PointXYZLNormal for details.
Definition at line 36 of file mlPCLObjectPtrsContainer.h.
MLPointCloudXYZRGBNormalPtr ml::MLPCLObjectPtrsContainer::pointCloudXYZRGBNormal |
Cloud with four floats x,y,z,data[3], or alternatively data[0]-data[3], and a normal of four floats normal[0]-normal[2], data_n[3], or alternatively data_n[0]-data_n[3], and an rgba uint32 packed color value (alternatively and deprecated as float rgb); a float curvature, data[3] should usually be set to 1 and data_n[3] to 0, see pcl::PointXYZRGBNormal for details.
Definition at line 44 of file mlPCLObjectPtrsContainer.h.
MLPolygonMeshPtr ml::MLPCLObjectPtrsContainer::polygonMesh |
Pointer to a pcl::Polygon mesh, see pcl::Polygon for details.
Definition at line 55 of file mlPCLObjectPtrsContainer.h.