Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
irangeelementutil.h
1 #pragma once
2 
3 #include "base/src/baseqt.h"
4 #include "module/interface/dim.h"
6 
7 namespace itascaxd {
9 
14  class IRangeElementReal { // name = "real"
15  public:
17  inline static const TType type_ = 0x4c815b9e;
18 
20  virtual double getLow() const=0;
22  virtual double getHigh() const=0;
24  virtual bool wasTolerance() const=0;
26  virtual void setRange(const double &low,const double &high)=0;
29  virtual void setTolerance(const double &val,const double &tol)=0;
31  virtual IRangeElement *getIRangeElement()=0;
32 
33  // SIGNALS
35  virtual void valueChanged(const DVect2 &range)=0;
37  virtual void toleranceChanged(bool wasTolerance)=0;
38  };
39 
41 
43  class IRangeElementUIntPtr { // name = "uintptr"
45  public:
47  inline static const TType type_ = 0x4c815ba0;
48 
50  virtual quint64 getFirst() const=0;
52  virtual quint64 getSecond() const=0;
54  virtual void setRange(const quint64 &first,const quint64 &second)=0;
55 
56  // SIGNALS
58  virtual void firstChanged(const quint64 &first)=0;
60  virtual void secondChanged(const quint64 &second)=0;
61  };
62 
64 
68  class IRangeElementUIntPtrList { // name = "uintptrlist"
70  public:
72  inline static const TType type_ = 0x4c815ba2;
73 
75  virtual qint64 getNumberOfEntries(bool onOnly=false) const=0;
77  virtual QVector<quint64> getAllEntries(bool onOnly=false) const=0;
79  virtual bool getEntryState(const quint64 &entry) const=0;
85  virtual bool addEntry(const quint64 &entry,bool state=true)=0;
87  virtual void setEntryState(const quint64 &entry,bool state)=0;
88 
89  // SIGNALS
91  virtual void entryAdded(const quint64 &entry,bool state,const qint64 &numberOfEntries)=0;
93  virtual void entryStateChanged(const quint64 &entry,bool state,const qint64 &numberOfEntries)=0;
96  virtual void allChanged()=0;
97  };
98 
100 
104  class IRangeElementNameList {
106  public:
108  inline static const TType type_ = 0x04c815ba4;
109 
111  virtual qint64 getNumberOfEntries(bool onOnly=false) const=0;
113  virtual QStringList getAllEntries(bool onOnly=false) const=0;
115  virtual bool getEntryState(const QString &entry) const=0;
117  virtual bool addEntry(const QString &entry,bool state=true)=0;
118  virtual void setEntryState(const QString &entry,bool state)=0;
120  virtual void changeEntryState(const QString &entry,bool state)=0;
121 
122  // SIGNALS
124  virtual void entryAdded(const QString &entry,bool state,const qint64 &numberOfEntries)=0;
126  virtual void entryStateChanged(const QString &entry,bool state,const qint64 &numberOfEntries)=0;
129  virtual void allChanged()=0;
130  };
131 
133 
139  public:
141  inline static const TType type_ = 0x04c815ba5;
142 
144  virtual qint64 getNumberOfEntries(bool onOnly=false) const=0;
146  virtual QStringList getAllEntries(bool onOnly=false) const=0;
148  virtual bool getEntryState(const QString &entry) const=0;
150  virtual bool addEntry(const QString &entry,bool state=true)=0;
152  virtual void setEntryState(const QString &entry,bool state)=0;
154  virtual bool removeEntryIfOff(const QString &entry)=0;
156  virtual void removeAllOffEntries()=0;
158  virtual bool removeEntry(const QString &entry)=0;
159 
160  // SIGNALS
162  virtual void entryAdded(const QString &entry,bool state,const qint64 &numberOfEntries)=0;
164  virtual void entryRemoved(const QString &entry,const qint64 &numberOfEntries)=0;
166  virtual void entryStateChanged(const QString &entry,bool state,const qint64 &numberOfEntries)=0;
169  virtual void allChanged()=0;
170  };
171 
172 } // namespace itascaxd
173 // EoF
virtual quint64 getSecond() const =0
Returns the second number in the range, see setRange()
virtual void entryAdded(const QString &entry, bool state, const qint64 &numberOfEntries)=0
Signal emitted when a new entry was added, see addEntry()
Interface to a filter element, which is a member of a IRange.
virtual QStringList getAllEntries(bool onOnly=false) const =0
Returns a list of all entries. If onOnly is true will return a list of all entries whose state is tru...
virtual void firstChanged(const quint64 &first)=0
Signal emitted when the first number in the range has changed, see setRange()
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementutil.h:108
virtual bool getEntryState(const QString &entry) const =0
Returns the state of the entry, or false if the entry does not exist.
virtual bool removeEntry(const QString &entry)=0
Remove entry regardless.
DIM - Provides code portability between 2D and 3D codes.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementutil.h:47
virtual void secondChanged(const quint64 &second)=0
Signal emitted when the second number in the range has changed, see setRange()
Interface to to a Range Element that selects integers between two values.
Definition: irangeelementutil.h:44
virtual IRangeElement * getIRangeElement()=0
Returns a pointer to the IRangeElement object.
virtual void removeAllOffEntries()=0
Removes all OFF entries from the list.
Interface to a filter element, which is a member of a IRange..
Definition: irangeelement.h:18
virtual bool getEntryState(const QString &entry) const =0
Returns the state of the entry, or false if the entry does not exist.
virtual qint64 getNumberOfEntries(bool onOnly=false) const =0
Returns the total number of entries. If onOnly is true it will return the number of entries whose sta...
virtual void entryStateChanged(const QString &entry, bool state, const qint64 &numberOfEntries)=0
Signal emitted when a state of an existing entry has changed, see addEntry(), changeEntryState()
virtual void toleranceChanged(bool wasTolerance)=0
Signal emittted when the tolerance status has changed, see setTolerance, setRange.
virtual qint64 getNumberOfEntries(bool onOnly=false) const =0
Returns the total number of entries. If onOnly is true it will return the number of entries whose sta...
virtual void entryStateChanged(const QString &entry, bool state, const qint64 &numberOfEntries)=0
Signal emitted when a state of an existing entry has changed, see addEntry(), changeEntryState()
virtual void entryAdded(const quint64 &entry, bool state, const qint64 &numberOfEntries)=0
Signal emitted when a new entry was added, see addEntry()
virtual void changeEntryState(const QString &entry, bool state)=0
Sets the state of entry. Ignored if entry has not already been added.
unsigned int TType
class type indicator
Definition: basedef.h:41
virtual bool addEntry(const quint64 &entry, bool state=true)=0
virtual double getLow() const =0
Returns the low value, see setRange(), setTolerance()
virtual void setTolerance(const double &val, const double &tol)=0
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementutil.h:17
virtual QStringList getAllEntries(bool onOnly=false) const =0
Returns a list of all entries. If onOnly is true will return a list of all entries whose state is tru...
virtual void setEntryState(const quint64 &entry, bool state)=0
Sets the state of entry. Ignored if entry has not already been added.
virtual void setRange(const quint64 &first, const quint64 &second)=0
sets the range
virtual void entryRemoved(const QString &entry, const qint64 &numberOfEntries)=0
Signal emitted when an entry is removed.
virtual bool wasTolerance() const =0
Returns if a tolerance was used to compute the low and high value from a given center value,...
Itasca Library standard namespace, specific to 2D or 3D.
Definition: icontactmodule.h:4
virtual void setRange(const double &low, const double &high)=0
Sets the low and high value. wasTolerance() will return false after this call.
Interface to to a Range Element that matches string to a list of stored strings.
Definition: irangeelementutil.h:138
virtual bool removeEntryIfOff(const QString &entry)=0
Removes entry from list if it is present and off. Returns TRUE if it does so, false if not.
virtual bool getEntryState(const quint64 &entry) const =0
Returns the state of the entry, or false if the entry does not exist.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementutil.h:141
Interface to to a Range Element that matches an integer to a list of stored integers.
Definition: irangeelementutil.h:69
virtual bool addEntry(const QString &entry, bool state=true)=0
Adds an entry to the list. .
virtual void setEntryState(const QString &entry, bool state)=0
Sets the state of entry. Ignored if entry has not already been added.
virtual quint64 getFirst() const =0
Returns the first number in the range, see setRange()
virtual void valueChanged(const DVect2 &range)=0
Signal emittted when either low or high value have changed, see setLow, setHigh.
virtual QVector< quint64 > getAllEntries(bool onOnly=false) const =0
Returns a list of all entries. If onOnly is true will return a list of all entries whose state is tru...
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementutil.h:72
virtual qint64 getNumberOfEntries(bool onOnly=false) const =0
Returns the total number of entries. If onOnly is true it will return the number of entries whose sta...
virtual bool addEntry(const QString &entry, bool state=true)=0
Adds an entry to the list. .
virtual void entryStateChanged(const quint64 &entry, bool state, const qint64 &numberOfEntries)=0
Signal emitted when a state of an existing entry has changed, see addEntry(), setEntryState()
All default base headers if Qt is being used.
virtual double getHigh() const =0
Returns the high value, see setRange(), setTolerance()
virtual void entryAdded(const QString &entry, bool state, const qint64 &numberOfEntries)=0
Signal emitted when a new entry was added, see addEntry()
Base for a filter that can be represented by a real number filter.
Definition: irangeelementutil.h:14
Interface to to a Range Element that matches string to a list of stored strings.
Definition: irangeelementutil.h:105