#include <Smooth.h>
Public Member Functions | |
| bool | run () |
| void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsetName, std::unique_ptr< te::da::DataSetType > inDsetType) |
| void | setOutput (te::da::DataSourcePtr outDsrc, std::string dsname) |
| void | setParams (double factor, double max_dist, bool simpl) |
| void | setSRID (int srid) |
| Smooth () | |
| ~Smooth () | |
Protected Attributes | |
| double | m_factor |
| std::string | m_inDsetName |
| std::unique_ptr< te::da::DataSetType > | m_inDsetType |
| te::da::DataSourcePtr | m_inDsrc |
| double | m_maxdist |
| std::string | m_outDsetName |
| te::da::DataSourcePtr | m_outDsrc |
| bool | m_simpl_out |
| int | m_srid |
| Attribute with spatial reference information. More... | |
Private Member Functions | |
| bool | AdjustCatmullRom (te::gm::LineString &iso) |
| bool | middlePointWithSnap (te::gm::Coord2D &pfr, te::gm::Coord2D &pto, te::gm::Coord2D &pt0, te::gm::Coord2D &pt1, double d) |
|
default |
|
default |
|
private |
Definition at line 82 of file Smooth.cpp.
References te::mnt::Distance(), dx, te::gm::LineString::getCoordinates(), te::gm::LineString::getNPoints(), te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), te::gm::LineString::getZ(), m_maxdist, te::gm::LineString::makeEmpty(), middlePointWithSnap(), te::mnt::onSameSide(), pt1, te::gm::LineString::setNumCoordinates(), te::gm::LineString::setPointZ(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by run().
|
private |
Definition at line 276 of file Smooth.cpp.
References b, d, te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by AdjustCatmullRom().
| bool te::mnt::Smooth::run | ( | ) |
Definition at line 44 of file Smooth.cpp.
References AdjustCatmullRom(), te::mnt::DouglasPeucker, te::gm::GeometryCollection::getGeometryN(), te::gm::GeometryCollection::getNumGeometries(), m_factor, m_inDsetName, m_inDsrc, m_maxdist, m_outDsetName, m_outDsrc, m_simpl_out, m_srid, te::gm::MultiLineStringZType, te::gm::MultiPointZType, te::mnt::pointListSimplify(), te::common::TaskProgress::pulse(), te::mnt::ReadSamples(), te::mnt::SaveIso(), and te::common::TaskProgress::UNDEFINED.
Referenced by te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked().
| void te::mnt::Smooth::setInput | ( | te::da::DataSourcePtr | inDsrc, |
| std::string | inDsetName, | ||
| std::unique_ptr< te::da::DataSetType > | inDsetType | ||
| ) |
Definition at line 21 of file Smooth.cpp.
References m_inDsetName, m_inDsetType, and m_inDsrc.
Referenced by te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked().
| void te::mnt::Smooth::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
| std::string | dsname | ||
| ) |
Definition at line 31 of file Smooth.cpp.
References m_outDsetName, and m_outDsrc.
Referenced by te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked().
| void te::mnt::Smooth::setParams | ( | double | factor, |
| double | max_dist, | ||
| bool | simpl | ||
| ) |
Definition at line 37 of file Smooth.cpp.
References m_factor, m_maxdist, and m_simpl_out.
Referenced by te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked().
|
inline |
Function used to set the Spatial Reference System ID
Definition at line 38 of file Smooth.h.
Referenced by te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked().
|
protected |
Definition at line 57 of file Smooth.h.
Referenced by run(), and setParams().
|
protected |
Definition at line 50 of file Smooth.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 51 of file Smooth.h.
Referenced by setInput().
|
protected |
Definition at line 49 of file Smooth.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 58 of file Smooth.h.
Referenced by AdjustCatmullRom(), run(), and setParams().
|
protected |
Definition at line 54 of file Smooth.h.
Referenced by run(), and setOutput().
|
protected |
Definition at line 53 of file Smooth.h.
Referenced by run(), and setOutput().
|
protected |
Definition at line 59 of file Smooth.h.
Referenced by run(), and setParams().
|
protected |