open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Types | Public Slots | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
dlg_histogram_simple Class Reference

#include <dlg_histogram_simple.h>

Inheritance diagram for dlg_histogram_simple:
Collaboration diagram for dlg_histogram_simple:

Public Types

enum  Mode { NO_MODE, MOVE_VIEW_MODE, ZOOM_MODE, HIST_ZOOM_MODE }
 
enum  WheelMode { ZOOM_WHEEL_MODE, HIST_ZOOM_WHEEL_MODE }
 

Public Slots

void autoUpdate (bool toggled)
 If set to true rendering view updates are done automatically after changes in the transfer function. More...
 
void resetView ()
 Reset the histogram view and redraw it. More...
 

Public Member Functions

 dlg_histogram_simple (QWidget *parent)
 
void drawHistogram ()
 
void initialize (unsigned int *histData, int numberOfBeans, double _dataRange[2])
 
bool isUpdateAutomatically ()
 Returns if volume is updated automatically after changing the transfer function. More...
 
void redraw ()
 

Static Public Attributes

static double HIST_ZOOM_STEP = 1.5
 
static const int POINT_RADIUS = 6
 
static const int POINT_SIZE = 2*POINT_RADIUS
 
static const int SELECTED_POINT_RADIUS = 8
 
static const int SELECTED_POINT_SIZE = 2*SELECTED_POINT_RADIUS
 
static double ZOOM_STEP = 1.5
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void leaveEvent (QEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *) override
 
void resizeEvent (QResizeEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 

Member Enumeration Documentation

◆ Mode

Enumerator
NO_MODE 
MOVE_VIEW_MODE 
ZOOM_MODE 
HIST_ZOOM_MODE 

◆ WheelMode

Enumerator
ZOOM_WHEEL_MODE 
HIST_ZOOM_WHEEL_MODE 

Constructor & Destructor Documentation

◆ dlg_histogram_simple()

dlg_histogram_simple::dlg_histogram_simple ( QWidget *  parent)

Member Function Documentation

◆ autoUpdate

void dlg_histogram_simple::autoUpdate ( bool  toggled)
slot

If set to true rendering view updates are done automatically after changes in the transfer function.

◆ drawHistogram()

void dlg_histogram_simple::drawHistogram ( )

◆ initialize()

void dlg_histogram_simple::initialize ( unsigned int *  histData,
int  numberOfBeans,
double  _dataRange[2] 
)

◆ isUpdateAutomatically()

bool dlg_histogram_simple::isUpdateAutomatically ( )

Returns if volume is updated automatically after changing the transfer function.

◆ keyPressEvent()

void dlg_histogram_simple::keyPressEvent ( QKeyEvent *  event)
overrideprotected

◆ keyReleaseEvent()

void dlg_histogram_simple::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected

◆ leaveEvent()

void dlg_histogram_simple::leaveEvent ( QEvent *  event)
overrideprotected

◆ mouseMoveEvent()

void dlg_histogram_simple::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

◆ mousePressEvent()

void dlg_histogram_simple::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void dlg_histogram_simple::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

◆ paintEvent()

void dlg_histogram_simple::paintEvent ( QPaintEvent *  )
overrideprotected

◆ redraw()

void dlg_histogram_simple::redraw ( )

◆ resetView

void dlg_histogram_simple::resetView ( )
slot

Reset the histogram view and redraw it.

◆ resizeEvent()

void dlg_histogram_simple::resizeEvent ( QResizeEvent *  event)
overrideprotected

◆ wheelEvent()

void dlg_histogram_simple::wheelEvent ( QWheelEvent *  event)
overrideprotected

Member Data Documentation

◆ HIST_ZOOM_STEP

double dlg_histogram_simple::HIST_ZOOM_STEP = 1.5
static

◆ POINT_RADIUS

const int dlg_histogram_simple::POINT_RADIUS = 6
static

◆ POINT_SIZE

const int dlg_histogram_simple::POINT_SIZE = 2*POINT_RADIUS
static

◆ SELECTED_POINT_RADIUS

const int dlg_histogram_simple::SELECTED_POINT_RADIUS = 8
static

◆ SELECTED_POINT_SIZE

const int dlg_histogram_simple::SELECTED_POINT_SIZE = 2*SELECTED_POINT_RADIUS
static

◆ ZOOM_STEP

double dlg_histogram_simple::ZOOM_STEP = 1.5
static

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