ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LasOpenDialog Class Reference

Dialog shown to the user when opening a LAS file. More...

#include <LasOpenDialog.h>

Inheritance diagram for LasOpenDialog:
[legend]
Collaboration diagram for LasOpenDialog:
[legend]

Public Types

enum  Action { Action::Load, Action::Tile }
 

Public Member Functions

 LasOpenDialog (QWidget *parent=nullptr)
 Default constructor. More...
 
void setInfo (int versionMinor, int pointFormatId, qulonglong numPoints)
 
void setAvailableScalarFields (const std::vector< LasScalarField > &scalarFields, const std::vector< LasExtraScalarField > &extraScalarFields)
 
void filterOutNotChecked (std::vector< LasScalarField > &scalarFields, std::vector< LasExtraScalarField > &extraScalarFields)
 
bool shouldIgnoreFieldsWithDefaultValues () const
 
bool shouldForce8bitColors () const
 
double timeShiftValue () const
 
Action action () const
 
LasTilingOptions tilingOptions () const
 
void resetShouldSkipDialog ()
 
bool shouldSkipDialog () const
 

Detailed Description

Dialog shown to the user when opening a LAS file.

Member Enumeration Documentation

◆ Action

enum LasOpenDialog::Action
strong
Enumerator
Load 

The user wants to load the file in ACloudViewer.

Tile 

The user wants to tile the file into multiple smaller ones.

Constructor & Destructor Documentation

◆ LasOpenDialog()

LasOpenDialog::LasOpenDialog ( QWidget *  parent = nullptr)
explicit

Default constructor.

Member Function Documentation

◆ action()

LasOpenDialog::Action LasOpenDialog::action ( ) const

Returns the action the user wants to do.

The action is based on the active tab when the user accepted the dialog.

References Load, Tile, and TILLING_TAB_INDEX.

Referenced by LasIOFilter::loadFile().

◆ filterOutNotChecked()

void LasOpenDialog::filterOutNotChecked ( std::vector< LasScalarField > &  scalarFields,
std::vector< LasExtraScalarField > &  extraScalarFields 
)

Removes from the lists scalar fields and extra scalar fields which the user unchecked from the list of fields to load.

References RemoveFalse().

Referenced by LasIOFilter::loadFile().

◆ resetShouldSkipDialog()

void LasOpenDialog::resetShouldSkipDialog ( )

Referenced by LasIOFilter::loadFile().

◆ setAvailableScalarFields()

void LasOpenDialog::setAvailableScalarFields ( const std::vector< LasScalarField > &  scalarFields,
const std::vector< LasExtraScalarField > &  extraScalarFields 
)

Sets the list of standard LAS scalar fields as well as user defined extra LAS scalar fields that are available in the file that the user is able to check which one should be loaded.

References CreateItem(), and height.

Referenced by LasIOFilter::loadFile().

◆ setInfo()

void LasOpenDialog::setInfo ( int  versionMinor,
int  pointFormatId,
qulonglong  numPoints 
)

Set some informations about the file to be displayed to the user.

References LasDetails::HasGpsTime(), and LasDetails::HasRGB().

Referenced by LasIOFilter::loadFile().

◆ shouldForce8bitColors()

bool LasOpenDialog::shouldForce8bitColors ( ) const

Returns whether the user wants to treat the rgb from the file as 8-bit components.

Referenced by LasIOFilter::loadFile().

◆ shouldIgnoreFieldsWithDefaultValues()

bool LasOpenDialog::shouldIgnoreFieldsWithDefaultValues ( ) const

Returns whether the user wants to ignore (not load) fields for which values are all default values.

Referenced by LasIOFilter::loadFile().

◆ shouldSkipDialog()

bool LasOpenDialog::shouldSkipDialog ( ) const

Referenced by LasIOFilter::loadFile().

◆ tilingOptions()

LasTilingOptions LasOpenDialog::tilingOptions ( ) const

Returns the tiling options.

Only valid when the action is Tiling

Referenced by LasIOFilter::loadFile().

◆ timeShiftValue()

double LasOpenDialog::timeShiftValue ( ) const

Returns quiet_NaN if the time shift value should be automatically found.

Otherwise, returns the value manually specified by the user.

Referenced by LasIOFilter::loadFile().


The documentation for this class was generated from the following files: