![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <LasSaveDialog.h>
Public Slots | |
| void | handleSelectedVersionChange (const QString &) |
| void | handleSelectedPointFormatChange (int index) |
| When the user changes the point format, we need to update the scalar field form. More... | |
| void | handleComboBoxChange (int index) |
| void | addExtraScalarFieldCard () |
Public Member Functions | |
| LasSaveDialog (ccPointCloud *cloud, QWidget *parent=nullptr) | |
| void | setVersionAndPointFormat (const LasDetails::LasVersion versionAndFmt) |
| void | setOptimalScale (const CCVector3d &scale, bool autoCheck=false) |
| Set scale that would offer the user the best precision. More... | |
| void | setOriginalScale (const CCVector3d &scale, bool canUseScale, bool autoCheck=true) |
| void | setExtraScalarFields (const std::vector< LasExtraScalarField > &extraScalarFields) |
| Set the extra LAS scalar fields saved from the original file. More... | |
| uint8_t | selectedPointFormat () const |
| Returns the point format currently selected. More... | |
| void | selectedVersion (uint8_t &versionMajor, uint8_t &versionMinor) const |
| Returns the version currently selected. More... | |
| CCVector3d | chosenScale () const |
| Returns the currently selected scale. More... | |
| bool | shouldSaveRGB () const |
| Returns whether the user wants to save RGB. More... | |
| bool | shouldSaveWaveform () const |
| Returns whether the user wants to save the Waveforms. More... | |
| std::vector< LasScalarField > | fieldsToSave () const |
| std::vector< LasExtraScalarField > | extraFieldsToSave () const |
This dialog is responsible for presenting to the user the different options when saving a point cloud to a LAS/LAZ file.
|
explicit |
|
slot |
Referenced by LasSaveDialog().
| CCVector3d LasSaveDialog::chosenScale | ( | ) | const |
Returns the currently selected scale.
References Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by LasIOFilter::saveToFile().
| std::vector< LasExtraScalarField > LasSaveDialog::extraFieldsToSave | ( | ) | const |
References CVLog::Error().
Referenced by LasIOFilter::saveToFile().
| std::vector< LasScalarField > LasSaveDialog::fieldsToSave | ( | ) | const |
Returns the vector of LAS scalar fields the user wants to save.
Each LAS scalar fields is mapped to an existing point cloud's ccScalarField. The mapping is done by us and the user.
References fields, cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), LasScalarField::IdFromName(), name, and selectedPointFormat().
Referenced by LasIOFilter::saveToFile().
|
slot |
When the user changes the ccScalarField it wants to save in the particular LAS field, we check that the values are in range. If they are not we display a small warning
References Utils::distance(), cloudViewer::ScalarField::getMax(), cloudViewer::ScalarField::getMin(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), LasScalarField::IdFromName(), LasScalarField::Range::max, LasScalarField::Range::min, selectedPointFormat(), and LasScalarField::ValueRange().
Referenced by handleSelectedPointFormatChange().
|
slot |
When the user changes the point format, we need to update the scalar field form.
References LasScalarField::ForPointFormat(), handleComboBoxChange(), ccPointCloud::hasColors(), ccPointCloud::hasFWF(), LasDetails::HasRGB(), LasDetails::HasWaveform(), LasScalarField::name(), LasDetails::PointFormatsAvailableForVersion(), and selectedPointFormat().
Referenced by handleSelectedVersionChange(), and LasSaveDialog().
|
slot |
When the selected version changes, we need to update the combo box of point format to match the ones supported by the version
References handleSelectedPointFormatChange(), LasDetails::PointFormatsAvailableForVersion(), and version.
Referenced by LasSaveDialog().
| uint8_t LasSaveDialog::selectedPointFormat | ( | ) | const |
Returns the point format currently selected.
Referenced by fieldsToSave(), handleComboBoxChange(), handleSelectedPointFormatChange(), and LasIOFilter::saveToFile().
| void LasSaveDialog::selectedVersion | ( | uint8_t & | versionMajor, |
| uint8_t & | versionMinor | ||
| ) | const |
Returns the version currently selected.
References qtCompatSplitRefChar().
Referenced by LasIOFilter::saveToFile().
| void LasSaveDialog::setExtraScalarFields | ( | const std::vector< LasExtraScalarField > & | extraScalarFields | ) |
Set the extra LAS scalar fields saved from the original file.
Referenced by LasIOFilter::saveToFile().
| void LasSaveDialog::setOptimalScale | ( | const CCVector3d & | scale, |
| bool | autoCheck = false |
||
| ) |
Set scale that would offer the user the best precision.
References Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by LasIOFilter::saveToFile().
| void LasSaveDialog::setOriginalScale | ( | const CCVector3d & | scale, |
| bool | canUseScale, | ||
| bool | autoCheck = true |
||
| ) |
Set the scale that was used in the original file to save comes from.
References Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by LasIOFilter::saveToFile().
| void LasSaveDialog::setVersionAndPointFormat | ( | const LasDetails::LasVersion | versionAndFmt | ) |
References LasDetails::LasVersion::minorVersion, and LasDetails::LasVersion::pointFormat.
Referenced by LasIOFilter::saveToFile().
| bool LasSaveDialog::shouldSaveRGB | ( | ) | const |
Returns whether the user wants to save RGB.
Referenced by LasIOFilter::saveToFile().
| bool LasSaveDialog::shouldSaveWaveform | ( | ) | const |
Returns whether the user wants to save the Waveforms.
Referenced by LasIOFilter::saveToFile().