qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MainWindow Class Reference

Main window. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]
Collaboration diagram for MainWindow:
Collaboration graph
[legend]

Public Member Functions

ccGLWindow * getActiveGLWindow () override
 Returns active GL sub-window (if any)
 
QMdiSubWindow * getMDISubWindow (ccGLWindow *win)
 Returns MDI area subwindow corresponding to a given 3D view.
 
ccGLWindow * getGLWindow (int index) const
 Returns a given views.
 
int getGLWindowCount () const
 Returns the number of 3D views.
 
virtual void addToDB (const QStringList &filenames, QString fileFilter=QString(), ccGLWindow *destWin=nullptr)
 Tries to load several files (and then pushes them into main DB) More...
 
void addToDB (ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true) override
 
void registerOverlayDialog (ccOverlayDialog *dlg, Qt::Corner pos) override
 
void unregisterOverlayDialog (ccOverlayDialog *dlg) override
 
void updateOverlayDialogsPlacement () override
 
void removeFromDB (ccHObject *obj, bool autoDelete=true) override
 
void setSelectedInDB (ccHObject *obj, bool selected) override
 
void dispToConsole (QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE) override
 
void forceConsoleDisplay () override
 
ccHObject * dbRootObject () override
 
QMainWindow * getMainWindow () override
 
ccHObject * loadFile (QString filename, bool silent) override
 
const ccHObject::Container & getSelectedEntities () const override
 
void createGLWindow (ccGLWindow *&window, QWidget *&widget) const override
 
void destroyGLWindow (ccGLWindow *) const override
 
ccUniqueIDGenerator::Shared getUniqueIDGenerator () override
 
ccColorScalesManager * getColorScalesManager () override
 
void spawnHistogramDialog (const std::vector< unsigned > &histoValues, double minVal, double maxVal, QString title, QString xAxisLabel) override
 
ccPickingHub * pickingHub () override
 
ccHObjectContext removeObjectTemporarilyFromDBTree (ccHObject *obj) override
 
void putObjectBackIntoDBTree (ccHObject *obj, const ccHObjectContext &context) override
 
void onItemPicked (const PickedItem &pi) override
 Inherited from ccPickingListener.
 
virtual ccDBRootdb ()
 Returns real 'dbRoot' object.
 
void addEditPlaneAction (QMenu &menu) const
 Adds the "Edit Plane" action to the given menu. More...
 
void initPlugins ()
 Sets up the UI (menus and toolbars) based on loaded plugins.
 
void updatePropertiesView ()
 Updates the 'Properties' view.
 

Static Public Member Functions

static MainWindowTheInstance ()
 Returns the unique instance of this object.
 
static ccGLWindow * GetActiveGLWindow ()
 Static shortcut to MainWindow::getActiveGLWindow.
 
static ccGLWindow * GetGLWindow (const QString &title)
 Returns a given GL sub-window (determined by its title) More...
 
static void GetGLWindows (std::vector< ccGLWindow * > &glWindows)
 Returns all GL sub-windows. More...
 
static void RefreshAllGLWindow (bool only2D=false)
 Static shortcut to MainWindow::refreshAll.
 
static void UpdateUI ()
 Static shortcut to MainWindow::updateUI.
 
static void DestroyInstance ()
 Deletes current main window instance.
 

Protected Member Functions

 MainWindow ()
 Default constructor.
 
 ~MainWindow () override
 Default desctructor.
 

Detailed Description

Main window.

Member Function Documentation

◆ addEditPlaneAction()

void MainWindow::addEditPlaneAction ( QMenu &  menu) const

Adds the "Edit Plane" action to the given menu.

This is the only MainWindow UI action used externally (by ccDBRoot).

◆ addToDB()

void MainWindow::addToDB ( const QStringList &  filenames,
QString  fileFilter = QString(),
ccGLWindow *  destWin = nullptr 
)
virtual

Tries to load several files (and then pushes them into main DB)

Parameters
filenameslist of all filenames
fileFilterselected file filter (i.e. type)
destWindestination window (0 = active one)

◆ GetGLWindow()

ccGLWindow * MainWindow::GetGLWindow ( const QString &  title)
static

Returns a given GL sub-window (determined by its title)

Parameters
titlewindow title

◆ GetGLWindows()

void MainWindow::GetGLWindows ( std::vector< ccGLWindow * > &  glWindows)
static

Returns all GL sub-windows.

Parameters
[in,out]glWindowsvector to store all sub-windows

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