VAPOR3 3.9.4
|
#include <TFMapWidget.h>
Public Slots | |
void | update () |
These map to the QWidget counterparts. | |
void | show () |
void | hide () |
Signals | |
void | Activated (TFMap *who) |
Emittend when focus was gained. | |
Public Member Functions | |
TFMap (const std::string &variableNameTag, TFMapWidget *parent=nullptr) | |
TFInfoWidget * | GetInfoWidget () |
void | Update (VAPoR::DataMgr *dataMgr, VAPoR::ParamsMgr *paramsMgr, VAPoR::RenderParams *rParams) |
bool | HasValidParams () const |
bool | IsShown () const |
virtual void | LostFocus ()=0 |
virtual QSize | minimumSizeHint () const =0 |
virtual void | PopulateContextMenu (QMenu *menu, const glm::vec2 &p) |
(Right-click menu) | |
virtual void | PopulateSettingsMenu (QMenu *menu) const |
int | width () const |
int | height () const |
void | resize (int width, int height) |
bool | isLargeEnoughToPaint () const |
Sometimes Qt tries painting a 0 sized widget. | |
QRect | paddedRect () const |
Returns the rect of the internal padded area. | |
QRect | rect () const |
const QFont | getFont () const |
virtual void | paintEvent (QPainter &p)=0 |
These map to the QWidget counterparts. | |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
Protected Member Functions | |
virtual void | paramsUpdate ()=0 |
VAPoR::DataMgr * | getDataMgr () const |
VAPoR::ParamsMgr * | getParamsMgr () const |
VAPoR::RenderParams * | getRenderParams () const |
VAPoR::MapperFunction * | getMapperFunction () const |
std::string | getVariableName () const |
const std::string & | getVariableNameTag () const |
void | drawControl (QPainter &p, const QPointF &pos, bool selected=false) const |
virtual TFInfoWidget * | createInfoWidget ()=0 |
glm::vec2 | NDCToPixel (const glm::vec2 &v) const |
QPointF | NDCToQPixel (const glm::vec2 &v) const |
QPointF | NDCToQPixel (float x, float y) const |
glm::vec2 | PixelToNDC (const QPointF &p) const |
glm::vec2 | PixelToNDC (const glm::vec2 &p) const |
virtual QMargins | GetPadding () const |
int | GetControlPointRadius () const |
void | BeginSaveStateGroup (VAPoR::ParamsMgr *paramsMgr, const std::string &description="") |
void | EndSaveStateGroup (VAPoR::ParamsMgr *paramsMgr) |
void | CancelSaveStateGroup (VAPoR::ParamsMgr *paramsMgr) |
Friends | |
class | TFMapWidget |
A widget for editing a transfer function mapped value, for example opacity or color. They are not QWidgets because of limitations in Qt which do not allow widgets to be stacked on top of another with passthrough mouse events. Because of this, TFMapWidget manually holds TFMaps and manages such events.
Definition at line 24 of file TFMapWidget.h.
TFMap::TFMap | ( | const std::string & | variableNameTag, |
TFMapWidget * | parent = nullptr |
||
) |
|
signal |
Emittend when focus was gained.
|
protected |
|
protected |
|
protectedpure virtual |
Implemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
protected |
|
protected |
|
protected |
|
inlineprotected |
Definition at line 80 of file TFMapWidget.h.
const QFont TFMap::getFont | ( | ) | const |
TFInfoWidget * TFMap::GetInfoWidget | ( | ) |
|
protected |
|
protectedvirtual |
Reimplemented in TFIsoValueMap.
|
inlineprotected |
Definition at line 81 of file TFMapWidget.h.
|
inlineprotected |
Definition at line 82 of file TFMapWidget.h.
|
protected |
|
protected |
bool TFMap::HasValidParams | ( | ) | const |
|
inline |
Definition at line 53 of file TFMapWidget.h.
|
slot |
bool TFMap::isLargeEnoughToPaint | ( | ) | const |
Sometimes Qt tries painting a 0 sized widget.
bool TFMap::IsShown | ( | ) | const |
|
pure virtual |
Implemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
pure virtual |
Implemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
virtual |
Reimplemented in TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
virtual |
Reimplemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
virtual |
Reimplemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
virtual |
Reimplemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
protected |
|
protected |
|
protected |
QRect TFMap::paddedRect | ( | ) | const |
Returns the rect of the internal padded area.
|
pure virtual |
These map to the QWidget counterparts.
Implemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
protectedpure virtual |
Implemented in TFHistogramMap, TFColorMap, TFIsoValueMap, and TFOpacityMap.
|
protected |
|
protected |
|
inlinevirtual |
(Right-click menu)
Reimplemented in TFColorMap, TFIsoValueMap, and TFOpacityMap.
Definition at line 49 of file TFMapWidget.h.
|
inlinevirtual |
Reimplemented in TFHistogramMap, TFColorMap, and TFOpacityMap.
Definition at line 50 of file TFMapWidget.h.
QRect TFMap::rect | ( | ) | const |
void TFMap::resize | ( | int | width, |
int | height | ||
) |
|
slot |
|
slot |
These map to the QWidget counterparts.
void TFMap::Update | ( | VAPoR::DataMgr * | dataMgr, |
VAPoR::ParamsMgr * | paramsMgr, | ||
VAPoR::RenderParams * | rParams | ||
) |
|
inline |
Definition at line 52 of file TFMapWidget.h.
|
friend |
Definition at line 69 of file TFMapWidget.h.