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::mnt::Smooth::AdjustCatmullRom(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::gm::AdjustSegment(), appGetCenterPointOfPoints(), te::mnt::Tin::BuildTriangle(), te::mnt::coordToSegmentDistance(), te::gm::CreateLine(), te::mnt::Volume::CVGrd(), te::mnt::Tin::DefineInterLinesColumns(), te::mnt::Distance(), Distance(), te::map::AbstractLayerRenderer::drawDatSetTexts(), te::mnt::TINCalculateGrid::FillGridLinear(), te::mnt::TINCalculateGrid::FillGridQuintic(), te::mnt::Tin::FillGridValue(), te::attributefill::GeoToGrid(), GetCenteredBox(), te::ws::ogc::wms::qt::WMSGetFeatureInfoMaker::getInfo(), GAP_segment::isInside(), te::vp::MakeGeometryValid::makeValidMemory(), te::mnt::Smooth::middlePointWithSnap(), te::qt::widgets::PanMiddleClick::mouseReleaseEvent(), te::qt::widgets::Pan::mouseReleaseEvent(), te::mnt::onSameSide(), te::mnt::PerpendicularDistance(), te::mnt::SplineInterpolationGrass::pointListSimplify(), te::mnt::pointListSimplify(), te::edit::Rotate(), te::gm::Rotate(), te::mnt::CreateIsolines::rstMemoryBlock(), te::mnt::CalculateGrid::run(), te::rst::Vectorizer::run(), te::mnt::Profile::runRasterProfile(), segInterPoint(), te::qt::widgets::TiePointLocatorWidget::shotFirstPoint(), te::qt::widgets::TiePointLocatorWidget::shotSecondtPoint(), GAP::step00(), GAP::step1(), GAP::step3(), GAP::step4(), WorldTransformer::system1Tosystem2(), TePerpendicularDistance(), te::rst::Raster::trim(), and GAP::verify_polygon().

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::mnt::Smooth::AdjustCatmullRom(), te::mnt::SplineInterpolationGrass::AdjustLinear(), te::gm::AdjustSegment(), te::mnt::Tin::BuildTriangle(), te::mnt::coordToSegmentDistance(), te::gm::CreateLine(), te::mnt::Volume::CVGrd(), te::mnt::Tin::DefineInterLinesColumns(), te::mnt::Distance(), Distance(), te::map::AbstractLayerRenderer::drawDatSetTexts(), te::mnt::TINCalculateGrid::FillGridLinear(), te::mnt::TINCalculateGrid::FillGridQuintic(), te::mnt::Tin::FillGridValue(), te::attributefill::GeoToGrid(), GetCenteredBox(), te::ws::ogc::wms::qt::WMSGetFeatureInfoMaker::getInfo(), GAP_segment::isInside(), te::vp::MakeGeometryValid::makeValidMemory(), te::mnt::Smooth::middlePointWithSnap(), te::qt::widgets::PanMiddleClick::mouseReleaseEvent(), te::qt::widgets::Pan::mouseReleaseEvent(), te::mnt::onSameSide(), te::mnt::PerpendicularDistance(), PlanarSRID(), te::mnt::SplineInterpolationGrass::pointListSimplify(), te::mnt::pointListSimplify(), te::edit::Rotate(), te::gm::Rotate(), te::mnt::CreateIsolines::rstMemoryBlock(), te::mnt::CalculateGrid::run(), te::rst::Vectorizer::run(), te::mnt::Profile::runRasterProfile(), segInterPoint(), te::qt::widgets::TiePointLocatorWidget::shotFirstPoint(), te::qt::widgets::TiePointLocatorWidget::shotSecondtPoint(), GAP::step00(), GAP::step1(), GAP::step3(), GAP::step4(), WorldTransformer::system1Tosystem2(), TePerpendicularDistance(), te::rst::Raster::trim(), and GAP::verify_polygon().

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 AdaptativeKdTree(), te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::qt::plugins::wtss::WtssDialog::addMarker(), te::qt::widgets::MixtureModelWizardPage::addPointComponent(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::qt::widgets::TiePointLocatorWidget::adjCoordMoved(), te::mnt::Smooth::AdjustCatmullRom(), te::qt::widgets::MapDisplay::adjustExtent(), te::gm::AdjustSegment(), te::gm::Line::Angle(), te::qt::widgets::Zoom::applyZoom(), BOOST_AUTO_TEST_CASE(), te::graph::LDDGraphBuilder::build(), te::map::QueryLayerRenderer::buildChart(), te::map::AbstractLayerRenderer::buildChart(), te::sa::CalculateDistance(), te::qt::widgets::ZoomInMapDisplayWidget::calculateExtent(), te::map::CalculatePlanarZone(), te::rst::Grid::computeExtent(), te::gm::LineString::computeMBR(), te::gm::SecondDegreePolynomialGT::computeParameters(), te::gm::ThirdDegreePolynomialGT::computeParameters(), te::gm::RSTGT::computeParameters(), te::gm::ProjectiveGT::computeParameters(), te::gm::AffineGT::computeParameters(), Coord2D_XGetter(), Coord2D_XSetter(), te::mnt::coordToSegmentDistance(), coordToSegmentDistance(), te::rst::Copy(), CoverageSeriesExamples(), te::sa::CreateMatrixFromDataSet(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetStatRadiusKernel(), te::gm::GeometricTransformation::directMap(), te::gm::Line::distance(), te::edit::RotateGeometryTool::draw(), te::ag::Canvas::draw(), te::map::AbstractLayerRenderer::drawDatSetTexts(), te::ag::Canvas::drawLineString(), 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::ClippingWizard::executeLayerClippingAttribute(), te::qt::widgets::Selection::executeSelection(), te::rst::Grid::geoToGrid(), te::gm::GetAngle(), te::rst::PolygonIterator< T >::getBBOXIntersectionRanges(), te::gm::Geometry::getCentroid(), 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::DefaultFeatureInfoMaker::getGeometryInfo(), te::edit::EditInfoTool::getInfo(), te::gm::GetIntersectionLine(), te::gm::GeometricTransformation::getInverseMappingError(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), te::qt::widgets::getRasterVisibleArea(), te::edit::Snap::getSearchEnvelope(), te::qt::widgets::TiePointLocatorWidget::getTiePoints(), getX(), te::gm::LineString::getX(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::rst::Grid::gridToGeo(), te::rp::Blender::initialize(), te::rst::PolygonIterator< T >::initialize(), InterpolateIn(), te::gm::Line::intersection(), te::gm::GeometricTransformation::inverseMap(), isInside(), IsPointOnLine(), te::gm::Line::Line(), te::gm::locateAlong(), main(), MakeRasterCrop(), Mask(), te::mnt::Smooth::middlePointWithSnap(), te::edit::CreateLineTool::mouseMoveEvent(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::DeleteGeometryByAreaTool::mouseMoveEvent(), te::edit::VertexTool::mouseMoveEvent(), te::qt::widgets::ZoomLeftAndRightClick::mousePressEvent(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), ReadPixelTool::mouseReleaseEvent(), te::mnt::ProfileTools::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::plugins::wtss::WtssDialog::onAddCoordToList(), te::qt::widgets::TiePointLocatorWidget::onAddToolButtonClicked(), te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged(), te::qt::plugins::wtss::WtssDialog::onGetPointCoordinate(), te::qt::widgets::TiePointLocatorWidget::onLoadTiePointsToolButtonClicked(), te::qt::widgets::ZoomInMapDisplayWidget::onMapDisplayExtentChanged(), te::qt::widgets::ClippingWizardPage::onPreviewDimensionClicked(), te::qt::widgets::TiePointLocatorWidget::onSaveTiePointsToolButtonClicked(), te::vp::CheckGeomValidityDialog::onTableWidgetItemDoubleClicked(), te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemChanged(), sortpoints::operator()(), operator<(), operator==(), te::qt::af::MapDisplay::pan(), te::mnt::PerpendicularDistance(), te::edit::PickFeature(), GAP::pointLocate(), RasterizePolygonSet(), te::rp::RasterResample(), te::qt::widgets::TiePointLocatorWidget::refCoordMoved(), te::rst::Raster::resample(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), te::edit::SnapVertex::search(), segInterPoint(), te::qt::widgets::RasterNavigatorWidget::set(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::gm::Line::setCoord(), te::rst::Grid::setGeoreference(), te::gm::LineString::setPoint(), te::gm::LineString::setPointM(), te::gm::LineString::setPointN(), te::gm::LineString::setPointZ(), te::gm::LineString::setPointZM(), te::gm::LineString::setX(), GAP::step0(), GAP::step1(), GAP::step3(), GAP::step4(), te::edit::DeletePartTool::storeFeature(), TsEnvelop::tcGetLowerLeftCoord2D(), TsEnvelop::tcGetUpperRightCoord2D(), TePerpendicularDistance(), TsGeometricTransformations::testTiePoints(), te::edit::TrySnap(), GAP::verifyIntersections(), te::gm::WKTWriter::visit(), te::rst::TileIndexer::within(), and te::rst::TileIndexer::withinOrTouches().

double te::gm::Coord2D::y

y-coordinate.

Definition at line 114 of file Coord2D.h.

Referenced by AdaptativeKdTree(), te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::qt::plugins::wtss::WtssDialog::addMarker(), te::qt::widgets::MixtureModelWizardPage::addPointComponent(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::qt::widgets::TiePointLocatorWidget::adjCoordMoved(), te::mnt::Smooth::AdjustCatmullRom(), te::qt::widgets::MapDisplay::adjustExtent(), te::gm::AdjustSegment(), te::gm::Line::Angle(), te::qt::widgets::Zoom::applyZoom(), BOOST_AUTO_TEST_CASE(), te::graph::LDDGraphBuilder::build(), te::map::QueryLayerRenderer::buildChart(), te::map::AbstractLayerRenderer::buildChart(), te::sa::CalculateDistance(), te::qt::widgets::ZoomInMapDisplayWidget::calculateExtent(), te::rst::Grid::computeExtent(), te::gm::LineString::computeMBR(), te::gm::SecondDegreePolynomialGT::computeParameters(), te::gm::ThirdDegreePolynomialGT::computeParameters(), te::gm::RSTGT::computeParameters(), te::gm::ProjectiveGT::computeParameters(), te::gm::AffineGT::computeParameters(), Coord2D_YGetter(), Coord2D_YSetter(), te::mnt::coordToSegmentDistance(), coordToSegmentDistance(), te::rst::Copy(), CoverageSeriesExamples(), te::sa::CreateMatrixFromDataSet(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetStatRadiusKernel(), te::gm::GeometricTransformation::directMap(), te::gm::Line::distance(), te::edit::RotateGeometryTool::draw(), te::ag::Canvas::draw(), te::map::AbstractLayerRenderer::drawDatSetTexts(), te::ag::Canvas::drawLineString(), 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::ClippingWizard::executeLayerClippingAttribute(), te::qt::widgets::Selection::executeSelection(), te::rst::Grid::geoToGrid(), te::gm::GetAngle(), te::rst::PolygonIterator< T >::getBBOXIntersectionRanges(), te::gm::Geometry::getCentroid(), 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::DefaultFeatureInfoMaker::getGeometryInfo(), te::edit::EditInfoTool::getInfo(), te::gm::GetIntersectionLine(), te::gm::GeometricTransformation::getInverseMappingError(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), te::qt::widgets::getRasterVisibleArea(), te::edit::Snap::getSearchEnvelope(), te::qt::widgets::TiePointLocatorWidget::getTiePoints(), getY(), te::gm::LineString::getY(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::rst::Grid::gridToGeo(), te::rp::Blender::initialize(), te::rst::PolygonIterator< T >::initialize(), InterpolateIn(), te::gm::Line::intersection(), te::gm::GeometricTransformation::inverseMap(), isInside(), IsPointOnLine(), te::gm::Line::Line(), te::gm::locateAlong(), main(), MakeRasterCrop(), Mask(), te::mnt::Smooth::middlePointWithSnap(), te::edit::CreateLineTool::mouseMoveEvent(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::DeleteGeometryByAreaTool::mouseMoveEvent(), te::edit::VertexTool::mouseMoveEvent(), te::qt::widgets::ZoomLeftAndRightClick::mousePressEvent(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), ReadPixelTool::mouseReleaseEvent(), te::mnt::ProfileTools::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::plugins::wtss::WtssDialog::onAddCoordToList(), te::qt::widgets::TiePointLocatorWidget::onAddToolButtonClicked(), te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged(), te::qt::plugins::wtss::WtssDialog::onGetPointCoordinate(), te::qt::widgets::TiePointLocatorWidget::onLoadTiePointsToolButtonClicked(), te::qt::widgets::ZoomInMapDisplayWidget::onMapDisplayExtentChanged(), te::qt::widgets::ClippingWizardPage::onPreviewDimensionClicked(), te::qt::widgets::TiePointLocatorWidget::onSaveTiePointsToolButtonClicked(), te::vp::CheckGeomValidityDialog::onTableWidgetItemDoubleClicked(), te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemChanged(), sortpoints::operator()(), operator<(), operator==(), te::qt::af::MapDisplay::pan(), te::mnt::PerpendicularDistance(), te::edit::PickFeature(), GAP::pointLocate(), RasterizePolygonSet(), te::rp::RasterResample(), te::qt::widgets::TiePointLocatorWidget::refCoordMoved(), te::rst::Raster::resample(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), te::edit::SnapVertex::search(), segInterPoint(), te::qt::widgets::RasterNavigatorWidget::set(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::gm::Line::setCoord(), te::rst::Grid::setGeoreference(), te::gm::LineString::setPoint(), te::gm::LineString::setPointM(), te::gm::LineString::setPointN(), te::gm::LineString::setPointZ(), te::gm::LineString::setPointZM(), te::gm::LineString::setY(), GAP::step0(), GAP::step1(), GAP::step3(), GAP::step4(), te::edit::DeletePartTool::storeFeature(), TsEnvelop::tcGetLowerLeftCoord2D(), TsEnvelop::tcGetUpperRightCoord2D(), TePerpendicularDistance(), TsGeometricTransformations::testTiePoints(), te::edit::TrySnap(), GAP::verifyIntersections(), te::gm::WKTWriter::visit(), te::rst::TileIndexer::within(), and te::rst::TileIndexer::withinOrTouches().


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