The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cPointData.h
Go to the documentation of this file.
1 /**
2  * @class cPointData
3  * file name: cPointData.h
4  * @author Betti Oesterholz
5  * @date 06.12.2010
6  * @mail webmaster@BioKom.info
7  *
8  * System: C++
9  *
10  * This class represents the point data.
11  * Copyright (C) @c LGPL3 2010 Betti Oesterholz
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU Lesser General Public License (LGPL) as
15  * published by the Free Software Foundation, either version 3 of the
16  * License, or any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public License
24  * along with this program. If not, see <http://www.gnu.org/licenses/>.
25  *
26  *
27  * This class represents the point data for evaluating, if a point
28  * is needed.
29  *
30  */
31 /*
32 History:
33 06.12.2010 Oesterholz created
34 */
35 
36 
37 #ifndef ___N_NEEDED_UNDEROBJECTS_C_POINT_DATA_H__
38 #define ___N_NEEDED_UNDEROBJECTS_C_POINT_DATA_H__
39 
40 
41 #include "version.h"
42 
43 #include "cPositionData.h"
44 
45 #include <list>
46 
47 
48 using namespace std;
49 
50 
51 namespace fib{
52 namespace algorithms{
53 namespace nEvalueFibObject{
54 namespace nNeededUnderobjects{
55 
56 
57 class cPointData{
58 
59 public:
60 
61  /**
62  * A list with the underobjects which contain the position /point for
63  * the position.
64  * The number of the higher underobjects should stand at the front
65  * of the list.
66  *
67  * @see cFibElement::elementPointToObjectPoints()
68  */
69  list<unsignedIntFib> liUnderObjects;
70 
71  /**
72  * A list with the pointers to the position data wher the property is stored.
73  */
74  list<cPositionData *> liPositionData;
75 
76  /**
77  * If true this property is needed, else not.
78  */
80 
81  /**
82  * standradconstructor
83  */
84  cPointData();
85 
86  /**
87  * This method returns if this point is needed.
88  * call evalueIfNeeded() befor using this method
89  * it will return @see bPointNeeded
90  *
91  * @return true if this point is needed, else false
92  */
93  bool isNeeded() const;
94 
95  /**
96  * This method evalues if this point is needed.
97  * it will set @see bPointNeeded
98  *
99  * @return true if this point is needed, else false
100  */
101  bool evalueIfNeeded();
102 
103 
104 };//end class cPointData
105 
106 
107 
108 }//end namespace nNeededUnderobjects
109 }//end namespace nEvalueFibObject
110 }//end namespace algorithms
111 }//end namespace fib
112 
113 
114 
115 #endif //___N_NEEDED_UNDEROBJECTS_C_POINT_DATA_H__