ImFusion SDK 4.3
LoadRawDialog Class Reference

#include <ImFusion/GUI/LoadRawDialog.h>

Dialog for loading raw files, conveniently figuring out dimensions and settings. More...

+ Inheritance diagram for LoadRawDialog:

Detailed Description

Dialog for loading raw files, conveniently figuring out dimensions and settings.

Public Slots

void onSetType (int)
 
void onSetDimX (int val)
 
void onSetDimY (int val)
 
void onSetDimZ (int val)
 
void onSet3D (bool flag)
 
void onSetOffset (int val)
 
void onSetChannels (int val)
 
void onSetImages (int val)
 
void onSetFile ()
 
void onSaveMHD ()
 
void onMetric ()
 
void onStrict (bool flag)
 
void onNonStrict ()
 

Public Member Functions

 LoadRawDialog (const QString &filename, QWidget *parent=nullptr)
 Construct dialog for loading raw files.
 
 ~LoadRawDialog () override
 Destructor.
 
ImageDescriptor descriptor (int &framesOut) const
 Returns the computed image descriptor and number of frames.
 
int64_t offset () const
 Return the desired offset.
 
int channels () const
 Return the desired number of channels.
 
bool msb () const
 Return the MSB flag.
 
vec3 spacing () const
 Return the spacing.
 
bool metric () const
 Return whether spacing is metric.
 
QString filename () const
 Return the filename which might have been changed in the dialog.
 
void setPreviewView (ImageView2D *view)
 Assign an optional view that can show a preview of resulting image.
 
void setUsePreviewView (bool value)
 Set the flag whether the preview view shall be shown and used.
 

Protected Member Functions

void setSilent (QComboBox *element, int val)
 
void setAllFactors ()
 
QComboBox * getComboBox (int dim)
 
void computeFactors (int64_t number, std::vector< int > &factors)
 
void updateSize ()
 
void updateDims (int source)
 
int findIndex (int val, bool second=false)
 
int64_t imageSize () const
 
void updatePreview ()
 Load the file with the current descriptor and show the result in the preview view.
 

Protected Attributes

Ui_LoadRawDialog * m_ui
 
QFileInfo m_info
 
int m_typeSize
 
int m_lastDim
 
std::vector< int > m_factors
 
std::vector< int > m_factors2
 
std::unique_ptr< RawImageIoAlgorithmm_previewLoader
 
std::unique_ptr< SharedImageSetm_preview
 
ImageView2Dm_previewView = nullptr
 

Constructor & Destructor Documentation

◆ LoadRawDialog()

LoadRawDialog ( const QString & filename,
QWidget * parent = nullptr )

Construct dialog for loading raw files.

Parameters
filenameRaw file to be loaded and configured.
parentParent widget

Member Function Documentation

◆ updatePreview()

void updatePreview ( )
protected

Load the file with the current descriptor and show the result in the preview view.

Does nothing if the preview is disabled or no view is available.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close