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

Dialog for configuration of ASCII files saving sequence. More...

#include <AsciiSaveDlg.h>

Inheritance diagram for AsciiSaveDlg:
Collaboration diagram for AsciiSaveDlg:

Public Member Functions

 AsciiSaveDlg (QWidget *parent=nullptr)
 Default constructor. More...
 
virtual ~AsciiSaveDlg ()
 Destructor. More...
 
bool saveColumnsNamesHeader () const
 Returns whether columns names should be be saved in header. More...
 
void enableSaveColumnsNamesHeader (bool state)
 Sets whether columns names should be be saved in header. More...
 
bool savePointCountHeader () const
 Returns whether the number of points should be saved in header. More...
 
void enableSavePointCountHeader (bool state)
 Sets whether the number of points should be saved in header. More...
 
unsigned char getSeparator () const
 Returns separator. More...
 
void setSeparatorIndex (int index)
 Set separator (index) More...
 
int getSeparatorIndex () const
 Returns separator index. More...
 
int coordsPrecision () const
 Returns coordinates precision. More...
 
void setCoordsPrecision (int prec)
 Sets coordinates precision. More...
 
int sfPrecision () const
 Returns SF precision. More...
 
void setSfPrecision (int prec)
 Sets SF precision. More...
 
bool swapColorAndSF () const
 Returns whether SF(s) and color should be swapped. More...
 
void enableSwapColorAndSF (bool state)
 Sets whether SF(s) and color should be swapped. More...
 
void setAutoShow (bool state)
 Sets whether this dialog should appear or not by default. More...
 
bool autoShown () const
 Returns whether this dialog automatically appears or not. More...
 
void setSaveFloatColors (bool state)
 Sets whether to save colors as float values (instead of unsigned bytes) More...
 
bool saveFloatColors () const
 
void setSaveAlphaChannel (bool state)
 Sets whether to save the alpha (transparency) channel. More...
 
bool saveAlphaChannel () const
 Returns whether to save the alpha (transparency) channel. More...
 

Protected Slots

void acceptAndSaveSettings ()
 Saves dialog state to persistent settings. More...
 

Protected Member Functions

void initFromPersistentSettings ()
 Inits dialog state from persistent settings. More...
 

Protected Attributes

Ui_AsciiSaveDialog * m_ui
 Associated UI. More...
 
bool m_autoShow
 Whether this dialog should be automatically shown or not. More...
 

Detailed Description

Dialog for configuration of ASCII files saving sequence.

Definition at line 19 of file AsciiSaveDlg.h.

Constructor & Destructor Documentation

◆ AsciiSaveDlg()

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

Default constructor.

Definition at line 21 of file AsciiSaveDlg.cpp.

References acceptAndSaveSettings(), initFromPersistentSettings(), and m_ui.

◆ ~AsciiSaveDlg()

AsciiSaveDlg::~AsciiSaveDlg ( )
virtual

Destructor.

Definition at line 31 of file AsciiSaveDlg.cpp.

References m_ui.

Member Function Documentation

◆ acceptAndSaveSettings

void AsciiSaveDlg::acceptAndSaveSettings ( )
protectedslot

Saves dialog state to persistent settings.

Definition at line 163 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiSaveDlg().

◆ autoShown()

bool AsciiSaveDlg::autoShown ( ) const
inline

Returns whether this dialog automatically appears or not.

Definition at line 70 of file AsciiSaveDlg.h.

◆ coordsPrecision()

int AsciiSaveDlg::coordsPrecision ( ) const

Returns coordinates precision.

Definition at line 92 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().

◆ enableSaveColumnsNamesHeader()

void AsciiSaveDlg::enableSaveColumnsNamesHeader ( bool  state)

Sets whether columns names should be be saved in header.

Definition at line 39 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ enableSavePointCountHeader()

void AsciiSaveDlg::enableSavePointCountHeader ( bool  state)

Sets whether the number of points should be saved in header.

Definition at line 47 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ enableSwapColorAndSF()

void AsciiSaveDlg::enableSwapColorAndSF ( bool  state)

Sets whether SF(s) and color should be swapped.

Definition at line 112 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ getSeparator()

unsigned char AsciiSaveDlg::getSeparator ( ) const

Returns separator.

Definition at line 67 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ getSeparatorIndex()

int AsciiSaveDlg::getSeparatorIndex ( ) const

Returns separator index.

Definition at line 88 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ initFromPersistentSettings()

void AsciiSaveDlg::initFromPersistentSettings ( )
protected

Inits dialog state from persistent settings.

Definition at line 116 of file AsciiSaveDlg.cpp.

References coordsPrecision(), m_ui, saveAlphaChannel(), saveFloatColors(), and sfPrecision().

Referenced by AsciiSaveDlg().

◆ saveAlphaChannel()

bool AsciiSaveDlg::saveAlphaChannel ( ) const

Returns whether to save the alpha (transparency) channel.

Definition at line 63 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().

◆ saveColumnsNamesHeader()

bool AsciiSaveDlg::saveColumnsNamesHeader ( ) const

Returns whether columns names should be be saved in header.

Definition at line 35 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ saveFloatColors()

bool AsciiSaveDlg::saveFloatColors ( ) const

Returns whether to save colors as float values (instead of unsigned bytes)

Definition at line 55 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().

◆ savePointCountHeader()

bool AsciiSaveDlg::savePointCountHeader ( ) const

Returns whether the number of points should be saved in header.

Definition at line 43 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ setAutoShow()

void AsciiSaveDlg::setAutoShow ( bool  state)
inline

Sets whether this dialog should appear or not by default.

Definition at line 68 of file AsciiSaveDlg.h.

◆ setCoordsPrecision()

void AsciiSaveDlg::setCoordsPrecision ( int  prec)

Sets coordinates precision.

Definition at line 96 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ setSaveAlphaChannel()

void AsciiSaveDlg::setSaveAlphaChannel ( bool  state)

Sets whether to save the alpha (transparency) channel.

Definition at line 59 of file AsciiSaveDlg.cpp.

References m_ui.

◆ setSaveFloatColors()

void AsciiSaveDlg::setSaveFloatColors ( bool  state)

Sets whether to save colors as float values (instead of unsigned bytes)

Definition at line 51 of file AsciiSaveDlg.cpp.

References m_ui.

◆ setSeparatorIndex()

void AsciiSaveDlg::setSeparatorIndex ( int  index)

Set separator (index)

0 = space 1 = semicolon 2 = comma 3 = tab

Definition at line 84 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ setSfPrecision()

void AsciiSaveDlg::setSfPrecision ( int  prec)

Sets SF precision.

Definition at line 104 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ sfPrecision()

int AsciiSaveDlg::sfPrecision ( ) const

Returns SF precision.

Definition at line 100 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().

◆ swapColorAndSF()

bool AsciiSaveDlg::swapColorAndSF ( ) const

Returns whether SF(s) and color should be swapped.

Definition at line 108 of file AsciiSaveDlg.cpp.

References m_ui.

Referenced by AsciiFilter::saveToFile().

Member Data Documentation

◆ m_autoShow

bool AsciiSaveDlg::m_autoShow
protected

Whether this dialog should be automatically shown or not.

Definition at line 96 of file AsciiSaveDlg.h.

◆ m_ui


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