MeVisLab Toolbox Reference
mlPCLClusterStatisticsToInventor.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code author="Wolf Spindler"
3//----------------------------------------------------------------------------------
5
12//----------------------------------------------------------------------------------
13#pragma once
14
16#include <mlPCLModule.h>
17
18#include <list>
19
20// Forwards to internally used classes.
21class SoSwitch;
22
23ML_START_NAMESPACE
24
25// Forwards to internally used classes.
26class ClusterSubGraph;
27
28//----------------------------------------------------------------------------------
30//----------------------------------------------------------------------------------
32{
33public:
36
39
40protected:
42 void activateAttachments() override;
43
45 void handleNotification (Field* field) override;
46
47private:
49 void _clearSubGraphList();
50
52 void _update();
53
55 BaseField *_inputBaseFld;
56
58 SoSwitch *_soMainSwitch;
59
61 SoNodeField *_soMainSwitchOutput;
62
64 BoolField *_showPlaneIntersectionFld;
66 BoolField *_showClusterToPlaneIntersectionLineFld;
68 ColorField *_planeIntersectionColorFld;
70 FloatField *_planeIntersectionSphereRadiusFld;
71
73 BoolField *_showCenterOfGravityFld;
75 ColorField *_centerOfGravityColorFld;
77 FloatField *_centerOfGravitySphereRadiusFld;
78
80 BoolField *_showClusterOrientationLineFld[3];
81
82
86 EnumField *_mapValueToFld;
87
89 std::list<ClusterSubGraph*> _subGraphList;
90
93
96};
97
98ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLPCL_ClusterStatistics_EXPORT
If included by external modules, exported symbols are declared as import symbols.
PCLClusterStatisticsToInventor()
Creates a PCLClusterStatisticsToInventor module with one input connector for a PCLBaseObjectPtr.
void handleNotification(Field *field) override
Handles field changes of the field field.
void activateAttachments() override
Updates internal state after changes of fields without field notifications.
~PCLClusterStatisticsToInventor() override
Destroy all contents and dereferences the internally used inventor nodes.
PCLModule(int numImageInputs=0, int numImageOutputs=0, int numPCLInputs=0, int numPCLOutputs=0, bool createEnumAndNotify=false)
#define ML_MODULE_CLASS_HEADER(className)
ML Module base class for algorithms from the Point Cloud Library (PCL).
#define ML_PCL_TEST_INTERFACE(BASE_OBJECT_NAME)
Implements a dedicated interface for PCL related modules which is required in automatic tests.