MeVisLab Toolbox Reference
mlMatList.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_MAT_LIST_H
14 #define ML_MAT_LIST_H
15 
16 
18 
19 // ML includes
20 #include "mlBaseInit.h"
21 #include "mlModuleIncludes.h"
22 #include "mlLinearAlgebra.h"
23 
24 
25 
26 #include "mlListBase.h"
27 
28 
29 
30 ML_START_NAMESPACE
31 
32 
33 
34 // ------------------------------------------------------------------
36 // ------------------------------------------------------------------
37 
40 class MLBASEEXPORT Mat3List : public ListTemplate<Matrix3>
41 {
42 public:
43 
45  Mat3List () : ListTemplate<Matrix3>(true) {}
46 
47 protected:
48 
52  std::string itemState(Mat3List::const_iterator it) const override;
53 
55  void setItemState(Mat3List::iterator it, const std::string& state) override;
56 
57 #if ML_DEPRECATED_SINCE(3,5,0)
61  [[nodiscard]]
62  [[deprecated]] char *getItemState(Mat3List::const_iterator it) const override;
63 
66  [[deprecated]] void setItemState (Mat3List::iterator it, const char *state) override;
67 #endif
68 
70 
71 
72 private:
73 
76 
77 
78 };
79 
80 
81 
82 // ------------------------------------------------------------------
84 // ------------------------------------------------------------------
85 
88 class MLBASEEXPORT Mat4List : public ListTemplate<Matrix4>
89 {
90 public:
91 
93  Mat4List () : ListTemplate<Matrix4>(true) {}
94 
95 protected:
96 
100  std::string itemState(Mat4List::const_iterator it) const override;
101 
102  void setItemState(Mat4List::iterator it, const std::string& state) override;
103 
104 #if ML_DEPRECATED_SINCE(3,5,0)
108  [[nodiscard]]
109  [[deprecated]] char *getItemState(Mat4List::const_iterator it) const override;
110 
112  [[deprecated]] void setItemState(Mat4List::iterator it, const char *state) override;
113 #endif
115 
116 
117 private:
118 
121 
122 };
123 
124 
125 ML_END_NAMESPACE
126 
127 
128 #endif // __mlMatList_H
Basic list class template combining properties of ListBase and a vector of the template argument type...
Definition: mlListBase.h:312
virtual void setItemState(typename ListTemplate< T >::iterator, const std::string &)
Initialize the item object from the string state.
Definition: mlListBase.h:448
Base object class Mat3List managing a list of 3x3 matrices.
Definition: mlMatList.h:41
Mat3List()
Default constructor.
Definition: mlMatList.h:45
void setItemState(Mat3List::iterator it, const std::string &state) override
Initialize the item object from the string state.
std::string itemState(Mat3List::const_iterator it) const override
Base object class Mat4List managing a list of 4x4 matrices.
Definition: mlMatList.h:89
Mat4List()
Default constructor.
Definition: mlMatList.h:93
std::string itemState(Mat4List::const_iterator it) const override
void setItemState(Mat4List::iterator it, const std::string &state) override
#define MLBASEEXPORT
defined Header file mlBaseInit.h
Definition: mlBaseInit.h:22
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.