Distance buffer operator. More...
#include <DistanceBuffer.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. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| DistanceBuffer (const char *opName=0) | |
| It initializes the DistanceBuffer operator. More... | |
| DistanceBuffer (const char *opName, PropertyName *p, te::gm::Geometry *g, te::common::Distance *d) | |
| It initializes the DistanceBuffer operator. More... | |
| virtual | ~DistanceBuffer () |
| Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
| void | setProperty (PropertyName *p) |
| It sets property name. More... | |
| PropertyName * | getProperty () const |
| It returns the property name. More... | |
| void | setGeometry (te::gm::Geometry *g) |
| It sets the geometry. More... | |
| te::gm::Geometry * | getGeometry () const |
| It returns the geometry. More... | |
| void | setDistance (te::common::Distance *d) |
| It sets the distance. More... | |
| te::common::Distance * | getDistance () const |
| It returns the distance. More... | |
| SpatialOp * | clone () const |
| It creates a new copy of this object. More... | |
Accessor methods | |
Methods used to get or set properties. | |
| const char * | getName () const |
| It returns the operator name. More... | |
| void | setName (const char *opName) |
| It sets the operator name. More... | |
Protected Attributes | |
| te::common::Distance * | m_d |
| Distance. (mandatory) More... | |
| te::gm::Geometry * | m_geom |
| Geometry literal. (Mandatory, if m_property is not specified) More... | |
| const char * | m_name |
| Operator name. More... | |
| PropertyName * | m_property |
| A geometric property. (Mandatory, if m_geom is not specified) More... | |
Distance buffer operator.
The following operators are defined in the Filter Encoding specification:
Definition at line 59 of file DistanceBuffer.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
| te::fe::DistanceBuffer::DistanceBuffer | ( | const char * | opName = 0 | ) |
It initializes the DistanceBuffer operator.
| opName | The operator name. |
Definition at line 35 of file DistanceBuffer.cpp.
Referenced by clone().
| te::fe::DistanceBuffer::DistanceBuffer | ( | const char * | opName, |
| PropertyName * | p, | ||
| te::gm::Geometry * | g, | ||
| te::common::Distance * | d | ||
| ) |
It initializes the DistanceBuffer operator.
| opName | The operator name. |
Definition at line 43 of file DistanceBuffer.cpp.
|
virtual |
Destructor.
Definition at line 54 of file DistanceBuffer.cpp.
References m_d, m_geom, and m_property.
|
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.
Definition at line 94 of file DistanceBuffer.cpp.
References te::dt::AbstractData::clone(), te::common::Distance::clone(), DistanceBuffer(), te::fe::PropertyName::getName(), m_d, m_geom, te::fe::AbstractOp::m_name, m_property, setDistance(), setGeometry(), te::fe::AbstractOp::setName(), and setProperty().
| te::common::Distance * te::fe::DistanceBuffer::getDistance | ( | ) | const |
It returns the distance.
Definition at line 89 of file DistanceBuffer.cpp.
References m_d.
Referenced by te::map::QueryEncoder::visit().
| te::gm::Geometry * te::fe::DistanceBuffer::getGeometry | ( | ) | const |
It returns the geometry.
Definition at line 78 of file DistanceBuffer.cpp.
References m_geom.
Referenced by te::map::QueryEncoder::visit().
|
inlineinherited |
It returns the operator name.
Definition at line 82 of file AbstractOp.h.
Referenced by GetQualifiedName(), te::map::QueryEncoder::visit(), and te::fe::serialize::AbstractOp::write().
| te::fe::PropertyName * te::fe::DistanceBuffer::getProperty | ( | ) | const |
It returns the property name.
Definition at line 67 of file DistanceBuffer.cpp.
References m_property.
Referenced by DistanceBufferOpWriter(), and te::map::QueryEncoder::visit().
| void te::fe::DistanceBuffer::setDistance | ( | te::common::Distance * | d | ) |
It sets the distance.
| d | The distance. |
Definition at line 83 of file DistanceBuffer.cpp.
Referenced by clone().
| void te::fe::DistanceBuffer::setGeometry | ( | te::gm::Geometry * | g | ) |
It sets the geometry.
| g | The geometry. |
Definition at line 72 of file DistanceBuffer.cpp.
References m_geom.
Referenced by clone().
|
inlineinherited |
It sets the operator name.
| opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
Referenced by te::fe::ComparisonOp::clone(), te::fe::SpatialOp::clone(), te::fe::LogicOp::clone(), te::fe::PropertyIsNull::clone(), te::fe::UnaryLogicOp::clone(), te::fe::PropertyIsBetween::clone(), te::fe::BinaryLogicOp::clone(), clone(), te::fe::BinaryComparisonOp::clone(), and te::fe::BinarySpatialOp::clone().
| void te::fe::DistanceBuffer::setProperty | ( | PropertyName * | p | ) |
It sets property name.
| p | The property name. |
Definition at line 61 of file DistanceBuffer.cpp.
References m_property, and p.
Referenced by clone().
|
protected |
Distance. (mandatory)
Definition at line 159 of file DistanceBuffer.h.
Referenced by clone(), getDistance(), setDistance(), and ~DistanceBuffer().
|
protected |
Geometry literal. (Mandatory, if m_property is not specified)
Definition at line 158 of file DistanceBuffer.h.
Referenced by clone(), getGeometry(), setGeometry(), and ~DistanceBuffer().
|
protectedinherited |
Operator name.
Definition at line 123 of file AbstractOp.h.
Referenced by te::fe::ComparisonOp::clone(), te::fe::SpatialOp::clone(), te::fe::LogicOp::clone(), te::fe::PropertyIsNull::clone(), te::fe::UnaryLogicOp::clone(), te::fe::PropertyIsBetween::clone(), te::fe::BinaryLogicOp::clone(), clone(), te::fe::BinaryComparisonOp::clone(), and te::fe::BinarySpatialOp::clone().
|
protected |
A geometric property. (Mandatory, if m_geom is not specified)
Definition at line 157 of file DistanceBuffer.h.
Referenced by clone(), getProperty(), setProperty(), and ~DistanceBuffer().