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
cOp2DFibFindSimilarPartAreaN.h
Go to the documentation of this file.
1 /**
2  * @file cOp2DFibFindSimilarPartAreaN
3  * file name: cOp2DFibFindSimilarPartAreaN.h
4  * @author Betti Oesterholz
5  * @date 02.11.2010
6  * @mail webmaster@BioKom.info
7  *
8  * System: C++
9  *
10  * This Operator evalues the areas with the same properties and combines
11  * n to an complex fib -underobject.
12  * Copyright (C) @c GPL3 2010 Betti Oesterholz
13  *
14  * This program is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License (GPL) as
16  * published by the Free Software Foundation, either version 3 of the
17  * License, or any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program. If not, see <http://www.gnu.org/licenses/>.
26  *
27  *
28  * Evalues the areas with the same properties and combines n random to
29  * an complex fib -underobject.
30  * This is done with the help of area- and functionelements.
31  * From the founded area some of the smales subareas will be removed.
32  * In an last step it removes from the created fib -object all underobjects
33  * which point properties are overwritten and so not necessary.
34  * The number n is random choosen betwean 1 and log( Datapoints ) .
35  * Smaler numbers will be prevered.
36  *
37  * @see cOperationFib
38  * @see cOperation
39  * @see cEnviroment
40  */
41 /*
42 History:
43 02.11.2010 Oesterholz created
44 */
45 
46 
47 #ifndef ___C_OP_2D_FIB_FIND_SIMILAR_PART_AREA_N_H__
48 #define ___C_OP_2D_FIB_FIND_SIMILAR_PART_AREA_N_H__
49 
50 #include "version.h"
51 
52 #include "cOperationFib.h"
53 
54 #include <string>
55 
56 
57 namespace enviroment{
58 namespace fib{
59 
60 
62 public:
63 
64  /**
65  * The standardconstructor for the operation.
66  * It will create the operation, but won't start it.
67  *
68  * @param operationId the identifer for the operation
69  */
71 
72  /**
73  * Destructor of the class cOp2DFibFindSimilarPartAreaN.
74  */
76 
77  /**
78  * This method creats a new instance of this operator.
79  * Beware: You have to delete the instance after usage.
80  *
81  * @param operationId the identifer for the operation
82  * @return a pointer to a new instance of this operation
83  */
84  virtual cOp2DFibFindSimilarPartAreaN * createInstance( const cOperationIdentifier & operationId ) const;
85 
86  /**
87  * This method runs the operation.
88  * It will wait till the operation is ended befor returning.
89  * Beware: If overwriten call setIsRunning( false ), when the operation
90  * is done.
91  *
92  * @see start()
93  * @see stop()
94  * @see setIsRunning()
95  * @return true if the operation was started
96  */
97  virtual bool run();
98 
99  /**
100  * @return the (class-)name of the operation
101  */
102  virtual std::string getName() const;
103 
104  /**
105  * This function compares two property elemente pairs.
106  * It is used for ordering property elemente pairs.
107  *
108  * @param paPropertyElement1 the first property elemente pair to compare
109  * @param paPropertyElement2 the second property elemente pair to compare
110  * @return true if the propertietype of the first pair is lower or,
111  * if the propertietyps are equal, if the second element number of the
112  * first pair is lower
113  */
114  static bool lowerPropertyElement(
115  const pair< cTypeProperty, unsignedIntFib > & paPropertyElement1,
116  const pair< cTypeProperty, unsignedIntFib > & paPropertyElement2 );
117 
118 protected:
119 
120  /**
121  * @param dValue the value for which to check, if it is 0
122  * @return true if the given value is 0, else false
123  */
124  static bool isNull( const double & dValue );
125 
126 };//end class cOp2DFibFindSimilarPartAreaN
127 
128 
129 };//end namespace fib
130 };//end namespace enviroment
131 
132 #endif //___C_OP_2D_FIB_FIND_SIMILAR_PART_AREA_N_H__
133 
134 
135 
136 
137 
138 
139