Spatial operator. More...
#include <SpatialOperator.h>
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| SpatialOperator (const char *opName) | |
| It initializes a new SpatialOperator. More... | |
| ~SpatialOperator () | |
| Destructor. More... | |
Private Attributes | |
| GeometryOperands * | m_geometryOperands |
| Optional. More... | |
| const char * | m_name |
| Spatial operator name. More... | |
Static Private Attributes | |
| static std::set< const char *, te::common::LessCmp< const char * > > | sm_validSpatialOperators |
| The list of valid spatial operators. More... | |
Accessor methods | |
| const char * | getOpName () const |
| It returns the operator name. More... | |
| void | setGeometryOperands (GeometryOperands *gOps) |
| It sets the geometry operands. More... | |
| const GeometryOperands * | getGeometryOperands () const |
| It returns the geometry operands. More... | |
| static const char * | findOperator (const char *o) |
| It checks if operator 'o' is a valid operator. It returns a pointer to the found operator or NULL otherwise. More... | |
| static void | loadValidOperatorList () |
| It loads the valid spatial operator list. More... | |
| static void | clearValidOperatorList () |
| It clears the valid operator list. More... | |
Spatial operator.
Spatial operator name can be one of the following names:
Definition at line 67 of file SpatialOperator.h.
| te::fe::SpatialOperator::SpatialOperator | ( | const char * | opName | ) |
It initializes a new SpatialOperator.
| The | spatial operator name. |
Definition at line 36 of file SpatialOperator.cpp.
| te::fe::SpatialOperator::~SpatialOperator | ( | ) |
Destructor.
Definition at line 43 of file SpatialOperator.cpp.
|
static |
It clears the valid operator list.
Definition at line 91 of file SpatialOperator.cpp.
Referenced by te::fe::Module::finalize().
|
static |
It checks if operator 'o' is a valid operator. It returns a pointer to the found operator or NULL otherwise.
| o | The operator name we are looking for. |
Definition at line 64 of file SpatialOperator.cpp.
| const te::fe::GeometryOperands * te::fe::SpatialOperator::getGeometryOperands | ( | ) | const |
It returns the geometry operands.
Definition at line 59 of file SpatialOperator.cpp.
| const char * te::fe::SpatialOperator::getOpName | ( | ) | const |
It returns the operator name.
Definition at line 48 of file SpatialOperator.cpp.
|
static |
It loads the valid spatial operator list.
Definition at line 76 of file SpatialOperator.cpp.
References te::fe::Globals::sm_bbox, te::fe::Globals::sm_beyond, te::fe::Globals::sm_contains, te::fe::Globals::sm_crosses, te::fe::Globals::sm_disjoint, te::fe::Globals::sm_dWithin, te::fe::Globals::sm_equals, te::fe::Globals::sm_intersects, te::fe::Globals::sm_overlaps, te::fe::Globals::sm_touches, and te::fe::Globals::sm_within.
Referenced by te::fe::Module::initialize().
| void te::fe::SpatialOperator::setGeometryOperands | ( | GeometryOperands * | gOps | ) |
It sets the geometry operands.
| gOps | The geometry operands. |
Definition at line 53 of file SpatialOperator.cpp.
|
private |
Optional.
Definition at line 138 of file SpatialOperator.h.
|
private |
Spatial operator name.
Definition at line 137 of file SpatialOperator.h.
|
staticprivate |
The list of valid spatial operators.
Definition at line 140 of file SpatialOperator.h.