Evita  0.16
evFeatureRankerPriorityEntry.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evFeatureRankerPriorityEntry_h
25 #define __evFeatureRankerPriorityEntry_h
26 
27 
28 #include "evDataObject.h"
29 
30 
32 {
33  public:
35  ROI(roi), Priority(0.0)
36  { }
38  ROI(entry.ROI), Priority(entry.Priority)
39  { }
41  { }
42 
43  virtual const evString GetClassName(void) const
44  {
45  return(evString("evFeatureRankerPriorityEntry"));
46  }
47 
48  bool operator < (const evFeatureRankerPriorityEntry &entry) const;
49 
50  void SetPriority(const double priority);
51  double GetPriority(void) const;
52 
53  unsigned int GetROI(void) const;
54 
55  protected:
56 
57  private:
58  unsigned int ROI;
59  double Priority;
60 };
61 
62 
63 inline bool
65  &entry) const
66 {
67  return(this->Priority < entry.Priority);
68 }
69 
70 
71 inline void evFeatureRankerPriorityEntry::SetPriority(const double priority)
72 {
73  this->Priority = priority;
74 }
75 
76 
78 {
79  return(this->Priority);
80 }
81 
82 
83 inline unsigned int evFeatureRankerPriorityEntry::GetROI(void) const
84 {
85  return(this->ROI);
86 }
87 
88 
89 #endif
void SetPriority(const double priority)
Definition: evFeatureRankerPriorityEntry.h:71
bool operator<(const evFeatureRankerPriorityEntry &entry) const
Definition: evFeatureRankerPriorityEntry.h:64
evFeatureRankerPriorityEntry(const evFeatureRankerPriorityEntry &entry)
Definition: evFeatureRankerPriorityEntry.h:37
virtual const evString GetClassName(void) const
Definition: evFeatureRankerPriorityEntry.h:43
Definition: evDataObject.h:31
double Priority
Definition: evFeatureRankerPriorityEntry.h:59
double GetPriority(void) const
Definition: evFeatureRankerPriorityEntry.h:77
unsigned int ROI
Definition: evFeatureRankerPriorityEntry.h:58
virtual ~evFeatureRankerPriorityEntry(void)
Definition: evFeatureRankerPriorityEntry.h:40
unsigned int GetROI(void) const
Definition: evFeatureRankerPriorityEntry.h:83
Definition: evFeatureRankerPriorityEntry.h:31
evFeatureRankerPriorityEntry(const int roi)
Definition: evFeatureRankerPriorityEntry.h:34
Definition: evString.h:30