A class for binary spatial operators. More...
#include <BinarySpatialOp.h>
Public Types | |
| typedef void | ReturnType |
| typedef Visitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const=0 |
| It call the visit method from the guest object. | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| BinarySpatialOp (const char *opName=0) | |
| It initializes the BinarySpatialOp. | |
| BinarySpatialOp (const char *opName, PropertyName *p, te::gm::Geometry *g) | |
| It initializes the BinarySpatialOp. | |
| BinarySpatialOp (const char *opName, PropertyName *p, te::gml::Envelope *e) | |
| It initializes the BinarySpatialOp. | |
| virtual | ~BinarySpatialOp () |
| Destructor. | |
Accessor methods | |
Methods used to get or set properties. | |
| const char * | getName () const |
| It returns the operator name. | |
| void | setName (const char *opName) |
| It sets the operator name. | |
Protected Attributes | |
Not Allowed Methods | |
No copy allowed. | |
| const char * | m_name |
| Operator name. | |
Accessor methods | |
Methods used to get or set properties. | |
| PropertyName * | m_property |
| A geometric property. (Mandatory) | |
| te::gm::Geometry * | m_geom |
| A literal geometric value. (It must be omitted if m_envelope is given) | |
| te::gml::Envelope * | m_box |
| A convenient and more compact way of encoding the very common bounding box constraint. (It must be omitted ig m_box is given) | |
| void | setProperty (PropertyName *p) |
| It sets the property name. | |
| PropertyName * | getProperty () const |
| It returns the property name. | |
| void | setGeometry (te::gm::Geometry *g) |
| It sets the geometry. | |
| te::gm::Geometry * | getGeometry () const |
| It returns the geometry. | |
| void | setEnvelope (te::gml::Envelope *e) |
| It sets the envelope. | |
| te::gml::Envelope * | getEnvelope () const |
| It returns the envelope. | |
| AbstractOp * | clone () const |
| It creates a new copy of this object. | |
A class for binary spatial operators.
Binary spatial operators are used to test whether the value of a geometric property, referenced using the name of the property, and a literal geometric value satisfy the spatial relationship implied by the operator.
The following operators are defined in the Filter Encoding specification:
Definition at line 68 of file BinarySpatialOp.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
| te::fe::BinarySpatialOp::BinarySpatialOp | ( | const char * | opName = 0 | ) |
It initializes the BinarySpatialOp.
| opName | The operator name. |
Referenced by te::fe::Contains::Contains(), te::fe::Contains::Contains(), te::fe::Crosses::Crosses(), te::fe::Crosses::Crosses(), te::fe::Disjoint::Disjoint(), te::fe::Disjoint::Disjoint(), te::fe::Equals::Equals(), te::fe::Equals::Equals(), te::fe::Intersects::Intersects(), te::fe::Intersects::Intersects(), te::fe::Overlaps::Overlaps(), te::fe::Overlaps::Overlaps(), te::fe::Touches::Touches(), te::fe::Touches::Touches(), te::fe::Within::Within(), and te::fe::Within::Within().
| te::fe::BinarySpatialOp::BinarySpatialOp | ( | const char * | opName, |
| PropertyName * | p, | ||
| te::gm::Geometry * | g ) |
It initializes the BinarySpatialOp.
| opName | The operator name. |
| p | The property name. |
| g | The geometry value. |
| te::fe::BinarySpatialOp::BinarySpatialOp | ( | const char * | opName, |
| PropertyName * | p, | ||
| te::gml::Envelope * | e ) |
It initializes the BinarySpatialOp.
| opName | The operator name. |
| p | The property name. |
| e | The envelope value. |
|
virtual |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
|
virtual |
It creates a new copy of this object.
Implements te::fe::AbstractOp.
| te::gml::Envelope * te::fe::BinarySpatialOp::getEnvelope | ( | ) | const |
It returns the envelope.
| te::gm::Geometry * te::fe::BinarySpatialOp::getGeometry | ( | ) | const |
It returns the geometry.
|
inlineinherited |
It returns the operator name.
Definition at line 82 of file AbstractOp.h.
References m_name.
| PropertyName * te::fe::BinarySpatialOp::getProperty | ( | ) | const |
It returns the property name.
| void te::fe::BinarySpatialOp::setEnvelope | ( | te::gml::Envelope * | e | ) |
It sets the envelope.
| e | The envelope. |
| void te::fe::BinarySpatialOp::setGeometry | ( | te::gm::Geometry * | g | ) |
It sets the geometry.
| g | The geometry. |
|
inlineinherited |
It sets the operator name.
| opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
References m_name.
| void te::fe::BinarySpatialOp::setProperty | ( | PropertyName * | p | ) |
It sets the property name.
| p | The property name. |
|
protected |
A convenient and more compact way of encoding the very common bounding box constraint. (It must be omitted ig m_box is given)
Definition at line 181 of file BinarySpatialOp.h.
|
protected |
A literal geometric value. (It must be omitted if m_envelope is given)
Definition at line 180 of file BinarySpatialOp.h.
|
protectedinherited |
|
protected |
A geometric property. (Mandatory)
Definition at line 179 of file BinarySpatialOp.h.