OTB  6.7.0
Orfeo Toolbox
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
mvd::MainWindow Class Reference

#include <mvdMainWindow.h>

+ Inheritance diagram for mvd::MainWindow:
+ Collaboration diagram for mvd::MainWindow:

Public Slots

CountType ImportImage (const QString &filename, StackedLayerModel::SizeType index)
 
void ImportImages (const QStringList &filenames, bool enableOverviews=true)
 

Signals

void UserCoordinatesEditingFinished (const QString &)
 
void UserScaleEditingFinished (const QString &)
 
void UserZoomExtent ()
 
void UserZoomFull ()
 
void UserZoomIn ()
 
void UserZoomLayer ()
 
void UserZoomOut ()
 

Public Member Functions

bool CheckGLCapabilities (bool forceNoGLSL=false)
 
 MainWindow (QWidget *p=0, Qt::WindowFlags flags=0)
 
void SetupOTBApplications ()
 
 ~MainWindow () override
 
- Public Member Functions inherited from mvd::I18nMainWindow
void Initialize ()
 
 ~I18nMainWindow () override
 

Protected Slots

void OnAboutToChangeModel (const AbstractModel *) override
 
void OnAboutToChangeSelectedLayerModel (const StackedLayerModel::KeyType &)
 
void OnExecutionDone (int status)
 
void OnModelChanged (AbstractModel *) override
 
void OnOTBApplicationOutputImageChanged (const QString &appName, const QString &outfname)
 
void OnSelectedLayerModelChanged (const StackedLayerModel::KeyType &)
 
- Protected Slots inherited from mvd::I18nMainWindow
virtual void OnAboutToChangeModel (const AbstractModel *)=0
 
virtual void OnModelChanged (AbstractModel *)=0
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 
- Protected Member Functions inherited from mvd::I18nMainWindow
template<typename TWidget , typename TDockWidget >
TDockWidget * AddDockWidget (const QString &dockName, const QString &dockTitle, Qt::DockWidgetArea dockArea, DockLayoutFlags flags=DOCK_LAYOUT_NONE)
 
template<typename TWidget , typename TController , typename TDockWidget >
TDockWidget * AddDockWidget (const QString &dockName, const QString &dockTitle, Qt::DockWidgetArea dockArea, DockLayoutFlags flags=DOCK_LAYOUT_NONE)
 
QDockWidget * AddWidgetToDock (QWidget *widget, const QString &dockName, const QString &dockTitle, Qt::DockWidgetArea dockArea, DockLayoutFlags flags=DOCK_LAYOUT_NONE)
 
bool BuildGDALOverviews (const QStringList &filenames)
 
void closeEvent (QCloseEvent *event) override
 
const AbstractModelControllerGetController (const QDockWidget *) const
 
AbstractModelControllerGetController (const QDockWidget *)
 
 I18nMainWindow (QWidget *Parent=0, Qt::WindowFlags flags=0)
 
VectorImageModelImportImage (const QString &filename, int width, int height)
 
bool RestoreLayout (int version)
 
void SaveLayout (int version) const
 
void SetControllerModel (QDockWidget *dock, AbstractModel *model)
 

Private Slots

void on_action_GLSL_triggered (bool)
 
void on_action_Keymap_triggered ()
 
void on_action_LoadOTBApplications_triggered ()
 
void on_action_OpenImage_triggered ()
 
void on_action_Preferences_triggered ()
 
void on_action_SaveScreenshot_triggered ()
 
void on_action_ZoomExtent_triggered ()
 
void on_action_ZoomFull_triggered ()
 
void on_action_ZoomIn_triggered ()
 
void on_action_ZoomLayer_triggered ()
 
void on_action_ZoomOut_triggered ()
 
void OnPixelInfoChanged (const QPoint &, const PointType &, const PixelInfo::Vector &)
 
void OnReferenceLayerChanged (vcl_size_t)
 
void OnReferenceLayerCurrentIndexChanged (int)
 
void OnSettingsUpdated ()
 
void RefreshReferenceLayerComboBox ()
 

Private Member Functions

void ConnectImageViews ()
 
void ConnectProjectionBarWidget ()
 
void ConnectReferenceLayerComboBox (StackedLayerModel *)
 
void ConnectStatusBar ()
 
void ConnectViewMenu ()
 
ImageViewWidgetCreateImageViewWidget (QGLWidget *sharedGlWidget=NULL)
 
ImageViewWidgetCreateQuicklookViewWidget (QGLWidget *sharedGlWidget=NULL)
 
void DisconnectReferenceLayerComboBox (StackedLayerModel *)
 
const ImageViewWidgetGetQuicklookView () const
 
ImageViewWidgetGetQuicklookView ()
 
void InitializeCentralWidget ()
 
void InitializeDockWidgets ()
 
void InitializeProjectionBarWidget ()
 
void InitializeRenderToolBar ()
 
void InitializeShaderToolBar ()
 
void InitializeStatusBarWidgets ()
 
void SetGLSLEnabled (bool)
 
void SetupReferenceLayerComboBox (StackedLayerModel *)
 
void virtual_ConnectUI () override
 
void virtual_InitializeUI () override
 
void virtual_SetupUI () override
 

Private Attributes

QDockWidget * m_ColorDynamicsDock
 
QDockWidget * m_ColorSetupDock
 
FilenameDragAndDropEventFilterm_FilenameDragAndDropEventFilter
 
bool m_ForceNoGLSL: 1
 
int m_GLSL140
 
QDockWidget * m_HistogramDock
 
ImageViewWidgetm_ImageView
 
bool m_isGLSLAvailable: 1
 
KeymapDialogm_KeymapDialog
 
QDockWidget * m_LayerStackDock
 
ProjectionBarWidgetm_ProjectionBarWidget
 
QDockWidget * m_QuicklookViewDock
 
ShaderWidgetm_ShaderWidget
 
StatusBarWidgetm_StatusBarWidget
 
Ui::MainWindow * m_UI
 

Additional Inherited Members

- Public Types inherited from mvd::I18nMainWindow
enum  DockLayout {
  DOCK_LAYOUT_NONE = 0,
  DOCK_LAYOUT_FLOATING = 1,
  DOCK_LAYOUT_SCROLLABLE = 2
}
 
typedef QFlags< DockLayoutDockLayoutFlags
 

Detailed Description

The application main-widow widget.

Definition at line 106 of file mvdMainWindow.h.

Constructor & Destructor Documentation

mvd::MainWindow::MainWindow ( QWidget *  p = 0,
Qt::WindowFlags  flags = 0 
)

Constructor.

mvd::MainWindow::~MainWindow ( )
override

Destructor.

Member Function Documentation

bool mvd::MainWindow::CheckGLCapabilities ( bool  forceNoGLSL = false)
void mvd::MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotected
void mvd::MainWindow::ConnectImageViews ( )
private
void mvd::MainWindow::ConnectProjectionBarWidget ( )
private
void mvd::MainWindow::ConnectReferenceLayerComboBox ( StackedLayerModel )
private
void mvd::MainWindow::ConnectStatusBar ( )
private
void mvd::MainWindow::ConnectViewMenu ( )
private
ImageViewWidget* mvd::MainWindow::CreateImageViewWidget ( QGLWidget *  sharedGlWidget = NULL)
private
ImageViewWidget* mvd::MainWindow::CreateQuicklookViewWidget ( QGLWidget *  sharedGlWidget = NULL)
private
void mvd::MainWindow::DisconnectReferenceLayerComboBox ( StackedLayerModel )
private
const ImageViewWidget * mvd::MainWindow::GetQuicklookView ( ) const
inlineprivate

Definition at line 549 of file mvdMainWindow.h.

ImageViewWidget * mvd::MainWindow::GetQuicklookView ( )
inlineprivate

Definition at line 558 of file mvdMainWindow.h.

CountType mvd::MainWindow::ImportImage ( const QString &  filename,
StackedLayerModel::SizeType  index 
)
slot
void mvd::MainWindow::ImportImages ( const QStringList &  filenames,
bool  enableOverviews = true 
)
slot
void mvd::MainWindow::InitializeCentralWidget ( )
private
void mvd::MainWindow::InitializeDockWidgets ( )
private
void mvd::MainWindow::InitializeProjectionBarWidget ( )
private
void mvd::MainWindow::InitializeRenderToolBar ( )
private
void mvd::MainWindow::InitializeShaderToolBar ( )
private
void mvd::MainWindow::InitializeStatusBarWidgets ( )
private
void mvd::MainWindow::on_action_GLSL_triggered ( bool  )
privateslot
void mvd::MainWindow::on_action_Keymap_triggered ( )
privateslot

Qt auto-connected slot which is called when Help/About menu action is activated.

void mvd::MainWindow::on_action_LoadOTBApplications_triggered ( )
privateslot
void mvd::MainWindow::on_action_OpenImage_triggered ( )
privateslot

Qt auto-connected slot which is called when 'File/Open image' menu action is triggered.

void mvd::MainWindow::on_action_Preferences_triggered ( )
privateslot

Qt auto-connected slot which is called when 'File/Preferences' menu action is trigerred.

void mvd::MainWindow::on_action_SaveScreenshot_triggered ( )
privateslot
void mvd::MainWindow::on_action_ZoomExtent_triggered ( )
privateslot

Qt auto-connected slot which is called when zoom-extent button is pressed.

void mvd::MainWindow::on_action_ZoomFull_triggered ( )
privateslot

Qt auto-connected slot which is called when zoom-full button is pressed.

void mvd::MainWindow::on_action_ZoomIn_triggered ( )
privateslot

Qt auto-connected slot which is called when zoom-in button is pressed.

void mvd::MainWindow::on_action_ZoomLayer_triggered ( )
privateslot

Qt auto-connected slot which is called when zoom-layer button is pressed.

void mvd::MainWindow::on_action_ZoomOut_triggered ( )
privateslot

Qt auto-connected slot which is called when zoom-out button is pressed.

void mvd::MainWindow::OnAboutToChangeModel ( const AbstractModel )
overrideprotectedslot
void mvd::MainWindow::OnAboutToChangeSelectedLayerModel ( const StackedLayerModel::KeyType )
protectedslot
void mvd::MainWindow::OnExecutionDone ( int  status)
protectedslot
void mvd::MainWindow::OnModelChanged ( AbstractModel )
overrideprotectedslot
void mvd::MainWindow::OnOTBApplicationOutputImageChanged ( const QString &  appName,
const QString &  outfname 
)
protectedslot
void mvd::MainWindow::OnPixelInfoChanged ( const QPoint &  ,
const PointType ,
const PixelInfo::Vector  
)
privateslot
void mvd::MainWindow::OnReferenceLayerChanged ( vcl_size_t  )
privateslot
void mvd::MainWindow::OnReferenceLayerCurrentIndexChanged ( int  )
privateslot
void mvd::MainWindow::OnSelectedLayerModelChanged ( const StackedLayerModel::KeyType )
protectedslot
void mvd::MainWindow::OnSettingsUpdated ( )
privateslot
void mvd::MainWindow::RefreshReferenceLayerComboBox ( )
privateslot
void mvd::MainWindow::SetGLSLEnabled ( bool  )
private
void mvd::MainWindow::SetupOTBApplications ( )
void mvd::MainWindow::SetupReferenceLayerComboBox ( StackedLayerModel )
private
void mvd::MainWindow::UserCoordinatesEditingFinished ( const QString &  )
signal
void mvd::MainWindow::UserScaleEditingFinished ( const QString &  )
signal
void mvd::MainWindow::UserZoomExtent ( )
signal
void mvd::MainWindow::UserZoomFull ( )
signal
void mvd::MainWindow::UserZoomIn ( )
signal
void mvd::MainWindow::UserZoomLayer ( )
signal
void mvd::MainWindow::UserZoomOut ( )
signal
void mvd::MainWindow::virtual_ConnectUI ( )
overrideprivatevirtual

Implements mvd::I18nMainWindow.

void mvd::MainWindow::virtual_InitializeUI ( )
overrideprivatevirtual

Reimplemented from mvd::I18nMainWindow.

void mvd::MainWindow::virtual_SetupUI ( )
overrideprivatevirtual

Implements mvd::I18nMainWindow.

Member Data Documentation

QDockWidget* mvd::MainWindow::m_ColorDynamicsDock
private

Color dynamicsk-view dock-widget.

Definition at line 352 of file mvdMainWindow.h.

QDockWidget* mvd::MainWindow::m_ColorSetupDock
private

Color setup dock-widget.

Definition at line 357 of file mvdMainWindow.h.

FilenameDragAndDropEventFilter* mvd::MainWindow::m_FilenameDragAndDropEventFilter
private

Definition at line 414 of file mvdMainWindow.h.

bool mvd::MainWindow::m_ForceNoGLSL
private

Definition at line 431 of file mvdMainWindow.h.

int mvd::MainWindow::m_GLSL140
private

Definition at line 426 of file mvdMainWindow.h.

QDockWidget* mvd::MainWindow::m_HistogramDock
private

Current Pixel Description dock-widget.

Histogram dock-widget.

Definition at line 384 of file mvdMainWindow.h.

ImageViewWidget* mvd::MainWindow::m_ImageView
private

Image-view page.

Definition at line 397 of file mvdMainWindow.h.

bool mvd::MainWindow::m_isGLSLAvailable
private

Definition at line 430 of file mvdMainWindow.h.

KeymapDialog* mvd::MainWindow::m_KeymapDialog
private

Definition at line 418 of file mvdMainWindow.h.

QDockWidget* mvd::MainWindow::m_LayerStackDock
private

Database-browser dock-widget.

Dataset-properties dock-widget. Layer-stack dock-widget.

Definition at line 372 of file mvdMainWindow.h.

ProjectionBarWidget* mvd::MainWindow::m_ProjectionBarWidget
private

Definition at line 422 of file mvdMainWindow.h.

QDockWidget* mvd::MainWindow::m_QuicklookViewDock
private

Quicklook-view dock.

Definition at line 402 of file mvdMainWindow.h.

ShaderWidget* mvd::MainWindow::m_ShaderWidget
private

Definition at line 410 of file mvdMainWindow.h.

StatusBarWidget* mvd::MainWindow::m_StatusBarWidget
private

Definition at line 406 of file mvdMainWindow.h.

Ui::MainWindow* mvd::MainWindow::m_UI
private

uic generated.

Definition at line 347 of file mvdMainWindow.h.


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