KSeExpr 4.0.4.0
ExprCurve Class Reference

#include <ExprCurve.h>

Inheritance diagram for ExprCurve:

Public Slots

void cvSelectedSlot (double pos, double val, T_INTERP interp)
void selPosChanged ()
void selValChanged ()
void openDetail ()

Signals

void selPosChangedSignal (double pos)
void selValChangedSignal (double val)

Public Member Functions

 ExprCurve (QWidget *parent=nullptr, QString pLabel=QString(), QString vLabel=QString(), QString iLabel=QString(), bool expandable=true)
 ~ExprCurve () override=default
void addPoint (double x, double y, T_INTERP interp, bool select=false)

Public Attributes

CurveScene_scene

Private Types

using T_CURVE = KSeExpr::Curve<double>
using T_INTERP = T_CURVE::InterpType

Private Attributes

QLineEdit * _selPosEdit {nullptr}
QLineEdit * _selValEdit {nullptr}
QComboBox * _interpComboBox {nullptr}

Detailed Description

Definition at line 106 of file ExprCurve.h.

Member Typedef Documentation

◆ T_CURVE

using ExprCurve::T_CURVE = KSeExpr::Curve<double>
private

Definition at line 109 of file ExprCurve.h.

◆ T_INTERP

Definition at line 110 of file ExprCurve.h.

Constructor & Destructor Documentation

◆ ExprCurve()

ExprCurve::ExprCurve ( QWidget * parent = nullptr,
QString pLabel = QString(),
QString vLabel = QString(),
QString iLabel = QString(),
bool expandable = true )

◆ ~ExprCurve()

ExprCurve::~ExprCurve ( )
overridedefault

Member Function Documentation

◆ addPoint()

void ExprCurve::addPoint ( double x,
double y,
T_INTERP interp,
bool select = false )
inline

Definition at line 121 of file ExprCurve.h.

References _scene.

Referenced by openDetail().

◆ cvSelectedSlot

void ExprCurve::cvSelectedSlot ( double pos,
double val,
T_INTERP interp )
slot

Definition at line 373 of file ExprCurve.cpp.

References _interpComboBox, _selPosEdit, and _selValEdit.

Referenced by ExprCurve().

◆ openDetail

void ExprCurve::openDetail ( )
slot

Definition at line 403 of file ExprCurve.cpp.

References _scene, addPoint(), and ExprCurve().

Referenced by ExprCurve().

◆ selPosChanged

void ExprCurve::selPosChanged ( )
slot

Definition at line 387 of file ExprCurve.cpp.

References _selPosEdit, and selPosChangedSignal().

Referenced by ExprCurve().

◆ selPosChangedSignal

void ExprCurve::selPosChangedSignal ( double pos)
signal

Referenced by ExprCurve(), and selPosChanged().

◆ selValChanged

void ExprCurve::selValChanged ( )
slot

Definition at line 395 of file ExprCurve.cpp.

References _selValEdit, KSeExpr::clamp(), and selValChangedSignal().

Referenced by ExprCurve().

◆ selValChangedSignal

void ExprCurve::selValChangedSignal ( double val)
signal

Referenced by ExprCurve(), and selValChanged().

Member Data Documentation

◆ _interpComboBox

QComboBox* ExprCurve::_interpComboBox {nullptr}
private

Definition at line 142 of file ExprCurve.h.

Referenced by cvSelectedSlot(), and ExprCurve().

◆ _scene

CurveScene* ExprCurve::_scene

Definition at line 126 of file ExprCurve.h.

Referenced by addPoint(), ExprCurve(), and openDetail().

◆ _selPosEdit

QLineEdit* ExprCurve::_selPosEdit {nullptr}
private

Definition at line 140 of file ExprCurve.h.

Referenced by cvSelectedSlot(), ExprCurve(), and selPosChanged().

◆ _selValEdit

QLineEdit* ExprCurve::_selValEdit {nullptr}
private

Definition at line 141 of file ExprCurve.h.

Referenced by cvSelectedSlot(), ExprCurve(), and selValChanged().


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