te::gm::Coord2D Struct Reference

An utility struct for representing 2D coordinates. More...

#include <Coord2D.h>

Public Member Functions

 Coord2D ()
 Constructor. More...
 
 Coord2D (const double &xx, const double &yy)
 Constructor. More...
 
 Coord2D (const Coord2D &rhs)
 Copy constructor. More...
 
double getX () const
 It returns the x-coordinate. More...
 
double getY () const
 It returns the y-coordinate. More...
 
bool operator< (const Coord2D &rhs) const
 Lexicographic compare (x-y). More...
 
bool operator== (const Coord2D &rhs) const
 It compares if two coordinates have the same exact values. More...
 

Public Attributes

double x
 x-coordinate. More...
 
double y
 y-coordinate. More...
 

Detailed Description

An utility struct for representing 2D coordinates.

Definition at line 40 of file Coord2D.h.

Constructor & Destructor Documentation

te::gm::Coord2D::Coord2D ( )
inline

Constructor.

Definition at line 43 of file Coord2D.h.

te::gm::Coord2D::Coord2D ( const double &  xx,
const double &  yy 
)
inline

Constructor.

Parameters
xxThe x-coordinate.
yyThe y-coordinate.

Definition at line 51 of file Coord2D.h.

te::gm::Coord2D::Coord2D ( const Coord2D rhs)
inline

Copy constructor.

Parameters
rhsThe right-hand-side instance.

Definition at line 62 of file Coord2D.h.

Member Function Documentation

double te::gm::Coord2D::getX ( ) const
inline

It returns the x-coordinate.

Definition at line 102 of file Coord2D.h.

References x.

Referenced by te::rst::Raster::trim().

double te::gm::Coord2D::getY ( ) const
inline

It returns the y-coordinate.

Definition at line 108 of file Coord2D.h.

References y.

Referenced by te::rst::Raster::trim().

bool te::gm::Coord2D::operator< ( const Coord2D rhs) const
inline

Lexicographic compare (x-y).

Definition at line 87 of file Coord2D.h.

References x, and y.

bool te::gm::Coord2D::operator== ( const Coord2D rhs) const
inline

It compares if two coordinates have the same exact values.

Parameters
rhsThe right-hand-side coordinate.
Returns
True if they have exact the same values.

Definition at line 75 of file Coord2D.h.

References x, and y.

Member Data Documentation

double te::gm::Coord2D::x

x-coordinate.

Definition at line 113 of file Coord2D.h.

Referenced by te::graph::AddRasterAttribute::AddRasterAttribute(), te::qt::widgets::MapDisplay::adjustExtent(), te::layout::AlignItems::alignCenterHorizontal(), te::qt::widgets::Zoom::applyZoom(), te::graph::LDDGraphBuilder::build(), te::map::AbstractLayerRenderer::buildChart(), te::map::QueryLayerRenderer::buildChart(), te::sa::CalculateDistance(), te::qt::widgets::ZoomInMapDisplayWidget::calculateExtent(), te::layout::GridGeodesicModel::calculateGaps(), te::layout::Utils::calculatePlanarZone(), te::rst::Grid::computeExtent(), te::gm::SecondDegreePolynomialGT::computeParameters(), te::gm::ThirdDegreePolynomialGT::computeParameters(), te::gm::RSTGT::computeParameters(), te::gm::ProjectiveGT::computeParameters(), te::gm::AffineGT::computeParameters(), te::layout::ItemModelObservable::contains(), te::rst::Copy(), te::sa::CreateMatrixFromDataSet(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::rst::CropRaster(), te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetStatRadiusKernel(), te::rst::Vectorizer::detectEdge(), te::gm::GeometricTransformation::directMap(), te::ag::Canvas::draw(), te::ag::Canvas::drawLineString(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), te::qt::widgets::Measure::drawPolygon(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::rp::ClassifierDummyStrategy::execute(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::qt::widgets::Selection::executeSelection(), te::layout::MapModel::generateSystematic(), te::rst::Grid::geoToGrid(), te::sa::GetCentroidCoord(), te::gm::GeometricTransformation::getDirectMappingError(), te::edit::GetDistance(), te::st::RasterCoverage::getDouble(), te::rst::Raster::getExtent(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::map::GetExtentRaster(), te::edit::Repository::getFeature(), te::qt::widgets::Info::getGeometryInfo(), te::gm::GeometricTransformation::getInverseMappingError(), te::layout::EditTemplateOutside::getPosition(), te::layout::PageSetupOutside::getPosition(), te::layout::SystematicScaleOutside::getPosition(), te::layout::TextGridSettingsOutside::getPosition(), te::layout::ObjectInspectorOutside::getPosition(), te::layout::ItemGroup::getPosition(), te::layout::GridSettingsOutside::getPosition(), te::layout::MapLayerChoiceOutside::getPosition(), te::layout::ToolbarOutside::getPosition(), te::layout::PropertiesOutside::getPosition(), te::layout::ParentItem< T >::getPosition(), te::layout::TextItem::getPosition(), te::layout::MapItem::getPosition(), te::qt::widgets::Info::getRasterInfo(), te::edit::Snap::getSearchEnvelope(), te::qt::widgets::TiePointLocatorWidget::getTiePoints(), getX(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::rst::Grid::gridToGeo(), te::rp::Blender::initialize(), InterpolateIn(), te::gm::GeometricTransformation::inverseMap(), IsPointOnLine(), te::layout::ItemModelObservable::ItemModelObservable(), te::gm::Line::Line(), te::gm::locateAlong(), te::edit::CreateLineTool::mouseMoveEvent(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::VertexTool::mouseMoveEvent(), te::qt::widgets::ZoomLeftAndRightClick::mousePressEvent(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), te::qt::widgets::MixtureModelDialog::on_coordTracked_changed(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_extentChanged(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_extentChanged(), te::qt::widgets::MixtureModelDialog::on_mapDisplay_extentChanged(), te::qt::af::MapDisplay::onApplicationTriggered(), te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged(), te::qt::widgets::ClippingWizardPage::onEnvelopeAcquired(), te::qt::widgets::ZoomInMapDisplayWidget::onMapDisplayExtentChanged(), te::qt::widgets::ROIManagerWidget::onPointPicked(), te::qt::widgets::MixtureModelWizardPage::onPointPicked(), operator<(), operator==(), te::edit::PickFeature(), te::rst::PolygonIterator< T >::PolygonIterator(), te::rp::RasterResample(), te::layout::OutsideObserver::refresh(), te::layout::ItemObserver::refresh(), te::rst::Raster::resample(), te::rst::Vectorizer::run(), te::edit::SnapVertex::search(), te::qt::widgets::RasterNavigatorWidget::set(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::rst::Grid::setGeoreference(), te::edit::TrySnap(), te::layout::ParentItem< T >::updateObserver(), and te::gm::WKTWriter::visit().

double te::gm::Coord2D::y

y-coordinate.

Definition at line 114 of file Coord2D.h.

Referenced by te::graph::AddRasterAttribute::AddRasterAttribute(), te::qt::widgets::MapDisplay::adjustExtent(), te::layout::AlignItems::alignCenterVertical(), te::qt::widgets::Zoom::applyZoom(), te::graph::LDDGraphBuilder::build(), te::map::AbstractLayerRenderer::buildChart(), te::map::QueryLayerRenderer::buildChart(), te::sa::CalculateDistance(), te::qt::widgets::ZoomInMapDisplayWidget::calculateExtent(), te::layout::GridGeodesicModel::calculateGaps(), te::rst::Grid::computeExtent(), te::gm::SecondDegreePolynomialGT::computeParameters(), te::gm::ThirdDegreePolynomialGT::computeParameters(), te::gm::RSTGT::computeParameters(), te::gm::ProjectiveGT::computeParameters(), te::gm::AffineGT::computeParameters(), te::layout::ItemModelObservable::contains(), te::rst::Copy(), te::sa::CreateMatrixFromDataSet(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::rst::CropRaster(), te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetStatRadiusKernel(), te::rst::Vectorizer::detectEdge(), te::gm::GeometricTransformation::directMap(), te::ag::Canvas::draw(), te::ag::Canvas::drawLineString(), te::qt::widgets::MixtureModelWizardPage::drawMarks(), te::qt::widgets::Measure::drawPolygon(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::rp::ClassifierDummyStrategy::execute(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::qt::widgets::Selection::executeSelection(), te::layout::MapModel::generateSystematic(), te::rst::Grid::geoToGrid(), te::sa::GetCentroidCoord(), te::gm::GeometricTransformation::getDirectMappingError(), te::edit::GetDistance(), te::st::RasterCoverage::getDouble(), te::rst::Raster::getExtent(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::map::GetExtentRaster(), te::edit::Repository::getFeature(), te::qt::widgets::Info::getGeometryInfo(), te::gm::GeometricTransformation::getInverseMappingError(), te::layout::EditTemplateOutside::getPosition(), te::layout::PageSetupOutside::getPosition(), te::layout::SystematicScaleOutside::getPosition(), te::layout::TextGridSettingsOutside::getPosition(), te::layout::ObjectInspectorOutside::getPosition(), te::layout::ItemGroup::getPosition(), te::layout::GridSettingsOutside::getPosition(), te::layout::MapLayerChoiceOutside::getPosition(), te::layout::ToolbarOutside::getPosition(), te::layout::PropertiesOutside::getPosition(), te::layout::ParentItem< T >::getPosition(), te::layout::TextItem::getPosition(), te::layout::MapItem::getPosition(), te::qt::widgets::Info::getRasterInfo(), te::edit::Snap::getSearchEnvelope(), te::qt::widgets::TiePointLocatorWidget::getTiePoints(), getY(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::rst::Grid::gridToGeo(), te::rp::Blender::initialize(), InterpolateIn(), te::gm::GeometricTransformation::inverseMap(), IsPointOnLine(), te::layout::ItemModelObservable::ItemModelObservable(), te::gm::Line::Line(), te::gm::locateAlong(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::CreateLineTool::mouseMoveEvent(), te::edit::VertexTool::mouseMoveEvent(), te::qt::widgets::ZoomLeftAndRightClick::mousePressEvent(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), te::qt::widgets::MixtureModelDialog::on_coordTracked_changed(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_extentChanged(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_extentChanged(), te::qt::widgets::MixtureModelDialog::on_mapDisplay_extentChanged(), te::qt::af::MapDisplay::onApplicationTriggered(), te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged(), te::qt::widgets::ClippingWizardPage::onEnvelopeAcquired(), te::qt::widgets::ZoomInMapDisplayWidget::onMapDisplayExtentChanged(), te::qt::widgets::ROIManagerWidget::onPointPicked(), te::qt::widgets::MixtureModelWizardPage::onPointPicked(), operator<(), operator==(), te::edit::PickFeature(), te::rst::PolygonIterator< T >::PolygonIterator(), te::rp::RasterResample(), te::layout::OutsideObserver::refresh(), te::layout::ItemObserver::refresh(), te::rst::Raster::resample(), te::rst::Vectorizer::run(), te::edit::SnapVertex::search(), te::qt::widgets::RasterNavigatorWidget::set(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::rst::Grid::setGeoreference(), te::edit::TrySnap(), te::layout::ParentItem< T >::updateObserver(), and te::gm::WKTWriter::visit().


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