MeVisLab Toolbox Reference
mlExtractObjectFromList.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_EXTRACT_OBJECT_FROM_LIST_H
14#define ML_EXTRACT_OBJECT_FROM_LIST_H
15
16
19
20// ML includes
21#include "mlModuleIncludes.h"
22#include "mlEngine.h"
23
24
25
26#include "mlBaseInit.h"
27
28
29ML_START_NAMESPACE
30
31
32// ------------------------------------------------------------------
35// ------------------------------------------------------------------
36
40
43{
44public:
45
48
51
56
59
62
64 //BoolField* extractObjectContainerFld; // i'll insert this one on demand...
65
68
71
74
77
78protected:
79/*
80 template <class ITEMTYPE>
81 Base* getItemAt(BaseList* inputList, MLssize_t index, ITEMTYPE* dummyItem)
82 {
83 BaseListTemplate<ITEMTYPE>* list = (BaseListTemplate<ITEMTYPE>*) inputList;
84 return (Base*) &(*list)[index];
85 }
86*/
87
90 void activateAttachments() override;
91
93 void handleNotification(Field* field) override;
94
97
98private:
99
102
104
107
108};
109
110
111ML_END_NAMESPACE
112
113
114#endif // __mlExtractObjectFromList_H
115
Engine(int numInputImages=0, int numOutputImages=0)
Constructor.
Definition mlEngine.h:35
BaseField * outputObjectFld
Base output 0: first item as base object.
void updateOutput()
Compose the input objects to an output BaseList object:
BaseField * inputListFld
Base input:
Base * _outputObject
Extracted object.
BoolField * inputValidFld
input is a valid list object?
~ExtractObjectFromList() override
Destructor.
void activateAttachments() override
ExtractObjectFromList()
Constructor.
void handleNotification(Field *field) override
handle field changes
BoolField * objectValidFld
indicates that the object found is valid (contained base object != NULL)
IntField * inputSizeFld
extract container instead of object if input list type is derived from BaseList
#define ML_MODULE_CLASS_HEADER(className)
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Definition mlBaseInit.h:22