Itasca C++ Interface
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
itascaxd::IRangeElementReal Class Referenceabstract

Base for a filter that can be represented by a real number filter. More...

#include <irangeelementutil.h>

Public Member Functions

virtual double getLow () const =0
 Returns the low value, see setRange(), setTolerance()
 
virtual double getHigh () const =0
 Returns the high 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, , 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.
 
virtual void setTolerance (const double &val, const double &tol)=0
 
virtual IRangeElementgetIRangeElement ()=0
 Returns a pointer to the IRangeElement object.
 

Public Attributes

shared::Signal< const DVect2 & > valueChanged
 
shared::Signal< bool > toleranceChanged
 

Static Public Attributes

static const TType type_ = 0x4c815b9e
 The type identification number for this class, for use in convert_cast() and convert_getcast().
 

Detailed Description

Base for a filter that can be represented by a real number filter.

Either as a center number plus a tolerance, or by a range of two numbers (low to high).
This class serves a as a base for a number of FilterElements that can be represented by a numeric range.

Member Function Documentation

◆ setTolerance()

virtual void itascaxd::IRangeElementReal::setTolerance ( const double & val,
const double & tol )
pure virtual

Sets the low and high value. wasTolerance() will return true after this call.
The low value is set to val minus tol and the high value is set to val plus tol


The documentation for this class was generated from the following file: