36 PCLModule(
int numImageInputs=0,
int numImageOutputs=0,
37 int numPCLInputs=0,
int numPCLOutputs=0,
38 bool createEnumAndNotify=
false);
80 template <
typename PCL_OBJECT_PTR_TYPE>
82 PCL_OBJECT_PTR_TYPE outputPCLObjectPtr)
157 std::vector<BaseField*> _pclInputConnectors;
160 std::vector<BaseField*> _pclOutputConnectors;
Project global and OS specific declarations.
#define MLPCLSUPPORT_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Module(int numInputImages, int numOutputImages)
MLPCLObjectPtrsContainer & getPCLObjectPtrsContainer()
Returns the internal MLPCLObjectPtrsContainer container as modifiable object to get access to the poi...
BaseField & getInputPCLBaseObjectField(size_t inIdx) const
Returns the base field of the idx'th input connector if it exists, accessing non existing indexes is ...
bool _needsUpdate(Field *field) const
If _updateModeFld and _updateFld settings with field require an update then true is returned,...
MLPCLObjectPtrsContainer getInputPCLObjectPtrsContainer(size_t inIdx)
NotifyField * getUpdateFieldPointer() const
Returns the update field if it has been created in the constructor, otherwise nullptr is returned.
~PCLModule() override
Destructor.
PCLBaseObject * getInputPCLBaseObject(size_t inIdx) const
const StringField & getStatusStringField() const
Returns a constant reference to the status string field, for example to compare to it in handle Notif...
size_t getNumInputPCLBaseObjectFields() const
Returns the number of PCLBaseObject input connectors.
BaseField & getOutputPCLBaseObjectField(size_t inIdx) const
Returns the base field of the idx'th output connector if it exists, accessing non existing indexes is...
bool hasValidInputPointCloudPointer(size_t inIdx)
PCLModule(int numImageInputs=0, int numImageOutputs=0, int numPCLInputs=0, int numPCLOutputs=0, bool createEnumAndNotify=false)
std::vector< PCLBaseObjectPtr > getNonNullConnectedInputPCLBaseObjects() const
Returns a vector of all connected non nullptr PCLBaseObjects.
void setStatusString(const std::string &statusStr)
Sets a status string in the status field.
void clearOutputPCLPointers(size_t outIdx)
void handleNotification(Field *field) override
Handles field changes of the field field.
size_t getNumOutputPCLBaseObjectFields() const
Returns the number of PCLBaseObject output connectors.
void setOutputPCLObject(size_t outIdx, PCL_OBJECT_PTR_TYPE outputPCLObjectPtr)
std::string getStatusString() const
Sets a status string in the status field.
MLPCLObjectPtrsContainer getOutputPCLObjectPtrsContainer(size_t inIdx)
virtual void _updateConnectionStatus()
void setOutputPCLBaseObject(size_t outIdx, PCLBaseObjectPtr baseObjPtr)
Sets the PCL base object of the idx'th output connector if it exists, using non existing indexes is n...
EnumField * getUpdateModeFieldPointer() const
Returns the update mode field if it has been created in the constructor, otherwise nullptr is returne...
PCLBaseObject * getOutputPCLBaseObject(size_t inIdx) const
Returns the PCL base object of the idx'th output connector if it exists, accessing non existing index...
bool hasValidInputPolygonMeshPointer(size_t inIdx)
#define ML_MODULE_CLASS_HEADER(className)
A container with pointers from the PCL (Point Cloud Library) passed in BaseObjects between PCL module...
#define ML_PCL_TEST_INTERFACE_NO_OVERRIDE(BASE_OBJECT_NAME)
Implements a dedicated interface for PCL related modules which is required in automatic tests.
pcl::PointCloud< pcl::PointXYZ >::Ptr MLPointCloudXYZPtr
The basic pointer type of a point cloud type used in the PCL MeVisLab binding.
A container with pointers from the PCL (Point Cloud Library) passed in BaseObjects between PCL module...
void setPCLObjectPointer(MLPointCloudXYZPtr pcPtr)