Itasca C++ Interface
Loading...
Searching...
No Matches
irangeelementutil.h
1#pragma once
2
3#include "base/src/baseqt.h"
6
7namespace itascaxd {
9
14 class IRangeElementReal { // name = "real"
15 public:
17 inline static const TType type_ = 0x4c815b9e;
18
19 shared::Signal<const DVect2 &> valueChanged;
20 shared::Signal<bool> toleranceChanged;
21
23 virtual double getLow() const=0;
25 virtual double getHigh() const=0;
27 virtual bool wasTolerance() const=0;
29 virtual void setRange(const double &low,const double &high)=0;
32 virtual void setTolerance(const double &val,const double &tol)=0;
35 };
36
38
41 class IRangeElementUIntPtr { // name = "uintptr"
42 public:
44 inline static const TType type_ = 0x4c815ba0;
45
46 shared::Signal<uint64> firstChanged;
47 shared::Signal<uint64> secondChanged;
48
50 virtual uint64 getFirst() const=0;
52 virtual uint64 getSecond() const=0;
54 virtual void setRange(const uint64 &first,const uint64 &second)=0;
55 };
56
58
63 class IRangeElementUIntPtrList { // name = "uintptrlist"
64 public:
66 inline static const TType type_ = 0x4c815ba2;
67
68 shared::Signal<uint64, bool, uint64> entryAdded; // entry, state, numberOfEntries
69 shared::Signal<uint64, bool, uint64> entryStateChanged; // entry, state, numberOfEntries
70 shared::Signal<> allChanged;
71
73 virtual qint64 getNumberOfEntries(bool onOnly=false) const=0;
75 virtual QVector<uint64> getAllEntries(bool onOnly=false) const=0;
77 virtual bool getEntryState(const uint64 &entry) const=0;
83 virtual bool addEntry(const uint64 &entry,bool state=true)=0;
85 virtual void setEntryState(const uint64 &entry,bool state)=0;
86 };
87
89
95 public:
97 inline static const TType type_ = 0x04c815ba4;
98
99 shared::Signal<const QString &, bool, uint64> entryAdded; // entry, state, numberOfEntries
100 shared::Signal<const QString &, bool, uint64> entryStateChanged; // entry, state, numberOfEntries
101 shared::Signal<> allChanged;
102
104 virtual qint64 getNumberOfEntries(bool onOnly=false) const=0;
106 virtual QStringList getAllEntries(bool onOnly=false) const=0;
108 virtual bool getEntryState(const QString &entry) const=0;
110 virtual bool addEntry(const QString &entry,bool state=true)=0;
111 virtual void setEntryState(const QString &entry,bool state)=0;
113 virtual void changeEntryState(const QString &entry,bool state)=0;
114 };
115
117
123 public:
125 inline static const TType type_ = 0x04c815ba5;
126
127 shared::Signal<const QString &, bool, uint64> entryAdded; // entry, state, numberOfEntries
128 shared::Signal<const QString &, uint64> entryRemoved; // entry, numberOfEntries
129 shared::Signal<const QString &, bool, uint64> entryStateChanged; // entry, state, numberOfEntries
130 shared::Signal<> allChanged;
131
133 virtual qint64 getNumberOfEntries(bool onOnly=false) const=0;
135 virtual QStringList getAllEntries(bool onOnly=false) const=0;
137 virtual bool getEntryState(const QString &entry) const=0;
139 virtual bool addEntry(const QString &entry,bool state=true)=0;
141 virtual void setEntryState(const QString &entry,bool state)=0;
143 virtual bool removeEntryIfOff(const QString &entry)=0;
145 virtual void removeAllOffEntries()=0;
147 virtual bool removeEntry(const QString &entry)=0;
148 };
149
150} // namespace itascaxd
151// EoF
All default base headers if Qt is being used.
Interface to a filter element, which is a member of a IRange..
Definition irangeelement.h:19
Interface to to a Range Element that matches string to a list of stored strings.
Definition irangeelementutil.h:122
virtual void setEntryState(const QString &entry, bool state)=0
Sets the state of entry. Ignored if entry has not already been added.
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...
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition irangeelementutil.h:125
virtual void removeAllOffEntries()=0
Removes all OFF entries from the list.
virtual bool getEntryState(const QString &entry) const =0
Returns the state of the entry, or false if the entry does not exist.
virtual bool addEntry(const QString &entry, bool state=true)=0
Adds an entry to the list. .
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 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 removeEntry(const QString &entry)=0
Remove entry regardless.
Interface to to a Range Element that matches string to a list of stored strings.
Definition irangeelementutil.h:94
virtual bool addEntry(const QString &entry, bool state=true)=0
Adds an entry to the list. .
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...
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition irangeelementutil.h:97
virtual bool getEntryState(const QString &entry) const =0
Returns the state of the entry, or false if the entry does not exist.
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 changeEntryState(const QString &entry, bool state)=0
Sets the state of entry. Ignored if entry has not already been added.
Base for a filter that can be represented by a real number filter.
Definition irangeelementutil.h:14
virtual IRangeElement * getIRangeElement()=0
Returns a pointer to the IRangeElement object.
virtual void setTolerance(const double &val, const double &tol)=0
virtual double getHigh() const =0
Returns the high value, see setRange(), setTolerance()
virtual void setRange(const double &low, const double &high)=0
Sets the low and high value. wasTolerance() will return false after this call.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition irangeelementutil.h:17
virtual double getLow() const =0
Returns the low value, see setRange(), setTolerance()
virtual bool wasTolerance() const =0
Returns if a tolerance was used to compute the low and high value from a given center value,...
Interface to to a Range Element that selects integers between two values.
Definition irangeelementutil.h:41
virtual uint64 getFirst() const =0
Returns the first number in the range, see setRange()
virtual void setRange(const uint64 &first, const uint64 &second)=0
sets the range
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition irangeelementutil.h:44
virtual uint64 getSecond() const =0
Returns the second number in the range, see setRange()
Interface to to a Range Element that matches an integer to a list of stored integers.
Definition irangeelementutil.h:63
virtual void setEntryState(const uint64 &entry, bool state)=0
Sets the state of entry. Ignored if entry has not already been added.
virtual bool addEntry(const uint64 &entry, bool state=true)=0
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 getEntryState(const uint64 &entry) const =0
Returns the state of the entry, or false if the entry does not exist.
virtual QVector< uint64 > 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:66
DIM - Provides code portability between 2D and 3D codes.
uint32 TType
class type indicator
Definition basedef.h:46
Interface to a filter element, which is a member of a IRange.
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4