Itasca C++ Interface
Loading...
Searching...
No Matches
irangeelement.h
Go to the documentation of this file.
1#pragma once
2
3#include "dim.h"
4#include "shared/interface/signal.h"
10namespace itasca {
11 class IThing;
12}
13
14namespace itascaxd {
15 using namespace itasca;
16
18 class IRangeElement : public shared::Connector {
19 public:
24
26 inline static const TType type_ = 0x04c815b9c;
27
28 shared::Signal<bool> notChanged;
29 shared::Signal<bool> byAllChanged;
30 shared::Signal<bool> extentChanged;
31 shared::Signal<const string &> byChanged;
32 shared::Signal<> changed;
33
36 virtual TType getType() const=0;
37
39 virtual string getName() const=0;
40
42 virtual Category getCategory() const=0;
43
47 virtual void copy(const IRangeElement *ire)=0;
48
51 virtual bool isNot() const=0;
54 virtual void setNot(bool b)=0;
55
59 virtual bool isBy() const=0;
62 virtual void setBy(const string &)=0;
65 virtual const string & getByString() const=0;
68 virtual TType getByTType() const=0;
69
72 virtual bool getIsFish() const=0;
73
80 virtual bool isThreadSafe() const=0;
81
84 virtual bool isExtent() const=0;
87 virtual void setExtent(bool b)=0;
88
90 virtual bool isValid() const=0;
91
94 virtual bool isGeometric() const=0;
95
96 virtual StringList getAllByKeywords() const=0;
97
99 virtual void destroy()=0;
100
101 // for compatibility with the Model pane
102 virtual bool isModelPaneCompatible() { return false; } // should this element be used by the Model pane?
103 virtual void setDefaultsForModelPane() { }
104 };
105
106} // namespace itascaxd
107namespace module {
109}
110// EoF
Definition basestring.h:71
Interface to a filter element, which is a member of a IRange..
Definition irangeelement.h:18
virtual bool isExtent() const =0
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition irangeelement.h:26
virtual void destroy()=0
Destroys the filter element.
virtual TType getByTType() const =0
Category
Enumeration specifying the category of the filter element, for UI organization.
Definition irangeelement.h:21
@ PropertyBasedCategory
Filtering is based on object meta-data.
Definition irangeelement.h:22
@ GeometricCategory
Filtering is based on geometry.
Definition irangeelement.h:21
virtual void setExtent(bool b)=0
virtual Category getCategory() const =0
Returns the category of the.
virtual bool getIsFish() const =0
virtual const string & getByString() const =0
virtual TType getType() const =0
virtual bool isBy() const =0
virtual bool isValid() const =0
Returns FALSE if this type of filter element is not valid in the current state.
virtual bool isGeometric() const =0
virtual string getName() const =0
Returns a short String describing the type. Like "Cylinder" or "X Position".
virtual bool isNot() const =0
virtual void setBy(const string &)=0
virtual void copy(const IRangeElement *ire)=0
virtual void setNot(bool b)=0
virtual bool isThreadSafe() const =0
DIM - Provides code portability between 2D and 3D codes.
uint32 TType
class type indicator
Definition basedef.h:47
namespace Itasca
Definition basememory.cpp:14
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:6