MeVisLab Scripting Reference
MLPCLBaseObjectWrapper Class Reference

#include <mlPCLBaseObjectWrapper.h>

Inherits QObject.

Public Slots

Access to indices.

Returns the number index sets in the vector of index sets.

size_t getNumberOfIndicesInNthIndexVector (size_t nthIndexSet) const
 
size_t getNumberOfComposedIndices () const
 
void resizeVectorOfIndexVectors (size_t numIndexVectors)
 
void resizeNthVectorOfIndexVectors (size_t nthIndexSet, size_t numIndices)
 
void clearVectorOfIndexVectors ()
 
int getIndex (size_t idxVecIdx, size_t idx) const
 
void setIndex (size_t idxVecIdx, size_t idx, int newVal)
 
void setIndexSet (size_t idxVecIdx, PyObject *idxSet)
 

Public Member Functions

 MLPCLBaseObjectWrapper (ML_NAMESPACE::PCLBaseObject *pclBaseObject)
 
 ~MLPCLBaseObjectWrapper () override
 

Detailed Description

This class is an object wrapper for MultiFileVolume objects for Python.

Constructor & Destructor Documentation

◆ MLPCLBaseObjectWrapper()

MLPCLBaseObjectWrapper::MLPCLBaseObjectWrapper ( ML_NAMESPACE::PCLBaseObject *  pclBaseObject)

Constructor.

◆ ~MLPCLBaseObjectWrapper()

MLPCLBaseObjectWrapper::~MLPCLBaseObjectWrapper ( )
override

Destructor.

Member Function Documentation

◆ clearPCLObjectPointers

void MLPCLBaseObjectWrapper::clearPCLObjectPointers ( )
slot

Frees the actual pcl object if there is any.

◆ clearVectorOfIndexVectors

void MLPCLBaseObjectWrapper::clearVectorOfIndexVectors ( )
slot

Clear entire vector of index vectors to have 0 entries.

◆ createEmptyPolygonMesh

void MLPCLBaseObjectWrapper::createEmptyPolygonMesh ( )
slot

Clears any object and creates an empty polygon mesh.

◆ createEmptyXYZINormalPointCloud

void MLPCLBaseObjectWrapper::createEmptyXYZINormalPointCloud ( )
slot

Clears any object and creates an empty XYZINormal point cloud.

◆ createEmptyXYZLNormalPointCloud

void MLPCLBaseObjectWrapper::createEmptyXYZLNormalPointCloud ( )
slot

Clears any object and creates an empty XYZLNormal point cloud.

◆ createEmptyXYZPointCloud

void MLPCLBaseObjectWrapper::createEmptyXYZPointCloud ( )
slot

Clears any object and creates an empty XYZ point cloud.

◆ createEmptyXYZRGBNormalPointCloud

void MLPCLBaseObjectWrapper::createEmptyXYZRGBNormalPointCloud ( )
slot

Clears any object and creates an empty XYZRGBNormal point cloud.

◆ getHeight

size_t MLPCLBaseObjectWrapper::getHeight ( ) const
slot

Returns the height member of the point cloud.

◆ getIndex

int MLPCLBaseObjectWrapper::getIndex ( size_t  idxVecIdx,
size_t  idx 
) const
slot

Returns index idx in nth entry of vector of index; accesses out of range will except.

◆ getIntensityReplacement

float MLPCLBaseObjectWrapper::getIntensityReplacement ( size_t  idx) const
slot

Returns the point member value which is the most appropriate to be considered as intensity; if no appropriate members exists then 0 is returned.

◆ getIsDense

bool MLPCLBaseObjectWrapper::getIsDense ( ) const
slot

Returns the is_dense member of the point cloud.

◆ getIsOrganized

bool MLPCLBaseObjectWrapper::getIsOrganized ( ) const
slot

Returns the return value of isOrganized member function of the point cloud.

◆ getNumberOfComposedIndices

size_t MLPCLBaseObjectWrapper::getNumberOfComposedIndices ( ) const
slot

Return number of total indices in all index sets in the vector of index sets.

◆ getNumberOfIndicesInNthIndexVector

size_t MLPCLBaseObjectWrapper::getNumberOfIndicesInNthIndexVector ( size_t  nthIndexSet) const
slot

Returns the number indices in the nthIndexSet index set of the vector of index sets; accesses out of range will except.

◆ getNumberOfPoints

size_t MLPCLBaseObjectWrapper::getNumberOfPoints ( ) const
slot

Returns the number of points of the point cloud.

◆ getPCLMajorVersion

size_t MLPCLBaseObjectWrapper::getPCLMajorVersion ( ) const
slot

Returns the major PCL version.

◆ getPCLMinorVersion

size_t MLPCLBaseObjectWrapper::getPCLMinorVersion ( ) const
slot

Returns the minor PCL version.

◆ getPCLRevisionVersion

size_t MLPCLBaseObjectWrapper::getPCLRevisionVersion ( ) const
slot

Returns the revision of the PCL version.

◆ getPCLVersionString

QString MLPCLBaseObjectWrapper::getPCLVersionString ( ) const
slot

Returns the PCL version string, for example "1.8.0" or "1.12.1".

◆ getPointMemberX

float MLPCLBaseObjectWrapper::getPointMemberX ( size_t  idx) const
slot

Returns the named member of point at position idx; for members which do not exist 0 is returned.

◆ getWidth

size_t MLPCLBaseObjectWrapper::getWidth ( ) const
slot

Returns the width member of the point cloud.

◆ hasValidPCLObjectPointer

bool MLPCLBaseObjectWrapper::hasValidPCLObjectPointer ( ) const
slot

Returns whether the PCL base object contains any valid pcl object mesh.

◆ hasValidPointCloudPointer

bool MLPCLBaseObjectWrapper::hasValidPointCloudPointer ( ) const
slot

Returns whether the PCL base object contains a valid point cloud.

◆ hasValidPolygonMeshPointer

bool MLPCLBaseObjectWrapper::hasValidPolygonMeshPointer ( ) const
slot

Returns whether the PCL base object contains a valid polygon mesh.

◆ isPolygonMesh

bool MLPCLBaseObjectWrapper::isPolygonMesh ( ) const
slot

Returns true if the object in the wrapper is a polygon mesh, otherwise false.

◆ isXYZINormalPointCloud

bool MLPCLBaseObjectWrapper::isXYZINormalPointCloud ( ) const
slot

Returns true if the point cloud is a XYZINormal point cloud, otherwise false.

◆ isXYZLNormalPointCloud

bool MLPCLBaseObjectWrapper::isXYZLNormalPointCloud ( ) const
slot

Returns true if the point cloud is a XYZLNormal point cloud, otherwise false.

◆ isXYZPointCloud

bool MLPCLBaseObjectWrapper::isXYZPointCloud ( ) const
slot

Returns true if the point cloud is a XYZ point cloud, otherwise false.

◆ isXYZRGBNormalPointCloud

bool MLPCLBaseObjectWrapper::isXYZRGBNormalPointCloud ( ) const
slot

Returns true if the point cloud is a XYZRGBNormal point cloud, otherwise false.

◆ resizeNthVectorOfIndexVectors

void MLPCLBaseObjectWrapper::resizeNthVectorOfIndexVectors ( size_t  nthIndexSet,
size_t  numIndices 
)
slot

Resize nth entry of vector of index vectors to have numIndices entries; resize is performed as std::vector resize and accesses out of range will except.

◆ resizePointCloud

void MLPCLBaseObjectWrapper::resizePointCloud ( size_t  newNumEntries)
slot

Resizes the point cloud to newNumEntries number of points.

◆ resizeVectorOfIndexVectors

void MLPCLBaseObjectWrapper::resizeVectorOfIndexVectors ( size_t  numIndexVectors)
slot

Resize vector of index vectors to have numIndexVectors entries; resize is performed as std::vector resize.

◆ setIndex

void MLPCLBaseObjectWrapper::setIndex ( size_t  idxVecIdx,
size_t  idx,
int  newVal 
)
slot

Set index idx in nth entry of vector of index vectors to newVal; accesses out of range will except.

◆ setIndexSet

void MLPCLBaseObjectWrapper::setIndexSet ( size_t  idxVecIdx,
PyObject *  idxSet 
)
slot

Set the nthIndexSet to the numpy array newIdxSet; idxVecIdx accesses out of range will except.

◆ setIntensityReplacement

void MLPCLBaseObjectWrapper::setIntensityReplacement ( size_t  idx,
float  replVal 
)
slot

Sets the point member value to repl which is the most appropriate to be considered as intensity; if no appropriate members exists then the call is ignored.

◆ setPointMemberX

void MLPCLBaseObjectWrapper::setPointMemberX ( size_t  idx,
float  val 
)
slot

Sets the named member of point at position idx; if member does not exist the call is ignored.

◆ setPointMemberXYZ

void MLPCLBaseObjectWrapper::setPointMemberXYZ ( size_t  idx,
float  x,
float  y,
float  z 
)
slot

Sets multiple members of the specified name of the point at position idx at the same time; if member does not exist the call is ignored.

◆ setPointMemberXYZIntensityReplacement

void MLPCLBaseObjectWrapper::setPointMemberXYZIntensityReplacement ( PyObject *  x,
PyObject *  y,
PyObject *  z,
PyObject *  val 
)
slot

Dedicated version expecting four one dimensional scalar and same sized numpy arrays containing x,y,z, and intensity replacement values.