MeVisLab Toolbox Reference
mlDiscList.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_DISC_LIST_H
14 #define ML_DISC_LIST_H
15 
16 
18 
19 //ML-includes
20 #include "mlBaseInit.h"
21 #include <mlModuleIncludes.h>
22 
23 #include <mlLinearAlgebra.h>
24 #include <mlDisc.h>
25 
26 
27 ML_START_NAMESPACE
28 
29 // ------------------------------------------------------------------
31 // ------------------------------------------------------------------
32 class MLBASEEXPORT DiscList : public Base {
33 
34 public:
35  DiscList() {};
36  ~DiscList() override {};
37 
39  MLssize_t getNum() const;
40 
42  void getValue(MLssize_t index, Disc& obj) const;
43 
45  Disc getValue(MLssize_t index) const;
46 
48  Disc* getPtr(MLssize_t index = -1);
49 
51  void addValue(const Disc& obj);
52 
54  void setValue(MLssize_t index, const Disc& obj);
55 
57  void removeValue(MLssize_t index = -1);
58 
60  void clear();
61 
63  void print(const char* txt);
64 
65 private:
66 
69 
71  std::vector<Disc> objects;
72 };
73 
74 
75 ML_END_NAMESPACE
76 
77 
78 #endif // __mlDiscList_H
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Definition: mlBase.h:62
Base object class DiscList.
Definition: mlDiscList.h:32
void addValue(const Disc &obj)
add Disc at end of list
void print(const char *txt)
debug print
void getValue(MLssize_t index, Disc &obj) const
get Disc at given index
Disc * getPtr(MLssize_t index=-1)
get Pointer to Disc at given index, if index is -1, last element is given
void clear()
clear all entries
MLssize_t getNum() const
returns the number of contained Discs
Disc getValue(MLssize_t index) const
get Disc at given index
void setValue(MLssize_t index, const Disc &obj)
set value at index
~DiscList() override
Definition: mlDiscList.h:36
void removeValue(MLssize_t index=-1)
remove Disc from list, if index is -1, last element is removed
Class to handle the geometry primitive "Disc" consisting of a center, a normal and a radius.
Definition: mlDisc.h:34
#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.
SSIZE_T MLssize_t
The signed ML size type which is a signed 32 bit size_t on 32 bit platforms and 64 bit one on 64 bit ...
Definition: mlTypeDefs.h:654