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:
[legend]
Collaboration diagram for AsciiSaveDlg:
[legend]

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.

Constructor & Destructor Documentation

◆ AsciiSaveDlg()

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

Default constructor.

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

◆ ~AsciiSaveDlg()

AsciiSaveDlg::~AsciiSaveDlg ( )
virtual

Destructor.

References m_ui.

Member Function Documentation

◆ acceptAndSaveSettings

void AsciiSaveDlg::acceptAndSaveSettings ( )
protectedslot

Saves dialog state to persistent settings.

References m_ui.

Referenced by AsciiSaveDlg().

◆ autoShown()

bool AsciiSaveDlg::autoShown ( ) const
inline

Returns whether this dialog automatically appears or not.

◆ coordsPrecision()

int AsciiSaveDlg::coordsPrecision ( ) const

Returns coordinates precision.

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.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ enableSavePointCountHeader()

void AsciiSaveDlg::enableSavePointCountHeader ( bool  state)

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

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ enableSwapColorAndSF()

void AsciiSaveDlg::enableSwapColorAndSF ( bool  state)

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

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ getSeparator()

unsigned char AsciiSaveDlg::getSeparator ( ) const

Returns separator.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ getSeparatorIndex()

int AsciiSaveDlg::getSeparatorIndex ( ) const

Returns separator index.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ initFromPersistentSettings()

void AsciiSaveDlg::initFromPersistentSettings ( )
protected

Inits dialog state from persistent settings.

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

Referenced by AsciiSaveDlg().

◆ saveAlphaChannel()

bool AsciiSaveDlg::saveAlphaChannel ( ) const

Returns whether to save the alpha (transparency) channel.

References m_ui.

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

◆ saveColumnsNamesHeader()

bool AsciiSaveDlg::saveColumnsNamesHeader ( ) const

Returns whether columns names should be be saved in header.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ saveFloatColors()

bool AsciiSaveDlg::saveFloatColors ( ) const

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

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.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ setAutoShow()

void AsciiSaveDlg::setAutoShow ( bool  state)
inline

Sets whether this dialog should appear or not by default.

◆ setCoordsPrecision()

void AsciiSaveDlg::setCoordsPrecision ( int  prec)

Sets coordinates precision.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ setSaveAlphaChannel()

void AsciiSaveDlg::setSaveAlphaChannel ( bool  state)

Sets whether to save the alpha (transparency) channel.

References m_ui.

◆ setSaveFloatColors()

void AsciiSaveDlg::setSaveFloatColors ( bool  state)

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

References m_ui.

◆ setSeparatorIndex()

void AsciiSaveDlg::setSeparatorIndex ( int  index)

Set separator (index)

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

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ setSfPrecision()

void AsciiSaveDlg::setSfPrecision ( int  prec)

Sets SF precision.

References m_ui.

Referenced by AsciiFilter::saveToFile().

◆ sfPrecision()

int AsciiSaveDlg::sfPrecision ( ) const

Returns SF precision.

References m_ui.

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

◆ swapColorAndSF()

bool AsciiSaveDlg::swapColorAndSF ( ) const

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

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.

◆ m_ui


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