ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccHistogramWindowDlg Class Reference

Encapsulating dialog for ccHistogramWindow. More...

#include <ecvHistogramWindow.h>

Inheritance diagram for ccHistogramWindowDlg:
Collaboration diagram for ccHistogramWindowDlg:

Public Member Functions

 ccHistogramWindowDlg (QWidget *parent=0)
 Default constructor. More...
 
virtual ~ccHistogramWindowDlg ()
 Destructor. More...
 
ccHistogramWindowwindow ()
 Returns encapsulated ccHistogramWindow. More...
 
bool exportToCSV (QString filename) const
 Exports histogram to a CSV file. More...
 

Protected Member Functions

void onExportToCSV ()
 When the export to CSV file button is pressed. More...
 
void onExportToImage ()
 When the export to Image file button is pressed. More...
 

Protected Attributes

ccHistogramWindowm_win
 
Ui_HistogramDialog * m_gui
 Associated widgets. More...
 

Detailed Description

Encapsulating dialog for ccHistogramWindow.

Definition at line 249 of file ecvHistogramWindow.h.

Constructor & Destructor Documentation

◆ ccHistogramWindowDlg()

ccHistogramWindowDlg::ccHistogramWindowDlg ( QWidget *  parent = 0)
explicit

Default constructor.

Definition at line 842 of file ecvHistogramWindow.cpp.

References m_gui, m_win, onExportToCSV(), and onExportToImage().

◆ ~ccHistogramWindowDlg()

ccHistogramWindowDlg::~ccHistogramWindowDlg ( )
virtual

Destructor.

Definition at line 861 of file ecvHistogramWindow.cpp.

References m_gui.

Member Function Documentation

◆ exportToCSV()

bool ccHistogramWindowDlg::exportToCSV ( QString  filename) const

◆ onExportToCSV()

void ccHistogramWindowDlg::onExportToCSV ( )
protected

When the export to CSV file button is pressed.

Definition at line 915 of file ecvHistogramWindow.cpp.

References ecvPS::CurrentPath(), ecvFileUtils::defaultDocPath(), exportToCSV(), filename, m_win, and ecvPS::SaveFile().

Referenced by ccHistogramWindowDlg().

◆ onExportToImage()

void ccHistogramWindowDlg::onExportToImage ( )
protected

When the export to Image file button is pressed.

Definition at line 946 of file ecvHistogramWindow.cpp.

References ecvPS::CurrentPath(), ecvFileUtils::defaultDocPath(), CVLog::Error(), ImageFileFilter::GetSaveFilename(), image, m_win, CVLog::Print(), and ecvPS::SaveFile().

Referenced by ccHistogramWindowDlg().

◆ window()

ccHistogramWindow* ccHistogramWindowDlg::window ( )
inline

Member Data Documentation

◆ m_gui

Ui_HistogramDialog* ccHistogramWindowDlg::m_gui
protected

Associated widgets.

Definition at line 276 of file ecvHistogramWindow.h.

Referenced by ccHistogramWindowDlg(), and ~ccHistogramWindowDlg().

◆ m_win

ccHistogramWindow* ccHistogramWindowDlg::m_win
protected

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