![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
LAS with Full WaveForm support (version >= 1.3) filter. More...
#include <LASFWFFilter.h>


Public Member Functions | |
| LASFWFFilter () | |
| virtual CC_FILE_ERROR | loadFile (const QString &filename, ccHObject &container, LoadParameters ¶meters) override |
| Loads one or more entities from a file. More... | |
| virtual bool | canSave (CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override |
| Returns whether this I/O filter can save the specified type of entity. More... | |
| virtual CC_FILE_ERROR | saveToFile (ccHObject *entity, const QString &filename, const SaveParameters ¶meters) override |
| Saves an entity (or a group of) to a file. More... | |
Public Member Functions inherited from FileIOFilter | |
| virtual | ~FileIOFilter ()=default |
| bool | importSupported () const |
| Returns whether this I/O filter can import files. More... | |
| bool | exportSupported () const |
| Returns whether this I/O filter can export files. More... | |
| const QStringList & | getFileFilters (bool onImport) const |
| Returns the file filter(s) for this I/O filter. More... | |
| QString | getDefaultExtension () const |
| Returns the default file extension. More... | |
| virtual void | unregister () |
| Called when the filter is unregistered. More... | |
Static Public Member Functions | |
| static QString | GetFileFilter () |
Static Public Member Functions inherited from FileIOFilter | |
| static QStringList | ImportFilterList () |
| static ccHObject * | LoadFromFile (const QString &filename, LoadParameters ¶meters, Shared filter, CC_FILE_ERROR &result) |
| Loads one or more entities from a file with a known filter. More... | |
| static ccHObject * | LoadFromFile (const QString &filename, LoadParameters ¶meters, CC_FILE_ERROR &result, const QString &fileFilter=QString()) |
| Loads one or more entities from a file with known type. More... | |
| static CC_FILE_ERROR | SaveToFile (ccHObject *entities, const QString &filename, const SaveParameters ¶meters, Shared filter) |
| static CC_FILE_ERROR | SaveToFile (ccHObject *entities, const QString &filename, const SaveParameters ¶meters, const QString &fileFilter) |
| static bool | HandleGlobalShift (const CCVector3d &P, CCVector3d &Pshift, bool &preserveCoordinateShift, LoadParameters &loadParameters, bool useInputCoordinatesShiftIfPossible=false) |
| Shortcut to the ecvGlobalShiftManager mechanism specific for files. More... | |
| static void | DisplayErrorMessage (CC_FILE_ERROR err, const QString &action, const QString &filename) |
| Displays (to console) the message corresponding to a given error code. More... | |
| static bool | CheckForSpecialChars (const QString &filename) |
| Returns whether special characters are present in the input string. More... | |
| static void | ResetSesionCounter () |
| static unsigned | IncreaseSesionCounter () |
| static void | Register (Shared filter) |
| Registers a new filter. More... | |
| static Shared | GetFilter (const QString &fileFilter, bool onImport) |
| Returns the filter corresponding to the given 'file filter'. More... | |
| static Shared | FindBestFilterForExtension (const QString &ext) |
| Returns the best filter (presumably) to open a given file extension. More... | |
| static const FilterContainer & | GetFilters () |
| Returns the set of all registered filters. More... | |
| static void | UnregisterAll () |
| Unregisters all filters. More... | |
Additional Inherited Members | |
Public Types inherited from FileIOFilter | |
| enum | FilterFeature { NoFeatures = 0x0000 , Import = 0x00001 , Export = 0x0002 , BuiltIn = 0x0004 , DynamicInfo = 0x0008 } |
| using | Shared = QSharedPointer< FileIOFilter > |
| Shared type. More... | |
| using | FilterContainer = std::vector< FileIOFilter::Shared > |
| Type of a I/O filters container. More... | |
Protected Member Functions inherited from FileIOFilter | |
| FileIOFilter (const FilterInfo &info) | |
| void | setImportExtensions (const QStringList &extensions) |
| void | setImportFileFilterStrings (const QStringList &filterStrings) |
| void | setExportFileFilterStrings (const QStringList &filterStrings) |
Static Protected Attributes inherited from FileIOFilter | |
| static constexpr float | DEFAULT_PRIORITY = 25.0f |
LAS with Full WaveForm support (version >= 1.3) filter.
Definition at line 14 of file LASFWFFilter.h.
| LASFWFFilter::LASFWFFilter | ( | ) |
Definition at line 182 of file LASFWFFilter.cpp.
References FileIOFilter::Export, GetFileFilter(), and FileIOFilter::Import.
|
overridevirtual |
Returns whether this I/O filter can save the specified type of entity.
| type | entity type |
| multiple | whether the filter can save multiple instances of this entity at once |
| exclusive | whether the filter can only save this type of entity if selected or if it can be mixed with other types |
Reimplemented from FileIOFilter.
Definition at line 189 of file LASFWFFilter.cpp.
References CV_TYPES::POINT_CLOUD, and type.
|
inlinestatic |
Definition at line 19 of file LASFWFFilter.h.
Referenced by LASFWFFilter(), CommandLoadLASFWF::process(), and CommandSaveLASFWF::process().
|
overridevirtual |
Loads one or more entities from a file.
This method must be implemented by children classes.
| filename | file to load |
| container | container to store loaded entities |
| parameters | generic loading parameters |
Reimplemented from FileIOFilter.
Definition at line 848 of file LASFWFFilter.cpp.
References ccHObject::addChild(), cloudViewer::PointCloudTpl< T >::addPoint(), ccPointCloud::addRGBColor(), ccPointCloud::addScalarField(), ecvGlobalShiftManager::ALWAYS_DISPLAY_DIALOG, WaveformDescriptor::bitsPerSample, ecvColor::black(), CC_FERR_CANCELED_BY_USER, CC_FERR_NO_ERROR, CC_FERR_NOT_ENOUGH_MEMORY, CC_FERR_THIRD_PARTY_LIB_FAILURE, color, FileIOFilter::LoadParameters::coordinatesShiftEnabled, descriptors, WaveformDescriptor::digitizerGain, WaveformDescriptor::digitizerOffset, filename, Vector3Tpl< PointCoordinateType >::fromArray(), ccPointCloud::fwfData(), ccPointCloud::fwfDescriptors(), ccColorScalesManager::GetDefaultScale(), ccColorScalesManager::GREY, FileIOFilter::HandleGlobalShift(), ExtraLasField::isShifted, LAS_CLASSIF_KEYPOINT, LAS_CLASSIF_SYNTHETIC, LAS_CLASSIF_VALUE, LAS_CLASSIF_WITHHELD, LAS_CLASSIFICATION, LAS_EXTRA, LAS_FIELD_NAMES, LAS_FLIGHT_LINE_EDGE, LAS_INTENSITY, LAS_NUMBER_OF_RETURNS, LAS_POINT_SOURCE_ID, LAS_RETURN_NUMBER, LAS_SCALE_X_META_DATA, LAS_SCALE_Y_META_DATA, LAS_SCALE_Z_META_DATA, LAS_SCAN_ANGLE_RANK, LAS_SCAN_DIRECTION, LAS_TIME, LAS_USER_DATA, ecvGlobalShiftManager::NO_DIALOG, ecvGlobalShiftManager::NO_DIALOG_AUTO_SHIFT, Vector3Tpl< Type >::norm2(), nProgress, WaveformDescriptor::numberOfSamples, cloudViewer::NormalizedProgress::oneStep(), FileIOFilter::LoadParameters::parentWidget, PrepareLASField(), CVLog::Print(), ProjectionVLR, ccPointCloud::reserve(), ccPointCloud::reserveTheRGBTable(), result, WaveformDescriptor::samplingRate_ps, ccWaveform::setBeamDir(), ccPointCloud::setCurrentDisplayedScalarField(), ccWaveform::setDataDescription(), ccWaveform::setDescriptorID(), ccWaveform::setEchoTime_ps(), ccShiftedObject::setGlobalShift(), ccObject::setMetaData(), ccPointCloud::setPointColor(), ccWaveform::setReturnIndex(), FileIOFilter::LoadParameters::shiftHandlingMode, ccDrawableObject::showColors(), ccDrawableObject::showSF(), cloudViewer::PointCloudTpl< T >::size(), ExtraLasField::startIndex, ToQByteArray(), CVLog::Warning(), ccPointCloud::waveforms(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
|
overridevirtual |
Saves an entity (or a group of) to a file.
This method must be implemented by children classes.
| entity | entity (or group of) to save |
| filename | filename |
| parameters | generic saving parameters |
Reimplemented from FileIOFilter.
Definition at line 201 of file LASFWFFilter.cpp.
References FileIOFilter::SaveParameters::alwaysDisplaySaveDialog, ecvColor::RgbTpl< Type >::b, ccWaveform::beamDir(), ccWaveform::byteCount(), CC_FERR_BAD_ARGUMENT, CC_FERR_BAD_ENTITY_TYPE, CC_FERR_NO_ERROR, CC_FERR_NO_SAVE, CC_FERR_NOT_ENOUGH_MEMORY, CC_FERR_THIRD_PARTY_LIB_FAILURE, CC_FERR_WRITING, cloudViewer::utility::ceil(), ccPointCloud::compressFWFData(), ccWaveform::dataOffset(), ccWaveformProxy::descriptorID(), ccWaveform::echoTime_ps(), FALSE, filename, FromQByteArray(), ccPointCloud::fwfData(), ccPointCloud::fwfDescriptors(), ecvColor::RgbTpl< Type >::g, LasField::GetFormatRecordLength(), ccShiftedObject::getGlobalShift(), LasField::GetLASFields(), ccObject::getMetaData(), cloudViewer::ScalarField::getName(), cloudViewer::PointCloudTpl< T >::getNumberOfScalarFields(), ccShiftedObject::getOwnGlobalBB(), cloudViewer::PointCloudTpl< T >::getPoint(), ccPointCloud::getPointColor(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), ccPointCloud::hasColors(), ccPointCloud::hasFWF(), ccObject::hasMetaData(), ccShiftedObject::isShifted(), ccWaveformProxy::isValid(), LAS_BLUE, LAS_CLASSIF_KEYPOINT, LAS_CLASSIF_SYNTHETIC, LAS_CLASSIF_VALUE, LAS_CLASSIF_WITHHELD, LAS_CLASSIFICATION, LAS_FIELD_NAMES, LAS_FLIGHT_LINE_EDGE, LAS_GREEN, LAS_INTENSITY, LAS_INVALID, LAS_NUMBER_OF_RETURNS, LAS_OFFSET_X_META_DATA, LAS_OFFSET_Y_META_DATA, LAS_OFFSET_Z_META_DATA, LAS_POINT_SOURCE_ID, LAS_RED, LAS_RETURN_NUMBER, LAS_SCALE_X_META_DATA, LAS_SCALE_Y_META_DATA, LAS_SCALE_Z_META_DATA, LAS_SCAN_ANGLE_RANK, LAS_SCAN_DIRECTION, LAS_TIME, LAS_USER_DATA, LAS_X, LAS_Y, LAS_Z, max(), ecvGlobalShiftManager::NeedShift(), nProgress, cloudViewer::NormalizedProgress::oneStep(), FileIOFilter::SaveParameters::parentWidget, CVLog::Print(), ProjectionVLR, ecvColor::RgbTpl< Type >::r, ccWaveform::returnIndex(), s_saveDlg(), cloudViewer::PointCloudTpl< T >::size(), ccShiftedObject::toGlobal3d(), ccHObjectCaster::ToPointCloud(), TRUE, LasField::UpdateMinPointFormat(), LasField::VersionMinorForPointFormat(), CVLog::Warning(), ccWaveformProxy::waveform(), ccPointCloud::waveformProxy(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.