VAPOR3 3.9.4
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
TFColorMap Class Reference

#include <TFColorWidget.h>

Inheritance diagram for TFColorMap:
TFMap

Public Slots

void DeselectControlPoint ()
 
void UpdateFromInfo (float value, QColor color)
 
- Public Slots inherited from TFMap
void update ()
 These map to the QWidget counterparts.
 
void show ()
 
void hide ()
 

Signals

void ControlPointDeselected ()
 
void UpdateInfo (float value, QColor color)
 
- Signals inherited from TFMap
void Activated (TFMap *who)
 Emittend when focus was gained.
 

Public Member Functions

 TFColorMap (const std::string &variableNameTag, TFMapWidget *parent=nullptr)
 
QSize minimumSizeHint () const override
 
void LostFocus () override
 
void PopulateContextMenu (QMenu *menu, const glm::vec2 &p) override
 (Right-click menu)
 
void PopulateSettingsMenu (QMenu *menu) const override
 
- Public Member Functions inherited from TFMap
 TFMap (const std::string &variableNameTag, TFMapWidget *parent=nullptr)
 
TFInfoWidgetGetInfoWidget ()
 
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

void paramsUpdate () override
 
TFInfoWidgetcreateInfoWidget () override
 
void paintEvent (QPainter &p) override
 These map to the QWidget counterparts.
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
- Protected Member Functions inherited from TFMap
virtual void paramsUpdate ()=0
 
VAPoR::DataMgrgetDataMgr () const
 
VAPoR::ParamsMgrgetParamsMgr () const
 
VAPoR::RenderParamsgetRenderParams () const
 
VAPoR::MapperFunctiongetMapperFunction () const
 
std::string getVariableName () const
 
const std::string & getVariableNameTag () const
 
void drawControl (QPainter &p, const QPointF &pos, bool selected=false) const
 
virtual TFInfoWidgetcreateInfoWidget ()=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)
 

Detailed Description

Definition at line 13 of file TFColorWidget.h.

Constructor & Destructor Documentation

◆ TFColorMap()

TFColorMap::TFColorMap ( const std::string &  variableNameTag,
TFMapWidget parent = nullptr 
)

Member Function Documentation

◆ ControlPointDeselected

void TFColorMap::ControlPointDeselected ( )
signal

◆ createInfoWidget()

TFInfoWidget * TFColorMap::createInfoWidget ( )
overrideprotectedvirtual

Implements TFMap.

◆ DeselectControlPoint

void TFColorMap::DeselectControlPoint ( )
slot

◆ LostFocus()

void TFColorMap::LostFocus ( )
overridevirtual

Implements TFMap.

◆ minimumSizeHint()

QSize TFColorMap::minimumSizeHint ( ) const
overridevirtual

Implements TFMap.

◆ mouseDoubleClickEvent()

void TFColorMap::mouseDoubleClickEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from TFMap.

◆ mouseMoveEvent()

void TFColorMap::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from TFMap.

◆ mousePressEvent()

void TFColorMap::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from TFMap.

◆ mouseReleaseEvent()

void TFColorMap::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Reimplemented from TFMap.

◆ paintEvent()

void TFColorMap::paintEvent ( QPainter &  p)
overrideprotectedvirtual

These map to the QWidget counterparts.

Implements TFMap.

◆ paramsUpdate()

void TFColorMap::paramsUpdate ( )
overrideprotectedvirtual

Implements TFMap.

◆ PopulateContextMenu()

void TFColorMap::PopulateContextMenu ( QMenu *  menu,
const glm::vec2 &  p 
)
overridevirtual

(Right-click menu)

Reimplemented from TFMap.

◆ PopulateSettingsMenu()

void TFColorMap::PopulateSettingsMenu ( QMenu *  menu) const
overridevirtual

Reimplemented from TFMap.

◆ UpdateFromInfo

void TFColorMap::UpdateFromInfo ( float  value,
QColor  color 
)
slot

◆ UpdateInfo

void TFColorMap::UpdateInfo ( float  value,
QColor  color 
)
signal

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