-
Notifications
You must be signed in to change notification settings - Fork 0
/
AttributeHistogram.h
51 lines (41 loc) · 1.12 KB
/
AttributeHistogram.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @file AttributeHistogram.h
* @author Dan R. Lipsa
* @date 13 August 2010
* @ingroup view
* @brief A GUI histogram of a scalar attribute useful for one time step
* and all time steps.
*/
#ifndef __ATTRIBUTE_HISTOGRAM_H__
#define __ATTRIBUTE_HISTOGRAM_H__
#include "Histogram.h"
class ColorBarModel;
/**
* @brief A GUI histogram of a scalar attribute useful for one time step
* and all time steps.
*/
class AttributeHistogram : public Histogram
{
public:
AttributeHistogram (QWidget* parent = 0);
void DisplayFocus (bool focus);
public Q_SLOTS:
void SelectAll ();
void DeselectAll ();
void CurrentIndexChangedInteractionMode (int index);
void SetColorTransferFunction (
boost::shared_ptr<ColorBarModel> colorBarModel);
protected:
void contextMenuEvent(QContextMenuEvent *event);
private:
void createActions ();
private:
Q_OBJECT
boost::shared_ptr<QAction> m_actionSelectAll;
boost::shared_ptr<QAction> m_actionDeselectAll;
boost::shared_ptr<QAction> m_actionHeightSettings;
};
#endif //__ATTRIBUTE_HISTOGRAM_H__
// Local Variables:
// mode: c++
// End: