3D Forest
Software for analysis of Lidar data from forest environment.
DoubleSliderWidget Class Reference

#include <DoubleSliderWidget.hpp>

Inherits QWidget.

Public Types

enum  Layout { LAYOUT_SLIDER_BESIDE_LABEL , LAYOUT_SLIDER_UNDER_LABEL }
 

Signals

void signalIntermediateValue (int v)
 
void signalFinalValue ()
 

Public Member Functions

 DoubleSliderWidget ()
 
double value () const
 
double minimum () const
 
double maximum () const
 
void setValue (double value)
 
void setMinimum (double min)
 
void setMaximum (double max)
 
void blockSignals (bool block)
 

Static Public Member Functions

static void create (DoubleSliderWidget *&outputWidget, const QObject *receiver, const char *memberIntermediateValue, const char *memberFinalValue, const QString &text, const QString &toolTip, const QString &unitsList, double step, double min, double max, double value, Layout layout=LAYOUT_SLIDER_UNDER_LABEL)
 

Protected Slots

void slotIntermediateValue (int v)
 
void slotFinalValue ()
 

Protected Attributes

QSlider * slider_
 
QSpinBox * spinBox_
 

Member Enumeration Documentation

◆ Layout

Slider layout.

Enumerator
LAYOUT_SLIDER_BESIDE_LABEL 
LAYOUT_SLIDER_UNDER_LABEL 

Constructor & Destructor Documentation

◆ DoubleSliderWidget()

DoubleSliderWidget::DoubleSliderWidget ( )

Referenced by create().

Member Function Documentation

◆ blockSignals()

void DoubleSliderWidget::blockSignals ( bool  block)

◆ create()

void DoubleSliderWidget::create ( DoubleSliderWidget *&  outputWidget,
const QObject *  receiver,
const char *  memberIntermediateValue,
const char *  memberFinalValue,
const QString &  text,
const QString &  toolTip,
const QString &  unitsList,
double  step,
double  min,
double  max,
double  value,
Layout  layout = LAYOUT_SLIDER_UNDER_LABEL 
)
static

◆ maximum()

double DoubleSliderWidget::maximum ( ) const

◆ minimum()

double DoubleSliderWidget::minimum ( ) const

◆ setMaximum()

void DoubleSliderWidget::setMaximum ( double  max)

◆ setMinimum()

void DoubleSliderWidget::setMinimum ( double  min)

◆ setValue()

void DoubleSliderWidget::setValue ( double  value)

◆ signalFinalValue

void DoubleSliderWidget::signalFinalValue ( )
signal

Referenced by create(), and slotFinalValue().

◆ signalIntermediateValue

void DoubleSliderWidget::signalIntermediateValue ( int  v)
signal

Referenced by create(), and slotIntermediateValue().

◆ slotFinalValue

void DoubleSliderWidget::slotFinalValue ( )
protectedslot

Referenced by create().

◆ slotIntermediateValue

void DoubleSliderWidget::slotIntermediateValue ( int  v)
protectedslot

Referenced by create().

◆ value()

double DoubleSliderWidget::value ( ) const

Member Data Documentation

◆ slider_

QSlider* DoubleSliderWidget::slider_
protected

◆ spinBox_

QSpinBox* DoubleSliderWidget::spinBox_
protected

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