25 _equidistantIsoValues = b;
33 void drawControl(QPainter &p,
const QPointF &pos,
bool selected =
false,
bool invalid =
false)
const;
44 bool _isDraggingControl =
false;
45 int _draggingControlID;
47 glm::vec2 _dragOffset;
49 std::vector<float> _isoValues;
50 std::vector<bool> _isoValuesInBounds;
51 bool _equidistantIsoValues =
true;
53 bool controlPointContainsPixel(
const glm::vec2 &cp,
const glm::vec2 &pixel)
const;
57 void clampIsoValuesToMappingRange();
58 int addControlPoint(
float value);
59 void deleteControlPoint(
int i);
60 void moveControlPoint(
int *index,
float value);
61 void selectControlPoint(
int index);
62 int findSelectedControlPoint(
const glm::vec2 &mouse)
const;
63 bool controlPointContainsPixel(
float cp,
const glm::vec2 &pixel)
const;
64 QPoint controlQPositionForValue(
float value)
const;
65 glm::vec2 controlPositionForValue(
float value)
const;
66 float controlXForValue(
float value)
const;
67 float valueForControlX(
float position)
const;
68 float getMapRangeMin()
const;
69 float getMapRangeMax()
const;
80 void menuDeleteControlPoint();
81 void menuAddControlPoint();
void drawControl(QPainter &p, const QPointF &pos, bool selected=false, bool invalid=false) const
void LostFocus() override
float GetControlPointTriangleHeight() const
void DeselectControlPoint()
QRect GetControlPointArea(const QPoint &p) const
void mouseMoveEvent(QMouseEvent *event) override
void mouseDoubleClickEvent(QMouseEvent *event) override
float GetControlPointSquareHeight() const
QMargins GetPadding() const override
void UpdateFromInfo(float value)
TFIsoValueMap(const std::string &variableNameTag, TFMapWidget *parent=nullptr)
TFInfoWidget * createInfoWidget() override
void UpdateInfo(float value)
void paintEvent(QPainter &p) override
These map to the QWidget counterparts.
void mousePressEvent(QMouseEvent *event) override
void mouseReleaseEvent(QMouseEvent *event) override
void paramsUpdate() override
QSize minimumSizeHint() const override
TFIsoValueMap * SetEquidistantIsoValues(bool b)
void ControlPointDeselected()
void PopulateContextMenu(QMenu *menu, const glm::vec2 &p) override
(Right-click menu)
A Params subclass for managing parameters used by Renderers.