![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for generating a distance map (surface of revolution) More...
#include <distanceMapGenerationDlg.h>


Public Types | |
| enum | ANGULAR_UNIT { ANG_DEG , ANG_RAD , ANG_GRAD } |
| Angular units. More... | |
| enum | ProjectionMode { PROJ_CYLINDRICAL , PROJ_CONICAL } |
| Projection mode. More... | |
Public Member Functions | |
| DistanceMapGenerationDlg (ccPointCloud *cloud, ccScalarField *sf, ccPolyline *polyline, ecvMainAppInterface *app=0) | |
| Default constructor. More... | |
| virtual | ~DistanceMapGenerationDlg () |
| Default destructor. More... | |
| ANGULAR_UNIT | getAngularUnit () const |
| Returns selected angular unit. More... | |
| QString | getAngularUnitString () const |
| Returns selected angular unit as a string. More... | |
| QString | getCondensedAngularUnitString () const |
| Returns selected angular unit as a condensed string. More... | |
| QString | getHeightUnitString () const |
| Returns height unit. More... | |
| DistanceMapGenerationTool::FillStrategyType | getFillingStrategy () const |
| Returns the grid filling strategy. More... | |
| DistanceMapGenerationTool::EmptyCellFillOption | getEmptyCellFillingOption () const |
| Returns the empty cells filling option. More... | |
| ProjectionMode | getProjectionMode () const |
| Returns current projection mode. More... | |
| void | getGridXValues (double &minX, double &maxX, double &step, ANGULAR_UNIT unit=ANG_RAD) const |
| Returns the current 'X' parameters. More... | |
| void | getGridYValues (double &minY, double &maxY, double &step, ANGULAR_UNIT unit=ANG_RAD) const |
| Returns the current 'Y' parameters. More... | |
| double | getScaleYStep (ANGULAR_UNIT unit=ANG_RAD) const |
| Returns scale 'Y' step (current unit) More... | |
Protected Slots | |
| void | projectionModeChanged (int) |
| void | angularUnitChanged (int) |
| void | updateGridSteps () |
| void | updateProfileRevolDim (int) |
| void | updateProfileOrigin () |
| void | colorScaleChanged (int) |
| void | spawnColorScaleEditor () |
| void | updateHeightUnits () |
| void | exportMapAsCloud () |
| void | exportMapAsMesh () |
| void | exportMapAsGrid () |
| void | exportMapAsImage () |
| void | exportProfilesAsDXF () |
| void | loadOverlaySymbols () |
| void | clearOverlaySymbols () |
| void | overlaySymbolsSizeChanged (int) |
| void | overlaySymbolsColorChanged () |
| void | overlayGridColorChanged () |
| void | labelFontSizeChanged (int) |
| void | labelPrecisionChanged (int) |
| void | baseRadiusChanged (double) |
| void | colorRampStepsChanged (int) |
| void | toggleOverlayGrid (bool) |
| void | changeGridColor () |
| void | changeSymbolColor () |
| void | toggleColorScaleDisplay (bool) |
| void | updateVolumes () |
| void | updateOverlayGrid () |
| Updates overlat grid (if any) More... | |
| void | update () |
| Updates map (and display) More... | |
Protected Member Functions | |
| QSharedPointer< DistanceMapGenerationTool::Map > | updateMap () |
| Updates internal map. More... | |
| void | updateMapTexture () |
| Updates internal map texture (if any) More... | |
| void | updateZoom (ccBBox &box) |
| Updates 2D view zoom. More... | |
| void | clearView () |
| Clears the 3D view. More... | |
| double | getBaseRadius () const |
| Returns currently applicable base radius. More... | |
| double | getSpinboxAngularValue (QDoubleSpinBox *spinBox, DistanceMapGenerationDlg::ANGULAR_UNIT unit) const |
| Returns the angle in a particular spinbox in the specified units. More... | |
| void | initFromPersistentSettings () |
| Loads parameters from persistent settings. More... | |
| void | saveToPersistentSettings () |
| Saves parameters to persistent settings. More... | |
| void | updateMinAndMaxLimits () |
| Updates the min and max limits (fields) More... | |
Protected Attributes | |
| ecvMainAppInterface * | m_app |
| Application interface. More... | |
| ccPointCloud * | m_cloud |
| Associated cloud. More... | |
| ccPolyline * | m_profile |
| Associated profile. More... | |
| ccScalarField * | m_sf |
| Associated scalar field. More... | |
| QSharedPointer< DistanceMapGenerationTool::Map > | m_map |
| Internal map structure. More... | |
| ANGULAR_UNIT | m_angularUnits |
| Current angular units. More... | |
| ccMapWindow * | m_window |
| 2D display More... | |
| ccColorScaleSelector * | m_colorScaleSelector |
| Color scale selector. More... | |
| ccSymbolCloud * | m_xLabels |
| X labels. More... | |
| ccSymbolCloud * | m_yLabels |
| Y labels. More... | |
| QColor | m_gridColor |
| Grid color. More... | |
| QColor | m_symbolColor |
| Symbols color. More... | |
Dialog for generating a distance map (surface of revolution)
Definition at line 35 of file distanceMapGenerationDlg.h.
Angular units.
| Enumerator | |
|---|---|
| ANG_DEG | |
| ANG_RAD | |
| ANG_GRAD | |
Definition at line 50 of file distanceMapGenerationDlg.h.
Projection mode.
| Enumerator | |
|---|---|
| PROJ_CYLINDRICAL | |
| PROJ_CONICAL | |
Definition at line 70 of file distanceMapGenerationDlg.h.
| DistanceMapGenerationDlg::DistanceMapGenerationDlg | ( | ccPointCloud * | cloud, |
| ccScalarField * | sf, | ||
| ccPolyline * | polyline, | ||
| ecvMainAppInterface * | app = 0 |
||
| ) |
Default constructor.
Definition at line 94 of file distanceMapGenerationDlg.cpp.
References ecvDisplayTools::AddToOwnDB(), ecvGenericDisplayTools::ALIGN_HMIDDLE, ecvGenericDisplayTools::ALIGN_HRIGHT, ecvGenericDisplayTools::ALIGN_VBOTTOM, ecvGenericDisplayTools::ALIGN_VMIDDLE, angularUnitChanged(), baseRadiusChanged(), ecvColor::black(), changeGridColor(), changeSymbolColor(), clearOverlaySymbols(), colorRampStepsChanged(), colorScaleChanged(), DEFAULT_LABEL_MARGIN, ecvDisplayTools::DisplayOverlayEntities(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, exportMapAsCloud(), exportMapAsGrid(), exportMapAsImage(), exportMapAsMesh(), exportProfilesAsDXF(), ccScalarField::getColorScale(), ecvMainAppInterface::getColorScalesManager(), ccColorScalesManager::GetDefaultScale(), ecvDisplayTools::GetDisplayParameters(), ccGenericPointCloud::getOwnBB(), DistanceMapGenerationTool::GetPoylineMetaData(), ccColorScaleSelector::init(), initFromPersistentSettings(), ecvDisplayTools::INTERACT_CLICKABLE_ITEMS, ecvDisplayTools::INTERACT_PAN, ecvDisplayTools::INTERACT_ZOOM_CAMERA, DxfProfilesExporter::IsEnabled(), cloudViewer::BoundingBoxTpl< T >::isValid(), labelFontSizeChanged(), labelPrecisionChanged(), loadOverlaySymbols(), m_angularUnits, m_app, m_cloud, m_colorScaleSelector, m_profile, m_sf, m_window, m_xLabels, m_yLabels, ccColorScale::MAX_STEPS, cloudViewer::BoundingBoxTpl< T >::maxCorner(), ccColorScale::MIN_STEPS, cloudViewer::BoundingBoxTpl< T >::minCorner(), DistanceMapGenerationTool::ProfileMetaData::origin, overlayGridColorChanged(), overlaySymbolsColorChanged(), overlaySymbolsSizeChanged(), params, projectionModeChanged(), DistanceMapGenerationTool::ProfileMetaData::revolDim, ecvDisplayTools::SetDisplayParameters(), ecvDisplayTools::SetInteractionMode(), ccSymbolCloud::setLabelAlignmentFlags(), ecvDisplayTools::SetPerspectiveState(), ccColorScaleSelector::setSelectedScale(), ccSymbolCloud::setSymbolSize(), ccMapWindow::showSF(), ccSymbolCloud::showSymbols(), spawnColorScaleEditor(), toggleColorScaleDisplay(), toggleOverlayGrid(), Tuple3Tpl< Type >::u, update(), updateGridSteps(), updateHeightUnits(), updateMinAndMaxLimits(), updateOverlayGrid(), updateProfileOrigin(), updateProfileRevolDim(), updateVolumes(), ecvColor::white(), Tuple3Tpl< Type >::x, XLABEL_CLOUD_NAME, Tuple3Tpl< Type >::y, YLABEL_CLOUD_NAME, and Tuple3Tpl< Type >::z.
|
virtual |
Default destructor.
Definition at line 341 of file distanceMapGenerationDlg.cpp.
|
protectedslot |
Definition at line 883 of file distanceMapGenerationDlg.cpp.
References ANG_DEG, ANG_GRAD, ANG_RAD, getAngularUnitString(), getSpinboxAngularValue(), m_angularUnits, M_PI, cloudViewer::RadiansToDegrees(), SetSpinBoxValues(), and updateOverlayGrid().
Referenced by DistanceMapGenerationDlg(), and initFromPersistentSettings().
|
protectedslot |
Definition at line 1109 of file distanceMapGenerationDlg.cpp.
References getBaseRadius(), ecvDisplayTools::GetViewportParameters(), m_window, params, ecvDisplayTools::RedrawDisplay(), and ecvDisplayTools::SetViewportParameters().
Referenced by DistanceMapGenerationDlg(), and projectionModeChanged().
|
protectedslot |
Definition at line 1914 of file distanceMapGenerationDlg.cpp.
References m_gridColor, and overlayGridColorChanged().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1923 of file distanceMapGenerationDlg.cpp.
References m_symbolColor, and overlaySymbolsColorChanged().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1584 of file distanceMapGenerationDlg.cpp.
References ccHObject::filterChildren(), ecvDisplayTools::GetOwnDB(), m_window, m_xLabels, m_yLabels, CV_TYPES::POINT_CLOUD, ecvDisplayTools::RedrawDisplay(), and ecvDisplayTools::RemoveFromOwnDB().
Referenced by DistanceMapGenerationDlg(), update(), and updateProfileOrigin().
|
protected |
Clears the 3D view.
Definition at line 604 of file distanceMapGenerationDlg.cpp.
References ccHObject::filterChildren(), ecvDisplayTools::GetOwnDB(), m_window, m_xLabels, m_yLabels, CV_TYPES::MESH, CV_TYPES::POLY_LINE, ecvDisplayTools::RemoveFromOwnDB(), ccMapWindow::setAssociatedScalarField(), and ccDrawableObject::setVisible().
Referenced by projectionModeChanged(), and update().
|
protectedslot |
Definition at line 1694 of file distanceMapGenerationDlg.cpp.
References colorScaleChanged().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 827 of file distanceMapGenerationDlg.cpp.
References ccMapWindow::getAssociatedScalarField(), ccColorScaleSelector::getSelectedScale(), m_colorScaleSelector, m_window, ecvDisplayTools::RedrawDisplay(), ccScalarField::setColorRampSteps(), ccScalarField::setColorScale(), and updateMapTexture().
Referenced by colorRampStepsChanged(), and DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1186 of file distanceMapGenerationDlg.cpp.
References ecvMainAppInterface::addToDB(), DistanceMapGenerationTool::ConvertMapToCloud(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, getBaseRadius(), ccPointCloud::getCurrentDisplayedScalarField(), ccObject::getName(), ccColorScaleSelector::getSelectedScale(), m_app, m_cloud, m_colorScaleSelector, m_map, m_profile, ccScalarField::setColorScale(), and ccObject::setName().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1268 of file distanceMapGenerationDlg.cpp.
References ConvertAngleFromRad(), ecvFileUtils::defaultDocPath(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, filename, getAngularUnitString(), getHeightUnitString(), m_angularUnits, m_app, m_map, cloudViewer::t::geometry::path, DistanceMapGenerationTool::SaveMapAsCSVMatrix(), and ecvMainAppInterface::STD_CONSOLE_MESSAGE.
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1307 of file distanceMapGenerationDlg.cpp.
References ccRenderToFileDlg::dontScalePoints(), ccRenderToFileDlg::getFilename(), ecvMainAppInterface::getMainWindow(), ccRenderToFileDlg::getZoom(), ecvDisplayTools::GlHeight(), ecvDisplayTools::GlWidth(), ccRenderToFileDlg::hideOptions(), m_app, m_window, ccRenderToFileDlg::renderOverlayItems(), and ecvDisplayTools::RenderToFile().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1214 of file distanceMapGenerationDlg.cpp.
References ecvMainAppInterface::addToDB(), DistanceMapGenerationTool::ProfileMetaData::computeCloudToProfileOriginTrans(), DistanceMapGenerationTool::ConvertMapToImage(), DistanceMapGenerationTool::ConvertProfileToMesh(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, ccObject::getName(), DistanceMapGenerationTool::GetPoylineMetaData(), ccColorScaleSelector::getSelectedScale(), m_app, m_cloud, m_colorScaleSelector, m_map, m_profile, and ccObject::setName().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1323 of file distanceMapGenerationDlg.cpp.
References ANG_RAD, ConvertAngleFromRad(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, getAngularUnitString(), getCondensedAngularUnitString(), getHeightUnitString(), DxfProfilesExportDlg::getHorizFilename(), DistanceMapGenerationTool::GetPolylineHeightShift(), getScaleYStep(), getSpinboxAngularValue(), DxfProfilesExportDlg::getVertFilename(), m_angularUnits, m_app, m_map, M_PI, m_profile, params, DxfProfilesExporter::SaveHorizontalProfiles(), DxfProfilesExporter::SaveVerticalProfiles(), and ecvMainAppInterface::STD_CONSOLE_MESSAGE.
Referenced by DistanceMapGenerationDlg().
| DistanceMapGenerationDlg::ANGULAR_UNIT DistanceMapGenerationDlg::getAngularUnit | ( | ) | const |
Returns selected angular unit.
Definition at line 460 of file distanceMapGenerationDlg.cpp.
References ANG_DEG, ANG_GRAD, ANG_RAD, and m_angularUnits.
| QString DistanceMapGenerationDlg::getAngularUnitString | ( | ) | const |
Returns selected angular unit as a string.
Definition at line 475 of file distanceMapGenerationDlg.cpp.
References m_angularUnits.
Referenced by angularUnitChanged(), exportMapAsGrid(), and exportProfilesAsDXF().
|
protected |
Returns currently applicable base radius.
Warning: return always 1 for concial projection mode!
Definition at line 1103 of file distanceMapGenerationDlg.cpp.
References getProjectionMode(), and PROJ_CONICAL.
Referenced by baseRadiusChanged(), and exportMapAsCloud().
| QString DistanceMapGenerationDlg::getCondensedAngularUnitString | ( | ) | const |
Returns selected angular unit as a condensed string.
Definition at line 490 of file distanceMapGenerationDlg.cpp.
References m_angularUnits.
Referenced by exportProfilesAsDXF(), and toggleOverlayGrid().
| DistanceMapGenerationTool::EmptyCellFillOption DistanceMapGenerationDlg::getEmptyCellFillingOption | ( | ) | const |
Returns the empty cells filling option.
Definition at line 1138 of file distanceMapGenerationDlg.cpp.
References DistanceMapGenerationTool::FILL_INTERPOLATE, DistanceMapGenerationTool::FILL_WITH_ZERO, and DistanceMapGenerationTool::LEAVE_EMPTY.
Referenced by updateMap().
| DistanceMapGenerationTool::FillStrategyType DistanceMapGenerationDlg::getFillingStrategy | ( | ) | const |
Returns the grid filling strategy.
Definition at line 1123 of file distanceMapGenerationDlg.cpp.
References DistanceMapGenerationTool::FILL_STRAT_AVG_DIST, DistanceMapGenerationTool::FILL_STRAT_MAX_DIST, DistanceMapGenerationTool::FILL_STRAT_MIN_DIST, and DistanceMapGenerationTool::INVALID_STRATEGY_TYPE.
Referenced by updateMap().
| void DistanceMapGenerationDlg::getGridXValues | ( | double & | minX, |
| double & | maxX, | ||
| double & | step, | ||
| ANGULAR_UNIT | unit = ANG_RAD |
||
| ) | const |
Returns the current 'X' parameters.
Always correspond to angular values
Definition at line 996 of file distanceMapGenerationDlg.cpp.
References getSpinboxAngularValue().
Referenced by toggleOverlayGrid(), and updateGridSteps().
| void DistanceMapGenerationDlg::getGridYValues | ( | double & | minY, |
| double & | maxY, | ||
| double & | step, | ||
| ANGULAR_UNIT | unit = ANG_RAD |
||
| ) | const |
Returns the current 'Y' parameters.
Depends on the current projection mode (i.e. height or latitude). The 'unit' parameter is only required for Conical mode.
Definition at line 1006 of file distanceMapGenerationDlg.cpp.
References getProjectionMode(), getSpinboxAngularValue(), PROJ_CONICAL, and PROJ_CYLINDRICAL.
Referenced by toggleOverlayGrid(), update(), updateGridSteps(), and updateMap().
| QString DistanceMapGenerationDlg::getHeightUnitString | ( | ) | const |
Returns height unit.
Definition at line 1118 of file distanceMapGenerationDlg.cpp.
Referenced by exportMapAsGrid(), exportProfilesAsDXF(), toggleOverlayGrid(), and updateHeightUnits().
| DistanceMapGenerationDlg::ProjectionMode DistanceMapGenerationDlg::getProjectionMode | ( | ) | const |
Returns current projection mode.
Definition at line 446 of file distanceMapGenerationDlg.cpp.
References PROJ_CONICAL, and PROJ_CYLINDRICAL.
Referenced by getBaseRadius(), getGridYValues(), getScaleYStep(), loadOverlaySymbols(), projectionModeChanged(), toggleOverlayGrid(), update(), updateMap(), updateMapTexture(), and updateVolumes().
| double DistanceMapGenerationDlg::getScaleYStep | ( | ANGULAR_UNIT | unit = ANG_RAD | ) | const |
Returns scale 'Y' step (current unit)
The 'unit' parameter is only required for Conical mode.
Definition at line 1028 of file distanceMapGenerationDlg.cpp.
References getProjectionMode(), getSpinboxAngularValue(), and PROJ_CYLINDRICAL.
Referenced by exportProfilesAsDXF(), and toggleOverlayGrid().
|
protected |
Returns the angle in a particular spinbox in the specified units.
Definition at line 505 of file distanceMapGenerationDlg.cpp.
References ConvertAngleFromRad(), ConvertAngleToRad(), and m_angularUnits.
Referenced by angularUnitChanged(), exportProfilesAsDXF(), getGridXValues(), getGridYValues(), getScaleYStep(), toggleOverlayGrid(), and updateMap().
|
protected |
Loads parameters from persistent settings.
Definition at line 1988 of file distanceMapGenerationDlg.cpp.
References angularUnitChanged(), m_colorScaleSelector, ccColorScaleSelector::setSelectedScale(), and updateHeightUnits().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1662 of file distanceMapGenerationDlg.cpp.
References ccHObject::getChild(), ccHObject::getChildrenNumber(), ecvDisplayTools::GetDisplayParameters(), ecvDisplayTools::GetOwnDB(), ccObject::isA(), m_window, params, CV_TYPES::POINT_CLOUD, ecvDisplayTools::RedrawDisplay(), and ecvDisplayTools::SetDisplayParameters().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1683 of file distanceMapGenerationDlg.cpp.
References ecvDisplayTools::GetDisplayParameters(), m_window, params, ecvDisplayTools::RedrawDisplay(), and ecvDisplayTools::SetDisplayParameters().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1414 of file distanceMapGenerationDlg.cpp.
References ccSymbolCloud::addLabel(), cloudViewer::PointCloudTpl< T >::addPoint(), ecvDisplayTools::AddToOwnDB(), cloudViewer::PointCloudTpl< T >::capacity(), DistanceMapGenerationTool::ProfileMetaData::computeCloudToSurfaceOriginTrans(), DistanceMapGenerationTool::ConvertCloudToConical(), DistanceMapGenerationTool::ConvertCloudToCylindrical(), ecvFileUtils::defaultDocPath(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, error(), filename, DistanceMapGenerationTool::GetPoylineMetaData(), getProjectionMode(), m_app, m_map, m_profile, m_symbolColor, m_window, DistanceMapGenerationTool::ProfileMetaData::origin, cloudViewer::t::geometry::path, PROJ_CYLINDRICAL, qtCompatSplitRegex(), ecvDisplayTools::RedrawDisplay(), ccSymbolCloud::reserveLabelArray(), ccPointCloud::reserveThePointsTable(), DistanceMapGenerationTool::ProfileMetaData::revolDim, ccSymbolCloud::setFontSize(), ccSymbolCloud::setSymbolSize(), ccDrawableObject::setTempColor(), ccDrawableObject::setVisible(), ccPointCloud::shrinkToFit(), cloudViewer::PointCloudTpl< T >::size(), QtCompat::SkipEmptyParts, and Tuple3Tpl< Type >::u.
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1639 of file distanceMapGenerationDlg.cpp.
References ccHObject::getChild(), ccHObject::getChildrenNumber(), ecvDisplayTools::GetOwnDB(), ccObject::isA(), m_gridColor, m_window, m_xLabels, m_yLabels, CV_TYPES::POLY_LINE, ecvDisplayTools::RedrawDisplay(), ccQtHelpers::SetButtonColor(), ccEntityAction::setColor(), and ccDrawableObject::setTempColor().
Referenced by changeGridColor(), and DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1617 of file distanceMapGenerationDlg.cpp.
References ccHObject::getChild(), ccHObject::getChildrenNumber(), ecvDisplayTools::GetOwnDB(), ccObject::isA(), m_symbolColor, m_window, m_xLabels, m_yLabels, CV_TYPES::POINT_CLOUD, ecvDisplayTools::RedrawDisplay(), ccQtHelpers::SetButtonColor(), and ccDrawableObject::setTempColor().
Referenced by changeSymbolColor(), and DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1600 of file distanceMapGenerationDlg.cpp.
References ccHObject::getChild(), ccHObject::getChildrenNumber(), ecvDisplayTools::GetOwnDB(), ccObject::isA(), m_window, m_xLabels, m_yLabels, CV_TYPES::POINT_CLOUD, and ecvDisplayTools::RedrawDisplay().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 411 of file distanceMapGenerationDlg.cpp.
References baseRadiusChanged(), clearView(), getProjectionMode(), m_map, PROJ_CONICAL, PROJ_CYLINDRICAL, update(), and updateGridSteps().
Referenced by DistanceMapGenerationDlg().
|
protected |
Saves parameters to persistent settings.
Definition at line 2073 of file distanceMapGenerationDlg.cpp.
References ccColorScaleSelector::getSelectedScale(), and m_colorScaleSelector.
Referenced by update().
|
protectedslot |
Definition at line 846 of file distanceMapGenerationDlg.cpp.
References ccColorScalesManager::BGYR, ccColorScaleEditorDialog::getActiveScale(), ecvMainAppInterface::getColorScalesManager(), ccColorScalesManager::getDefaultScale(), ecvMainAppInterface::getMainWindow(), ccColorScaleSelector::getSelectedScale(), ccColorScaleSelector::init(), m_app, m_colorScaleSelector, ccColorScaleSelector::setSelectedScale(), and ccColorScalesManager::toPersistentSettings().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1932 of file distanceMapGenerationDlg.cpp.
References m_window, ecvDisplayTools::RedrawDisplay(), and ccMapWindow::showSF().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1702 of file distanceMapGenerationDlg.cpp.
References ccHObject::addChild(), ccSymbolCloud::addLabel(), cloudViewer::PointCloudTpl< T >::addPoint(), cloudViewer::ReferenceCloud::addPointIndex(), ecvDisplayTools::AddToOwnDB(), ANG_RAD, cloudViewer::utility::ceil(), ccSymbolCloud::clear(), DistanceMapGenerationTool::ConicalProjectN(), ConvertAngleFromRad(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, ccHObject::filterChildren(), getCondensedAngularUnitString(), getGridXValues(), getGridYValues(), getHeightUnitString(), ecvDisplayTools::GetOwnDB(), getProjectionMode(), getScaleYStep(), getSpinboxAngularValue(), ccDrawableObject::isVisible(), m_angularUnits, m_app, m_gridColor, m_map, m_window, m_xLabels, m_yLabels, max(), PC_ONE, CV_TYPES::POLY_LINE, PROJ_CONICAL, DistanceMapGenerationTool::ProjectPointOnCone(), ecvDisplayTools::RedrawDisplay(), ecvDisplayTools::RemoveFromOwnDB(), ccPointCloud::reserve(), ccSymbolCloud::reserve(), ccSymbolCloud::reserveLabelArray(), ccPolyline::set2DMode(), ccPolyline::setColor(), ccObject::setEnabled(), ccDrawableObject::setTempColor(), ccDrawableObject::setVisible(), ccDrawableObject::showColors(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by DistanceMapGenerationDlg(), and updateOverlayGrid().
|
protectedslot |
Updates map (and display)
Definition at line 630 of file distanceMapGenerationDlg.cpp.
References cloudViewer::ScalarField::addElement(), ecvDisplayTools::AddToOwnDB(), ANG_RAD, clearOverlaySymbols(), clearView(), ccScalarField::computeMinAndMax(), DistanceMapGenerationTool::ConvertConicalMapToMesh(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, ccColorScalesManager::GetDefaultScale(), ccHObject::getDisplayBB_recursive(), getGridYValues(), ecvDisplayTools::GetOwnDB(), getProjectionMode(), ccColorScaleSelector::getSelectedScale(), m_app, m_colorScaleSelector, m_map, m_window, PROJ_CONICAL, PROJ_CYLINDRICAL, saveToPersistentSettings(), ccMapWindow::setAssociatedScalarField(), ccScalarField::setColorRampSteps(), ccScalarField::setColorScale(), ccGLMatrixTpl< T >::setTranslation(), ccDrawableObject::setVisible(), ccGenericMesh::showNormals(), updateHeightUnits(), updateMap(), updateMapTexture(), updateVolumes(), and updateZoom().
Referenced by DistanceMapGenerationDlg(), and projectionModeChanged().
|
protectedslot |
Definition at line 1079 of file distanceMapGenerationDlg.cpp.
References cloudViewer::utility::ceil(), getGridXValues(), getGridYValues(), m_angularUnits, and max().
Referenced by DistanceMapGenerationDlg(), and projectionModeChanged().
|
protectedslot |
Definition at line 733 of file distanceMapGenerationDlg.cpp.
References ccMapWindow::getAssociatedScalarField(), getHeightUnitString(), m_window, cloudViewer::ScalarField::setName(), and updateOverlayGrid().
Referenced by DistanceMapGenerationDlg(), initFromPersistentSettings(), and update().
|
protected |
Updates internal map.
Definition at line 1153 of file distanceMapGenerationDlg.cpp.
References ANG_RAD, DistanceMapGenerationTool::ProfileMetaData::computeCloudToSurfaceOriginTrans(), DistanceMapGenerationTool::CreateMap(), getEmptyCellFillingOption(), getFillingStrategy(), getGridYValues(), DistanceMapGenerationTool::GetPoylineMetaData(), getProjectionMode(), getSpinboxAngularValue(), m_app, m_cloud, m_profile, m_sf, PROJ_CONICAL, and DistanceMapGenerationTool::ProfileMetaData::revolDim.
Referenced by update().
|
protected |
Updates internal map texture (if any)
Definition at line 745 of file distanceMapGenerationDlg.cpp.
References DistanceMapGenerationTool::ConvertMapToImage(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, ecvDisplayTools::GetOwnDB(), getProjectionMode(), ccColorScaleSelector::getSelectedScale(), m_app, m_colorScaleSelector, m_map, m_window, CV_TYPES::MESH, CV_TYPES::PLANE, PROJ_CONICAL, PROJ_CYLINDRICAL, and ecvDisplayTools::RedrawDisplay().
Referenced by colorScaleChanged(), and update().
|
protected |
Updates the min and max limits (fields)
Definition at line 343 of file distanceMapGenerationDlg.cpp.
References DistanceMapGenerationTool::ProfileMetaData::computeCloudToSurfaceOriginTrans(), DistanceMapGenerationTool::ComputeMinAndMaxLatitude_rad(), ConvertAngleFromRad(), cloudViewer::ReferenceCloud::getPoint(), DistanceMapGenerationTool::GetPoylineMetaData(), height, DistanceMapGenerationTool::ProfileMetaData::heightShift, m_angularUnits, m_cloud, m_profile, DistanceMapGenerationTool::ProfileMetaData::revolDim, cloudViewer::ReferenceCloud::size(), Tuple3Tpl< Type >::x, and Tuple3Tpl< Type >::y.
Referenced by DistanceMapGenerationDlg(), and updateProfileOrigin().
|
protectedslot |
Updates overlat grid (if any)
Definition at line 1698 of file distanceMapGenerationDlg.cpp.
References toggleOverlayGrid().
Referenced by angularUnitChanged(), DistanceMapGenerationDlg(), and updateHeightUnits().
|
protectedslot |
Definition at line 1047 of file distanceMapGenerationDlg.cpp.
References clearOverlaySymbols(), DistanceMapGenerationTool::GetPoylineMetaData(), DistanceMapGenerationTool::ProfileMetaData::heightShift, m_profile, DistanceMapGenerationTool::ProfileMetaData::origin, DistanceMapGenerationTool::ProfileMetaData::revolDim, DistanceMapGenerationTool::SetPolylineHeightShift(), DistanceMapGenerationTool::SetPoylineOrigin(), Tuple3Tpl< Type >::u, and updateMinAndMaxLimits().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1036 of file distanceMapGenerationDlg.cpp.
References m_profile, and DistanceMapGenerationTool::SetPoylineRevolDim().
Referenced by DistanceMapGenerationDlg().
|
protectedslot |
Definition at line 1939 of file distanceMapGenerationDlg.cpp.
References DistanceMapGenerationTool::ComputeSurfacesAndVolumes(), getProjectionMode(), m_map, m_profile, DistanceMapGenerationTool::Measures::negative, DistanceMapGenerationTool::Measures::positive, PROJ_CONICAL, DistanceMapGenerationTool::Measures::theoretical, and DistanceMapGenerationTool::Measures::total.
Referenced by DistanceMapGenerationDlg(), and update().
|
protected |
Updates 2D view zoom.
Definition at line 517 of file distanceMapGenerationDlg.cpp.
References ecvGui::ParamStruct::colorScaleRampWidth, ecvDisplayTools::Deprecate3DLayer(), Vector3Tpl< double >::fromArray(), ccMapWindow::getAssociatedScalarField(), cloudViewer::BoundingBoxTpl< T >::getCenter(), cloudViewer::BoundingBoxTpl< T >::getDiagNorm(), cloudViewer::BoundingBoxTpl< T >::getDiagVec(), ecvDisplayTools::GetDisplayParameters(), ccSymbolCloud::getFontSize(), ccSymbolCloud::getLabel(), ecvDisplayTools::GetTextDisplayFont(), ecvDisplayTools::GetViewportParameters(), ecvDisplayTools::GlHeight(), ecvDisplayTools::GlWidth(), cloudViewer::GreaterThanEpsilon(), ecvDisplayTools::InvalidateViewport(), ecvDisplayTools::InvalidateVisualization(), cloudViewer::BoundingBoxTpl< T >::isValid(), ccDrawableObject::isVisible(), m_window, m_yLabels, max(), cloudViewer::BoundingBoxTpl< T >::maxCorner(), cloudViewer::BoundingBoxTpl< T >::minCorner(), params, ecvDisplayTools::RedrawDisplay(), ecvDisplayTools::SetCameraPos(), ecvDisplayTools::SetPivotPoint(), ecvDisplayTools::SetViewportParameters(), ccMapWindow::sfShown(), cloudViewer::PointCloudTpl< T >::size(), Tuple3Tpl< Type >::u, width, Tuple3Tpl< Type >::x, and Tuple3Tpl< Type >::y.
Referenced by update().
|
protected |
Current angular units.
Definition at line 184 of file distanceMapGenerationDlg.h.
Referenced by angularUnitChanged(), DistanceMapGenerationDlg(), exportMapAsGrid(), exportProfilesAsDXF(), getAngularUnit(), getAngularUnitString(), getCondensedAngularUnitString(), getSpinboxAngularValue(), toggleOverlayGrid(), updateGridSteps(), and updateMinAndMaxLimits().
|
protected |
Application interface.
Definition at line 169 of file distanceMapGenerationDlg.h.
Referenced by DistanceMapGenerationDlg(), exportMapAsCloud(), exportMapAsGrid(), exportMapAsImage(), exportMapAsMesh(), exportProfilesAsDXF(), loadOverlaySymbols(), spawnColorScaleEditor(), toggleOverlayGrid(), update(), updateMap(), and updateMapTexture().
|
protected |
Associated cloud.
Definition at line 172 of file distanceMapGenerationDlg.h.
Referenced by DistanceMapGenerationDlg(), exportMapAsCloud(), exportMapAsMesh(), updateMap(), and updateMinAndMaxLimits().
|
protected |
Color scale selector.
Definition at line 190 of file distanceMapGenerationDlg.h.
Referenced by colorScaleChanged(), DistanceMapGenerationDlg(), exportMapAsCloud(), exportMapAsMesh(), initFromPersistentSettings(), saveToPersistentSettings(), spawnColorScaleEditor(), update(), and updateMapTexture().
|
protected |
Grid color.
Definition at line 198 of file distanceMapGenerationDlg.h.
Referenced by changeGridColor(), overlayGridColorChanged(), and toggleOverlayGrid().
|
protected |
Internal map structure.
Definition at line 181 of file distanceMapGenerationDlg.h.
Referenced by exportMapAsCloud(), exportMapAsGrid(), exportMapAsMesh(), exportProfilesAsDXF(), loadOverlaySymbols(), projectionModeChanged(), toggleOverlayGrid(), update(), updateMapTexture(), and updateVolumes().
|
protected |
Associated profile.
Definition at line 175 of file distanceMapGenerationDlg.h.
Referenced by DistanceMapGenerationDlg(), exportMapAsCloud(), exportMapAsMesh(), exportProfilesAsDXF(), loadOverlaySymbols(), updateMap(), updateMinAndMaxLimits(), updateProfileOrigin(), updateProfileRevolDim(), and updateVolumes().
|
protected |
Associated scalar field.
Definition at line 178 of file distanceMapGenerationDlg.h.
Referenced by DistanceMapGenerationDlg(), and updateMap().
|
protected |
Symbols color.
Definition at line 201 of file distanceMapGenerationDlg.h.
Referenced by changeSymbolColor(), loadOverlaySymbols(), and overlaySymbolsColorChanged().
|
protected |
2D display
Definition at line 187 of file distanceMapGenerationDlg.h.
Referenced by baseRadiusChanged(), clearOverlaySymbols(), clearView(), colorScaleChanged(), DistanceMapGenerationDlg(), exportMapAsImage(), labelFontSizeChanged(), labelPrecisionChanged(), loadOverlaySymbols(), overlayGridColorChanged(), overlaySymbolsColorChanged(), overlaySymbolsSizeChanged(), toggleColorScaleDisplay(), toggleOverlayGrid(), update(), updateHeightUnits(), updateMapTexture(), and updateZoom().
|
protected |
X labels.
Definition at line 193 of file distanceMapGenerationDlg.h.
Referenced by clearOverlaySymbols(), clearView(), DistanceMapGenerationDlg(), overlayGridColorChanged(), overlaySymbolsColorChanged(), overlaySymbolsSizeChanged(), and toggleOverlayGrid().
|
protected |
Y labels.
Definition at line 195 of file distanceMapGenerationDlg.h.
Referenced by clearOverlaySymbols(), clearView(), DistanceMapGenerationDlg(), overlayGridColorChanged(), overlaySymbolsColorChanged(), overlaySymbolsSizeChanged(), toggleOverlayGrid(), and updateZoom().