27 const std::string _variableNameTag;
32 bool _insideSaveStateGroup =
false;
52 int width()
const {
return _width; }
53 int height()
const {
return _height; }
87 void drawControl(QPainter &p,
const QPointF &pos,
bool selected =
false)
const;
114 std::vector<TFMap *> _maps;
132 void _mapActivated(
TFMap *who);
133 void _showContextMenu(
const QPoint &);
virtual void mouseReleaseEvent(QMouseEvent *event)
QRect paddedRect() const
Returns the rect of the internal padded area.
virtual void mouseMoveEvent(QMouseEvent *event)
void drawControl(QPainter &p, const QPointF &pos, bool selected=false) const
virtual QMargins GetPadding() const
virtual void paramsUpdate()=0
virtual TFInfoWidget * createInfoWidget()=0
void CancelSaveStateGroup(VAPoR::ParamsMgr *paramsMgr)
const std::string & getVariableNameTag() const
bool isLargeEnoughToPaint() const
Sometimes Qt tries painting a 0 sized widget.
void BeginSaveStateGroup(VAPoR::ParamsMgr *paramsMgr, const std::string &description="")
VAPoR::MapperFunction * getMapperFunction() const
void Update(VAPoR::DataMgr *dataMgr, VAPoR::ParamsMgr *paramsMgr, VAPoR::RenderParams *rParams)
glm::vec2 PixelToNDC(const QPointF &p) const
const QFont getFont() const
bool HasValidParams() const
void EndSaveStateGroup(VAPoR::ParamsMgr *paramsMgr)
TFMap(const std::string &variableNameTag, TFMapWidget *parent=nullptr)
QPointF NDCToQPixel(float x, float y) const
QPointF NDCToQPixel(const glm::vec2 &v) const
void Activated(TFMap *who)
Emittend when focus was gained.
virtual void LostFocus()=0
virtual void PopulateSettingsMenu(QMenu *menu) const
void resize(int width, int height)
glm::vec2 PixelToNDC(const glm::vec2 &p) const
virtual void PopulateContextMenu(QMenu *menu, const glm::vec2 &p)
(Right-click menu)
VAPoR::DataMgr * getDataMgr() const
VAPoR::ParamsMgr * getParamsMgr() const
int GetControlPointRadius() const
glm::vec2 NDCToPixel(const glm::vec2 &v) const
virtual void paintEvent(QPainter &p)=0
These map to the QWidget counterparts.
VAPoR::RenderParams * getRenderParams() const
virtual QSize minimumSizeHint() const =0
std::string getVariableName() const
void update()
These map to the QWidget counterparts.
TFInfoWidget * GetInfoWidget()
virtual void mousePressEvent(QMouseEvent *event)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
A cache based data reader.
Parent class for TransferFunction and IsoControl, supports positioning histogram over color/opacity m...
A singleton class for managing Params instances.
A Params subclass for managing parameters used by Renderers.