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.
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:797
Field to encapsulate a boolean value.
Definition mlFields.h:58
Field to encapsulate a vector of 3 float values representing an (rgb) color with all properties of Ve...
Definition mlFields.h:1441
Field to encapsulate an enumerated value.
Definition mlFields.h:195
Base class for all fields used in the ML.
Definition mlField.h:73
Field to encapsulate a float value.
Definition mlFields.h:415
ML Module class to convert the input pcl classes to Inventor SoVertexProperty, SoPointSet,...
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.
ML Module base class for algorithms from the Point Cloud Library (PCL).
Definition mlPCLModule.h:26
Field to encapsulate a pointer to an SoNode instance of OpenInventor.
Definition mlFields.h:937
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
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.