Namespace for DTM Processing module of TerraLib. More...
Classes | |
| class | CalculateGrid |
| class | CreateIsolines |
| class | CreateIsolinesDialog |
| class | ImageGenerationDialog |
| class | LayerSearchDialog |
| class | MNTGenerationDialog |
| class | Profile |
| class | ProfileDialog |
| class | ProfileResultDialog |
| class | ProfileTools |
| class | Shadow |
| class | Slope |
| class | SlopeDialog |
| class | Smooth |
| class | SmoothIsolinesDialog |
| class | SplineInterpolationGrass |
| class | SplineInterpolationGrassMitasova |
| class | Tin |
| Class to define TIN strutures. More... | |
| class | TINCalculateGrid |
| Class to calculate grid from TIN. More... | |
| class | TINCreateIsolines |
| Class to generate isolines from TIN. More... | |
| class | TINGeneration |
| Class to generate TIN. More... | |
| class | TINGenerationDialog |
| class | TinLine |
| class | TinNode |
| class | TinTriang |
| class | Volume |
| class | VolumeDialog |
| class | VolumeResultDialog |
Enumerations | |
| enum | Curve { LINEARCURVE, BSPLINECURVE, CATMULLROMCURVE } |
| enum | InputType { Isolines, Samples } |
| Input types. More... | |
| enum | Interpolator { MediaCotaQuad, MediaQuad, MediaPonderada, Media, Vizinho, SplineBilinear, SplineBicubico, Mitasova, Bilinear, Bicubico, Linear, QuinticoBrkLine, Quintico } |
| enum | Ltype { Deletedline, Normalline, Isoline, Breakline } |
| enum | mntType { SAMPLE, TIN, GRID, ISOLINE, OTHER } |
| enum | Ntype { Deletednode, Normalnode, First, Last, Breaklinenormal, Breaklinefirst, Breaklinelast, Sample, Box } |
| enum | Simplify { AccumulatedDistance, Spline, DouglasPeucker, None } |
| enum | ToolType { CreateLine, EditVertex, DeleteLine, InvertLine, ToolNone } |
Functions | |
| TEMNTEXPORT bool | assembLine (std::vector< std::unique_ptr< te::gm::LineString > > &linlout, std::vector< te::gm::Point > &vect) |
| TEMNTEXPORT bool | convertAngleToPlanar (double &val, te::common::UnitOfMeasurePtr planar, int type) |
| TEMNTEXPORT bool | convertPlanarToAngle (double &val, te::common::UnitOfMeasurePtr unit) |
| TEMNTEXPORT double | coordToSegmentDistance (te::gm::Coord2D &fseg, te::gm::Coord2D &lseg, te::gm::Coord2D &pt, te::gm::Coord2D *pti) |
| TEMNTEXPORT bool | defineInterEdge (std::vector< te::gm::Point > &, te::gm::Point &, te::gm::Point &, double) |
| Function that defines the intersection with an edge of a triangle. More... | |
| TEMNTEXPORT bool | defineInterTriangle (std::vector< te::gm::Point > &, te::gm::Point *, double) |
| Function that defines the intersections between an isoline and a triangle. More... | |
| TEMNTEXPORT double | Distance (const te::gm::Coord2D &pt1, const te::gm::Coord2D &pt2) |
| TEMNTEXPORT double | Distance (const double pt1x, const double pt1y, const double pt2x, const double pt2y) |
| TEMNTEXPORT te::gm::LineString * | DouglasPeuckerTA (te::gm::LineString *lineIn, double simpFactor, double Zvalue) |
| TEMNTEXPORT bool | Equal (te::gm::Point &p1, te::gm::Point &p2, double &tol) |
| TEMNTEXPORT bool | equalFptSpt (te::gm::Point &fpt, te::gm::Point &spt, double scale) |
| TEMNTEXPORT bool | extractLines (std::vector< te::gm::Point > &pline, std::vector< std::unique_ptr< te::gm::LineString > > &clinlist, double scale) |
| TEMNTEXPORT short | findCenter (te::gm::Point *vert, double *pcx, double *pcy) |
| Function that finds the center of the vertices of a triangle. More... | |
| TEMNTEXPORT bool | Gauss_elimination (short m, short n, double mat[6][6]) |
| TEMNTEXPORT te::gm::LineString * | GEOS_DouglasPeucker (te::gm::LineString *ls, double snap, double Zvalue) |
| TEMNTEXPORT void | getMinMax (te::rst::Raster *inputRst, double &vmin, double &vmax) |
| TEMNTEXPORT te::mnt::mntType | getMNTType (const te::da::DataSetType *dt) |
| TEMNTEXPORT bool | initLineVector (std::vector< te::gm::Point > &pline, std::vector< te::gm::Point > &vect) |
| TEMNTEXPORT bool | Least_square_fitting (double *vectx, double *vecty, short np, short deg, double *coef) |
| Function that performs a leat square fitting in a set of points. More... | |
| TEMNTEXPORT te::gm::Point | Max (te::gm::Point &p1, te::gm::Point &p2) |
| TEMNTEXPORT te::gm::Point | Min (te::gm::Point &p1, te::gm::Point &p2) |
| TEMNTEXPORT bool | normalizeVector (double *) |
| Function that normalize a vector by its size. More... | |
| TEMNTEXPORT int | onSameSide (te::gm::Coord2D pt1, te::gm::Coord2D pt2, te::gm::Coord2D fseg, te::gm::Coord2D lseg) |
| TEMNTEXPORT bool | onSegment (te::gm::Point &pt, te::gm::Point &fseg, te::gm::Point &lseg, double tol) |
| Function that checks if a point pt is on a segment. More... | |
| TEMNTEXPORT double | PerpendicularDistance (te::gm::Coord2D &first, te::gm::Coord2D &last, te::gm::Coord2D &pin, te::gm::Coord2D &pinter) |
| TEMNTEXPORT bool | point3dListFilter (std::vector< te::gm::Point > &p3dl, std::vector< bool > &fixed, double tol) |
| Function that filters the points that are closer considering a given tolerance. More... | |
| TEMNTEXPORT te::gm::LineString * | pointListSimplify (te::gm::LineString *ls, double snap, double maxdist, double Zvalue) |
| TEMNTEXPORT double | pointToSegmentDistance (te::gm::Point &fseg, te::gm::Point &lseg, te::gm::Point &pt, te::gm::Point *pti) |
| TEMNTEXPORT size_t | ReadPoints (std::string &inDsetName, te::da::DataSourcePtr &inDsrc, std::string &atrZ, double tol, te::gm::MultiPoint &mpt, std::string &geostype, te::gm::Envelope &env) |
| TEMNTEXPORT size_t | ReadSamples (std::string &inDsetName, te::da::DataSourcePtr &inDsrc, std::string &atrZ, double tol, double max, Simplify alg, te::gm::MultiPoint &mpt, te::gm::MultiLineString &isolines, std::string &geostype, te::gm::Envelope &env, int srid=0) |
| TEMNTEXPORT bool | SaveIso (std::string &outDsetName, te::da::DataSourcePtr &outDsrc, std::vector< std::unique_ptr< te::gm::LineString > > &isolist, std::vector< double > &guidevalues, int srid) |
| TEMNTEXPORT bool | segInterPoint (te::gm::Point &pfr, te::gm::Point &pto, te::gm::Point &lfr, te::gm::Point <o, te::gm::Point *pt) |
| Function for determines the point of two segment intersections. More... | |
| TEMNTEXPORT short | segIntersect (te::gm::Point &pfr, te::gm::Point &pto, te::gm::Point &lfr, te::gm::Point <o) |
| Function for check segment intersection. More... | |
| TEMNTEXPORT double | SegmentDistance (double fx, double fy, double lx, double ly, double ptx, double pty, double *pix, double *piy) |
| Function that evaluates the distance between a point and a segment. More... | |
| TEMNTEXPORT bool | testVertexValues (double, te::gm::Point *) |
| Function that test the vertex values. More... | |
| TEMNTEXPORT bool | triangleNormalVector (te::gm::Point *, double *) |
| Function that defines the triangle normal vector. More... | |
Namespace for DTM Processing module of TerraLib.
| enum te::mnt::Curve |
| Enumerator | |
|---|---|
| LINEARCURVE | |
| BSPLINECURVE | |
| CATMULLROMCURVE | |
Definition at line 71 of file src/terralib/mnt/core/Enums.h.
| enum te::mnt::InputType |
Input types.
| Enumerator | |
|---|---|
| Isolines | |
| Samples | |
Definition at line 48 of file src/terralib/mnt/core/Enums.h.
Definition at line 54 of file src/terralib/mnt/core/Enums.h.
| enum te::mnt::Ltype |
| Enumerator | |
|---|---|
| Deletedline | |
| Normalline | |
| Isoline | |
| Breakline | |
Definition at line 20 of file src/terralib/mnt/core/Enums.h.
| enum te::mnt::mntType |
| Enumerator | |
|---|---|
| SAMPLE | |
| TIN | |
| GRID | |
| ISOLINE | |
| OTHER | |
Definition at line 78 of file src/terralib/mnt/core/Enums.h.
| enum te::mnt::Ntype |
| Enumerator | |
|---|---|
| Deletednode | |
| Normalnode | |
| First | |
| Last | |
| Breaklinenormal | |
| Breaklinefirst | |
| Breaklinelast | |
| Sample | |
| Box | |
Definition at line 31 of file src/terralib/mnt/core/Enums.h.
| enum te::mnt::Simplify |
| Enumerator | |
|---|---|
| AccumulatedDistance | |
| Spline | |
| DouglasPeucker | |
| None | |
Definition at line 87 of file src/terralib/mnt/core/Enums.h.
| enum te::mnt::ToolType |
| Enumerator | |
|---|---|
| CreateLine | |
| EditVertex | |
| DeleteLine | |
| InvertLine | |
| ToolNone | |
Definition at line 53 of file ProfileDialog.h.
| bool te::mnt::assembLine | ( | std::vector< std::unique_ptr< te::gm::LineString > > & | linlout, |
| std::vector< te::gm::Point > & | vect | ||
| ) |
Definition at line 1059 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::LineStringZType.
Referenced by extractLines().
| bool te::mnt::convertAngleToPlanar | ( | double & | val, |
| te::common::UnitOfMeasurePtr | planar, | ||
| int | type | ||
| ) |
Definition at line 1618 of file src/terralib/mnt/core/Utils.cpp.
References te::common::UOM_Foot, te::common::UOM_Kilometre, and te::common::UOM_Metre.
Referenced by te::mnt::Volume::CVGrd(), and te::mnt::Profile::runRasterProfile().
| bool te::mnt::convertPlanarToAngle | ( | double & | val, |
| te::common::UnitOfMeasurePtr | unit | ||
| ) |
Definition at line 1659 of file src/terralib/mnt/core/Utils.cpp.
References te::common::UOM_Foot, te::common::UOM_Kilometre, and te::common::UOM_Metre.
Referenced by te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked(), and te::mnt::TINGenerationDialog::onOkPushButtonClicked().
| double te::mnt::coordToSegmentDistance | ( | te::gm::Coord2D & | fseg, |
| te::gm::Coord2D & | lseg, | ||
| te::gm::Coord2D & | pt, | ||
| te::gm::Coord2D * | pti | ||
| ) |
Definition at line 635 of file src/terralib/mnt/core/Utils.cpp.
References sortpoints::c, te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), SegmentDistance(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by GAP::step1(), GAP::step3(), GAP::step4(), and GAP::verifyIntersections().
| bool te::mnt::defineInterEdge | ( | std::vector< te::gm::Point > & | ptline, |
| te::gm::Point & | fpt, | ||
| te::gm::Point & | spt, | ||
| double | isolin | ||
| ) |
Function that defines the intersection with an edge of a triangle.
| ptline | is a pointer to a Line object |
| fpt | and spt are the first and second point of the edge |
Definition at line 914 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Point::getZ(), te::gm::PointZType, te::gm::Point::setX(), te::gm::Point::setY(), and te::gm::Point::setZ().
Referenced by defineInterTriangle().
| bool te::mnt::defineInterTriangle | ( | std::vector< te::gm::Point > & | ptline, |
| te::gm::Point * | p3da, | ||
| double | isolin | ||
| ) |
Function that defines the intersections between an isoline and a triangle.
| ptline | is a pointer to a Line object |
| p3da | is a pointer to a Point3d object |
Definition at line 864 of file src/terralib/mnt/core/Utils.cpp.
References defineInterEdge().
Referenced by te::mnt::TINCreateIsolines::run().
| double te::mnt::Distance | ( | const te::gm::Coord2D & | pt1, |
| const te::gm::Coord2D & | pt2 | ||
| ) |
Definition at line 223 of file src/terralib/mnt/core/Utils.cpp.
References Distance(), te::gm::Coord2D::getX(), and te::gm::Coord2D::getY().
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::Profile::calculateProfile(), and te::mnt::SplineInterpolationGrass::pointListSimplify().
| double te::mnt::Distance | ( | const double | pt1x, |
| const double | pt1y, | ||
| const double | pt2x, | ||
| const double | pt2y | ||
| ) |
Definition at line 228 of file src/terralib/mnt/core/Utils.cpp.
References dx.
Referenced by Distance(), Distance(), GAP_segment::isInside(), isInside(), te::da::ST_DistanceBuffer::operator=(), pointListSimplify(), te::da::ST_DistanceBuffer::ST_DistanceBuffer(), GAP::step0(), GAP::step2(), GAP::step3(), and GAP::step4().
| te::gm::LineString * te::mnt::DouglasPeuckerTA | ( | te::gm::LineString * | lineIn, |
| double | simpFactor, | ||
| double | Zvalue | ||
| ) |
Definition at line 315 of file src/terralib/mnt/core/Utils.cpp.
References te::common::FreeContents(), te::gm::LineString::getPointN(), te::gm::LineString::getX(), te::gm::LineString::getY(), te::gm::LineStringZType, te::gm::LineString::setPointN(), te::gm::LineString::setZ(), te::gm::LineString::size(), and TePerpendicularDistance().
| bool te::mnt::Equal | ( | te::gm::Point & | p1, |
| te::gm::Point & | p2, | ||
| double & | tol | ||
| ) |
Definition at line 254 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), and te::gm::Point::getZ().
Referenced by te::mnt::CreateIsolines::connectLines(), extractLines(), and te::mnt::TINGeneration::FindInterPoints().
| bool te::mnt::equalFptSpt | ( | te::gm::Point & | fpt, |
| te::gm::Point & | spt, | ||
| double | scale | ||
| ) |
Definition at line 259 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), and te::gm::Point::getY().
Referenced by extractLines().
| bool te::mnt::extractLines | ( | std::vector< te::gm::Point > & | pline, |
| std::vector< std::unique_ptr< te::gm::LineString > > & | clinlist, | ||
| double | scale | ||
| ) |
Definition at line 937 of file src/terralib/mnt/core/Utils.cpp.
References assembLine(), Equal(), equalFptSpt(), initLineVector(), and te::gm::PointZType.
Referenced by te::mnt::TINCreateIsolines::run().
| short te::mnt::findCenter | ( | te::gm::Point * | vert, |
| double * | pcx, | ||
| double * | pcy | ||
| ) |
Function that finds the center of the vertices of a triangle.
| vert | is pointer to the triangle vertices |
| pcx | and pcy are pointers to coordinates x and y of the vertex center points |
Definition at line 666 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), and te::gm::Point::getY().
Referenced by te::mnt::TINGeneration::TestDelaunay().
| bool te::mnt::Gauss_elimination | ( | short | m, |
| short | n, | ||
| double | mat[6][6] | ||
| ) |
Definition at line 1481 of file src/terralib/mnt/core/Utils.cpp.
Referenced by Least_square_fitting().
| te::gm::LineString * te::mnt::GEOS_DouglasPeucker | ( | te::gm::LineString * | ls, |
| double | snap, | ||
| double | Zvalue | ||
| ) |
Definition at line 402 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::LineString::getPointN(), te::gm::LineStringZType, te::gm::LineString::setPointZ(), and te::gm::LineString::size().
| void te::mnt::getMinMax | ( | te::rst::Raster * | inputRst, |
| double & | vmin, | ||
| double & | vmax | ||
| ) |
Definition at line 1678 of file src/terralib/mnt/core/Utils.cpp.
References te::rst::Raster::getBand(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Raster::getValue(), and te::rst::BandProperty::m_noDataValue.
Referenced by te::mnt::ImageGenerationDialog::drawPreview(), te::mnt::CreateIsolinesDialog::onInputComboBoxChanged(), te::mnt::ImageGenerationDialog::onInputComboBoxChanged(), te::mnt::SlopeDialog::onOkPushButtonClicked(), and te::mnt::ImageGenerationDialog::onOkPushButtonClicked().
| te::mnt::mntType te::mnt::getMNTType | ( | const te::da::DataSetType * | dt | ) |
Definition at line 1753 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::GeometryType, te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), GRID, te::da::DataSetType::hasGeom(), te::da::DataSetType::hasRaster(), ISOLINE, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonZType, OTHER, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonZType, te::gm::PolyhedralSurfaceZType, SAMPLE, TIN, and te::gm::TINZType.
Referenced by te::mnt::MNTGenerationDialog::onInputComboBoxChanged(), te::mnt::ProfileDialog::onInputComboBoxChanged(), te::mnt::CreateIsolinesDialog::setLayers(), te::mnt::SmoothIsolinesDialog::setLayers(), te::mnt::SlopeDialog::setLayers(), te::mnt::VolumeDialog::setLayers(), te::mnt::MNTGenerationDialog::setLayers(), te::mnt::TINGenerationDialog::setLayers(), and te::mnt::ImageGenerationDialog::setLayers().
| bool te::mnt::initLineVector | ( | std::vector< te::gm::Point > & | pline, |
| std::vector< te::gm::Point > & | vect | ||
| ) |
Definition at line 1026 of file src/terralib/mnt/core/Utils.cpp.
Referenced by extractLines().
| bool te::mnt::Least_square_fitting | ( | double * | vectx, |
| double * | vecty, | ||
| short | np, | ||
| short | deg, | ||
| double * | coef | ||
| ) |
Function that performs a leat square fitting in a set of points.
| vectx | and vecty are the point coordinates |
| np | is the number of points |
| deg | is degree of the polynomium used in the fitting |
| coef | is a pointer to the the polynomiun coefficients |
Definition at line 1383 of file src/terralib/mnt/core/Utils.cpp.
References Gauss_elimination().
Referenced by point3dListFilter().
| te::gm::Point te::mnt::Max | ( | te::gm::Point & | p1, |
| te::gm::Point & | p2 | ||
| ) |
Definition at line 243 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), and MAX.
Referenced by te::mnt::Tin::DefineInterLinesColumns(), te::vp::Dissolve::executeQuery(), te::stat::GetNumericStatisticalSummaryQuery(), te::stat::GetStringStatisticalSummaryQuery(), te::da::Max::Max(), and QueryExample().
| te::gm::Point te::mnt::Min | ( | te::gm::Point & | p1, |
| te::gm::Point & | p2 | ||
| ) |
Definition at line 248 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), and MIN.
Referenced by te::mnt::Tin::DefineInterLinesColumns(), te::vp::Dissolve::executeQuery(), te::stat::GetNumericStatisticalSummaryQuery(), te::stat::GetStringStatisticalSummaryQuery(), te::da::Min::Min(), and QueryExample().
| bool te::mnt::normalizeVector | ( | double * | nvector | ) |
Function that normalize a vector by its size.
| nvector | is a pointer to the vector coordinates x, y and z |
Definition at line 1144 of file src/terralib/mnt/core/Utils.cpp.
Referenced by te::mnt::TINGeneration::TestAngleBetweenNormals().
| int te::mnt::onSameSide | ( | te::gm::Coord2D | pt1, |
| te::gm::Coord2D | pt2, | ||
| te::gm::Coord2D | fseg, | ||
| te::gm::Coord2D | lseg | ||
| ) |
Definition at line 1210 of file src/terralib/mnt/core/Utils.cpp.
References b, te::gm::Coord2D::getX(), and te::gm::Coord2D::getY().
Referenced by te::mnt::Smooth::AdjustCatmullRom(), and te::mnt::TINGeneration::FindInterPoints().
| bool te::mnt::onSegment | ( | te::gm::Point & | pt, |
| te::gm::Point & | fseg, | ||
| te::gm::Point & | lseg, | ||
| double | tol | ||
| ) |
Function that checks if a point pt is on a segment.
| pt,fseg,lseg | are pointers to Point objects |
| tol | is the tolerance distance between the point and the segment |
Definition at line 1169 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), and te::gm::Point::getY().
Referenced by te::mnt::TINGeneration::OnIsolineSegment().
| double te::mnt::PerpendicularDistance | ( | te::gm::Coord2D & | first, |
| te::gm::Coord2D & | last, | ||
| te::gm::Coord2D & | pin, | ||
| te::gm::Coord2D & | pinter | ||
| ) |
Definition at line 1707 of file src/terralib/mnt/core/Utils.cpp.
References dx, te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
| bool te::mnt::point3dListFilter | ( | std::vector< te::gm::Point > & | p3dl, |
| std::vector< bool > & | fixed, | ||
| double | tol | ||
| ) |
Function that filters the points that are closer considering a given tolerance.
| p3dl | is a pointer to a list of Point3dList objects |
| tol | is a tolerance value |
Definition at line 1237 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Point::getZ(), Least_square_fitting(), te::gm::PointZType, te::gm::Point::setX(), te::gm::Point::setY(), and te::gm::Point::setZ().
Referenced by te::mnt::TINGeneration::RegeneratewithNewPoints().
| te::gm::LineString * te::mnt::pointListSimplify | ( | te::gm::LineString * | ls, |
| double | snap, | ||
| double | maxdist, | ||
| double | Zvalue | ||
| ) |
Definition at line 426 of file src/terralib/mnt/core/Utils.cpp.
References b, d, Distance(), te::gm::LineString::getCoordinates(), te::gm::LineString::getNPoints(), te::gm::Geometry::getSRID(), te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), and te::gm::LineStringZType.
Referenced by LoadIsolines(), te::mnt::SplineInterpolationGrass::pointsControlMean(), te::mnt::TINGeneration::ReadBreakLines(), ReadSamples(), and te::mnt::Smooth::run().
| double te::mnt::pointToSegmentDistance | ( | te::gm::Point & | fseg, |
| te::gm::Point & | lseg, | ||
| te::gm::Point & | pt, | ||
| te::gm::Point * | pti | ||
| ) |
Definition at line 647 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), SegmentDistance(), te::gm::Point::setX(), and te::gm::Point::setY().
Referenced by te::mnt::TINGeneration::FindInterPoints(), te::mnt::Tin::FindTriangle(), and te::mnt::TINGeneration::InsertNode().
| size_t te::mnt::ReadPoints | ( | std::string & | inDsetName, |
| te::da::DataSourcePtr & | inDsrc, | ||
| std::string & | atrZ, | ||
| double | tol, | ||
| te::gm::MultiPoint & | mpt, | ||
| std::string & | geostype, | ||
| te::gm::Envelope & | env | ||
| ) |
Definition at line 33 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::GeometryCollection::add(), te::gm::Point::clone(), te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::gm::GeometryCollection::getGeometryN(), te::gm::GeometryCollection::getNumGeometries(), te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Point::getZ(), te::gm::Envelope::init(), p, te::gm::PointZType, te::gm::Point::setX(), te::gm::Point::setY(), te::gm::Point::setZ(), and te::common::TaskProgress::UNDEFINED.
Referenced by te::mnt::CalculateGrid::Initialize(), and te::mnt::TINGeneration::run().
| size_t te::mnt::ReadSamples | ( | std::string & | inDsetName, |
| te::da::DataSourcePtr & | inDsrc, | ||
| std::string & | atrZ, | ||
| double | tol, | ||
| double | max, | ||
| Simplify | alg, | ||
| te::gm::MultiPoint & | mpt, | ||
| te::gm::MultiLineString & | isolines, | ||
| std::string & | geostype, | ||
| te::gm::Envelope & | env, | ||
| int | srid = 0 |
||
| ) |
Definition at line 105 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::GeometryCollection::add(), DouglasPeucker, te::dt::GEOMETRY_TYPE, GEOS_DouglasPeucker(), te::da::GetFirstPropertyPos(), te::gm::GeometryCollection::getGeometryN(), te::gm::GeometryCollection::getNumGeometries(), te::gm::LineString::getPointN(), te::gm::Geometry::getSRID(), te::gm::LineString::getX(), te::gm::LineString::getY(), te::gm::LineString::getZ(), te::gm::Envelope::init(), te::gm::Geometry::is3D(), te::gm::LineStringZType, te::at::None, p, te::mnt::SplineInterpolationGrass::pointListSimplify(), pointListSimplify(), te::gm::LineString::setPointZ(), te::gm::LineString::setSRID(), te::gm::LineString::size(), Spline, and te::common::TaskProgress::UNDEFINED.
Referenced by te::mnt::CalculateGrid::Initialize(), te::mnt::Smooth::run(), te::mnt::TINGeneration::run(), and te::mnt::Profile::runIsolinesProfile().
| bool te::mnt::SaveIso | ( | std::string & | outDsetName, |
| te::da::DataSourcePtr & | outDsrc, | ||
| std::vector< std::unique_ptr< te::gm::LineString > > & | isolist, | ||
| std::vector< double > & | guidevalues, | ||
| int | srid | ||
| ) |
Definition at line 1569 of file src/terralib/mnt/core/Utils.cpp.
References te::dt::DOUBLE_TYPE, ds, dt, te::dt::INT32_TYPE, te::gm::LineStringZType, te::common::TaskProgress::pulse(), te::vp::Save(), te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setString(), te::dt::STRING_TYPE, and te::common::TaskProgress::UNDEFINED.
Referenced by te::mnt::TINCreateIsolines::run(), te::mnt::Smooth::run(), and te::mnt::CreateIsolines::run().
| bool te::mnt::segInterPoint | ( | te::gm::Point & | pfr, |
| te::gm::Point & | pto, | ||
| te::gm::Point & | lfr, | ||
| te::gm::Point & | lto, | ||
| te::gm::Point * | pt | ||
| ) |
Function for determines the point of two segment intersections.
| pfr,pto,lfr,lto | and pt are pointers to Point objects |
Definition at line 765 of file src/terralib/mnt/core/Utils.cpp.
References b, te::gm::Point::getX(), te::gm::Point::getY(), te::gm::Point::setX(), and te::gm::Point::setY().
Referenced by te::mnt::TINGeneration::FindInterPoints(), and te::mnt::TINGeneration::TestIsolines().
| short te::mnt::segIntersect | ( | te::gm::Point & | pfr, |
| te::gm::Point & | pto, | ||
| te::gm::Point & | lfr, | ||
| te::gm::Point & | lto | ||
| ) |
Function for check segment intersection.
| pfr,pto,lfr,lto | are pointers to Point objects |
Definition at line 752 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::PointZType, and segInterPoint().
Referenced by te::mnt::Tin::FindTriangle(), and te::mnt::TINGeneration::UpdateTriangles().
| double te::mnt::SegmentDistance | ( | double | fx, |
| double | fy, | ||
| double | lx, | ||
| double | ly, | ||
| double | ptx, | ||
| double | pty, | ||
| double * | pix, | ||
| double * | piy | ||
| ) |
Function that evaluates the distance between a point and a segment.
| fseg | is a pointer to the segment first point |
| lseg | is a pointer to the segment last point |
| pt | is a pointer to the considered point |
| pti | is a pointer to the intersection point |
Definition at line 582 of file src/terralib/mnt/core/Utils.cpp.
References b, and sortpoints::c.
Referenced by coordToSegmentDistance(), and pointToSegmentDistance().
| bool te::mnt::testVertexValues | ( | double | isolin, |
| te::gm::Point * | p3da | ||
| ) |
Function that test the vertex values.
| isolin | is the isolin value of a given isolin |
| p3da | is a pointer to a vector with Point3d objects |
Definition at line 816 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::setZ().
Referenced by te::mnt::TINCreateIsolines::run().
| bool te::mnt::triangleNormalVector | ( | te::gm::Point * | p3da, |
| double * | nvector | ||
| ) |
Function that defines the triangle normal vector.
| p3da | are pointers to objets Point3d representing the triangle vertices |
| nvector | are the coordinates of the normal vector |
Definition at line 1081 of file src/terralib/mnt/core/Utils.cpp.
References te::gm::Point::getX(), te::gm::Point::getY(), and te::gm::Point::getZ().
Referenced by te::mnt::Tin::CalcNodeFirstDeriv(), te::mnt::Tin::CalcNodeSecondDeriv(), te::mnt::Tin::CalcTriangleSecondDeriv(), te::mnt::TINGeneration::TestAngleBetweenNormals(), te::mnt::Tin::TriangleFirstDeriv(), te::mnt::Slope::TriangleGradient(), and te::mnt::Tin::TriangleSecondDeriv().