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

Shows options related to an import or export that utilizes the IOFactory methods to write or read properties. Dialog allows user to edit settings related to one set of FactoryOptions. More...

#include <ModelFileDialog.h>

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

Signals

void dialogEnded (bool accepted)
 
void ModelLoaded (const Scene *object)
 

Public Member Functions

bool canResetOptions () const
 
bool canRevertOptions () const
 
void closeEvent (QCloseEvent *) override
 
FactoryOptions::IncludeProperties getGenerationPrecision () const
 
FactoryOptions::IncludeProperties getReadPrecision () const
 
File iniFile () const
 
virtual void isOptionMode (bool is_options_mode)
 
 ModelFileDialog (bool is_import, ProgressInfo *log, QWidget *parent=0)
 
FactoryOptions options () const
 
void postUpdateUIRequest ()
 
void setFormat (const FactoryParameters &format)
 
virtual void setGeometriesAndFeatures (const FactoryFeatures &features)
 
void setWindingCalculation (WindingMode winding)
 
bool shouldShow () const
 
virtual void updateGeometriesAndFeatures ()
 
virtual void updateUINow ()
 

Static Public Member Functions

static File INISettingsFolder (bool is_import)
 
static void ResetAllExportOptionsToDefaults ()
 
static void ResetAllImportOptionsToDefaults ()
 

Protected Slots

void revertOptionsToFactoryDefault ()
 
void saveOptionsAsDefault ()
 
void setOptionsToDefault ()
 
void setShowOnEachImport ()
 

Protected Member Functions

const FactoryOptionsdefaultOptions ()
 
virtual void onAccepted ()
 
virtual void onCancelled ()
 
virtual void updateOptions (FactoryOptions &new_options)
 

Protected Attributes

bool m_accepted
 
bool m_canceled
 
FactoryOptions m_default_options
 
UnitManager m_file_units
 
Buffer< GenericOptionsGroup * > m_generic_options_widgets
 
bool m_has_settings_change
 
File m_ini_file
 
const bool m_is_import
 
ProgressInfom_log
 
bool m_original_show_on_each_import
 
FactoryParameters m_params
 
bool m_show_on_each_import
 
bool m_ui_dirty = false
 
Ui::ImportSettings * ui
 

Detailed Description

Shows options related to an import or export that utilizes the IOFactory methods to write or read properties. Dialog allows user to edit settings related to one set of FactoryOptions.


Constructor & Destructor Documentation

◆ ModelFileDialog()

ModelFileDialog ( bool is_import,
ProgressInfo * log,
QWidget * parent = 0 )

Member Function Documentation

◆ canResetOptions()

bool canResetOptions ( ) const

◆ canRevertOptions()

bool canRevertOptions ( ) const

◆ closeEvent()

void closeEvent ( QCloseEvent * )
inlineoverride

◆ defaultOptions()

const FactoryOptions & defaultOptions ( )
protected

◆ dialogEnded

void dialogEnded ( bool accepted)
signal

◆ getGenerationPrecision()

FactoryOptions::IncludeProperties getGenerationPrecision ( ) const

◆ getReadPrecision()

FactoryOptions::IncludeProperties getReadPrecision ( ) const

◆ iniFile()

File iniFile ( ) const

◆ INISettingsFolder()

static File INISettingsFolder ( bool is_import)
static

◆ isOptionMode()

virtual void isOptionMode ( bool is_options_mode)
virtual

◆ ModelLoaded

void ModelLoaded ( const Scene * object)
signal

◆ onAccepted()

virtual void onAccepted ( )
protectedvirtual

◆ onCancelled()

virtual void onCancelled ( )
protectedvirtual

◆ options()

FactoryOptions options ( ) const
inline

◆ postUpdateUIRequest()

void postUpdateUIRequest ( )

◆ ResetAllExportOptionsToDefaults()

static void ResetAllExportOptionsToDefaults ( )
static

◆ ResetAllImportOptionsToDefaults()

static void ResetAllImportOptionsToDefaults ( )
static

◆ revertOptionsToFactoryDefault

void revertOptionsToFactoryDefault ( )
protectedslot

◆ saveOptionsAsDefault

void saveOptionsAsDefault ( )
protectedslot

◆ setFormat()

void setFormat ( const FactoryParameters & format)

◆ setGeometriesAndFeatures()

virtual void setGeometriesAndFeatures ( const FactoryFeatures & features)
virtual

◆ setOptionsToDefault

void setOptionsToDefault ( )
protectedslot

◆ setShowOnEachImport

void setShowOnEachImport ( )
protectedslot

◆ setWindingCalculation()

void setWindingCalculation ( WindingMode winding)

◆ shouldShow()

bool shouldShow ( ) const
inline

◆ updateGeometriesAndFeatures()

virtual void updateGeometriesAndFeatures ( )
virtual

◆ updateOptions()

virtual void updateOptions ( FactoryOptions & new_options)
protectedvirtual

Reimplemented in AsciiModelFileDialog, and AutoModelFileDialog.

◆ updateUINow()

virtual void updateUINow ( )
virtual

Reimplemented in AsciiModelFileDialog.

Member Data Documentation

◆ m_accepted

bool m_accepted
protected

◆ m_canceled

bool m_canceled
protected

◆ m_default_options

FactoryOptions m_default_options
protected

◆ m_file_units

UnitManager m_file_units
protected

◆ m_generic_options_widgets

Buffer<GenericOptionsGroup*> m_generic_options_widgets
protected

◆ m_has_settings_change

bool m_has_settings_change
protected

◆ m_ini_file

File m_ini_file
protected

◆ m_is_import

const bool m_is_import
protected

◆ m_log

ProgressInfo* m_log
protected

◆ m_original_show_on_each_import

bool m_original_show_on_each_import
protected

◆ m_params

FactoryParameters m_params
protected

◆ m_show_on_each_import

bool m_show_on_each_import
protected

◆ m_ui_dirty

bool m_ui_dirty = false
protected

◆ ui

Ui::ImportSettings* ui
protected

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