API Documentation
Loading...
Searching...
No Matches
AutoModelFileDialog Class Reference

Dialog that allows user to choose import or export options while simultaniously automatically. More...

#include <AutoModelFileDialog.h>

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

Signals

void loaded ()
 
- Signals inherited from ModelFileDialog
void dialogEnded (bool accepted)
 
void ModelLoaded (const Scene *object)
 

Public Member Functions

 AutoModelFileDialog (bool is_import, ProgressInfo *log, QWidget *parent=nullptr)
 
 ~AutoModelFileDialog ()
 
virtual void setRequests (const Buffer< FactoryParameters > &file)
 
virtual void updateOptions (FactoryOptions &new_options) override
 
Buffer< UUIDIDs () const
 
virtual void setUUIDs (Buffer< UUID > models)
 
void selectAllVisible ()
 
void selectDefaultToExport ()
 
virtual void filterModelsToExport ()
 
virtual void reset ()
 
virtual void beginProcess ()
 
void setIsValid (bool is_valid)
 
void setPositionOnEnd (bool position_on_end)
 
- Public Member Functions inherited from ModelFileDialog
 ModelFileDialog (bool is_import, ProgressInfo *log, QWidget *parent=0)
 
void setWindingCalculation (WindingMode winding)
 
virtual void updateUINow ()
 
void postUpdateUIRequest ()
 
bool shouldShow () const
 
void closeEvent (QCloseEvent *) override
 
virtual void isOptionMode (bool is_options_mode)
 
void setFormat (const FactoryParameters &format)
 
virtual void updateGeometriesAndFeatures ()
 
virtual void setGeometriesAndFeatures (const FactoryFeatures &features)
 
bool canRevertOptions () const
 
bool canResetOptions () const
 
File iniFile () const
 
FactoryOptions::IncludeProperties getReadPrecision () const
 
FactoryOptions::IncludeProperties getGenerationPrecision () const
 
FactoryOptions options () const
 

Protected Member Functions

bool loadOrSaveFile ()
 
void processWarnings ()
 
void onOperationFinished (bool success)
 
void onSuccessfulSave ()
 
void onSuccessfulImport ()
 
virtual void _cancelled () override
 
virtual void _accepted () override
 
ModelFactoryfactory () const
 
- Protected Member Functions inherited from ModelFileDialog
const FactoryOptionsdefaultOptions ()
 

Protected Attributes

Buffer< FactoryParametersm_files
 
ModelSelectionTreem_selection_tree
 
bool m_show_error_dialog
 
- Protected Attributes inherited from ModelFileDialog
File m_ini_file
 
UnitManager m_file_units
 
Ui::ImportSettings * ui
 
bool m_show_on_each_import
 
bool m_original_show_on_each_import
 
bool m_accepted
 
bool m_canceled
 
const bool m_is_import
 
bool m_has_settings_change
 
bool m_ui_dirty = false
 
FactoryParameters m_params
 
FactoryOptions m_default_options
 
ProgressInfom_log
 
Buffer< GenericOptionsGroup * > m_generic_options_widgets
 

Additional Inherited Members

- Static Public Member Functions inherited from ModelFileDialog
static void ResetAllImportOptionsToDefaults ()
 
static void ResetAllExportOptionsToDefaults ()
 
static File INISettingsFolder (bool is_import)
 
- Protected Slots inherited from ModelFileDialog
void saveOptionsAsDefault ()
 
void setShowOnEachImport ()
 
void setOptionsToDefault ()
 
void revertOptionsToFactoryDefault ()
 

Detailed Description

Dialog that allows user to choose import or export options while simultaniously automatically.


Class: AutoModelFileDialog

writing or reading the file in the background such that the user might already have the data when finished.

Constructor & Destructor Documentation

◆ AutoModelFileDialog()

AutoModelFileDialog ( bool is_import,
ProgressInfo * log,
QWidget * parent = nullptr )

◆ ~AutoModelFileDialog()

Member Function Documentation

◆ _accepted()

void _accepted ( )
overrideprotectedvirtual

Reimplemented from ModelFileDialog.

◆ _cancelled()

void _cancelled ( )
overrideprotectedvirtual

Reimplemented from ModelFileDialog.

◆ beginProcess()

void beginProcess ( )
virtual

◆ factory()

ModelFactory * factory ( ) const
protected

◆ filterModelsToExport()

void filterModelsToExport ( )
virtual

Reimplemented in AsciiModelFileDialog.

◆ IDs()

Buffer< UUID > IDs ( ) const

◆ loaded

void loaded ( )
signal

◆ loadOrSaveFile()

bool loadOrSaveFile ( )
protected

◆ onOperationFinished()

void onOperationFinished ( bool success)
protected

◆ onSuccessfulImport()

void onSuccessfulImport ( )
protected

◆ onSuccessfulSave()

void onSuccessfulSave ( )
protected

◆ processWarnings()

void processWarnings ( )
protected

◆ reset()

void reset ( )
virtual

◆ selectAllVisible()

void selectAllVisible ( )

◆ selectDefaultToExport()

void selectDefaultToExport ( )

◆ setIsValid()

void setIsValid ( bool is_valid)

◆ setPositionOnEnd()

void setPositionOnEnd ( bool position_on_end)

◆ setRequests()

void setRequests ( const Buffer< FactoryParameters > & file)
virtual

Reimplemented in AsciiModelFileDialog.

◆ setUUIDs()

void setUUIDs ( Buffer< UUID > models)
virtual

Reimplemented in AsciiModelFileDialog.

◆ updateOptions()

void updateOptions ( FactoryOptions & new_options)
overridevirtual

Reimplemented from ModelFileDialog.

Reimplemented in AsciiModelFileDialog.

Member Data Documentation

◆ m_files

Buffer<FactoryParameters> m_files
protected

◆ m_selection_tree

ModelSelectionTree* m_selection_tree
protected

◆ m_show_error_dialog

bool m_show_error_dialog
protected

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