Loading...
Searching...
No Matches
raytraceableContourSurfaceDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
#define BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_COMMON_EXCEPTION_H
# include <BALL/COMMON/exception.h>
#endif
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_VIEW_DATATYP_RAYTRACEABLEGRID_H
# include <BALL/VIEW/DATATYPE/raytraceableGrid.h>
#endif
#include <BALL/VIEW/UIC/ui_raytraceableContourSurfaceDialog.h>
#include <QtWidgets/QDialog>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT RaytraceableContourSurfaceDialog
: public QDialog,
public Ui_RaytraceableContourSurfaceDialogData,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(RaytraceableContourSurfaceDialog, ModularWidget)
RaytraceableContourSurfaceDialog(RaytraceableGrid* grid, QWidget* parent = 0, const char* name = "RaytraceableContourSurfaceDialog", bool modal = false, Qt::WindowFlags fl = 0);
~RaytraceableContourSurfaceDialog();
void setGrid(RaytraceableGrid* grid) {grid_ = grid;};
RaytraceableGrid* getGrid() {return grid_;};
public Q_SLOTS:
void add();
void accept();
void reject();
void changedSliderThreshold(int a);
void changedEditThreshold();
//
void changedRangeMin();
//
void changedRangeMax();
//
void changedRangeSteps();
//void setDefaultRangeValues_();
protected Q_SLOTS:
void setDefaultRangeValues_();
protected:
void addModel_(float threshold);
private:
float getValue_(const QAbstractSlider* slider) const;
float getValue_(const QLineEdit* edit) const;
// the sliders min and max
float min_;
float max_;
int steps_;
float current_threshold_;
RaytraceableGrid* grid_;
};
} // namespaces
}
#endif //BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
exception.h
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
BALL::VIEW::RaytraceableContourSurfaceDialog::getGrid
RaytraceableGrid * getGrid()
Definition raytraceableContourSurfaceDialog.h:54
BALL::VIEW::RaytraceableContourSurfaceDialog::changedSliderThreshold
void changedSliderThreshold(int a)
BALL::VIEW::RaytraceableContourSurfaceDialog::setDefaultRangeValues_
void setDefaultRangeValues_()
BALL::VIEW::RaytraceableContourSurfaceDialog::setGrid
void setGrid(RaytraceableGrid *grid)
Definition raytraceableContourSurfaceDialog.h:53
BALL::VIEW::RaytraceableContourSurfaceDialog::changedEditThreshold
void changedEditThreshold()
BALL::VIEW::RaytraceableContourSurfaceDialog::changedRangeMax
void changedRangeMax()
BALL::VIEW::RaytraceableContourSurfaceDialog::RaytraceableContourSurfaceDialog
RaytraceableContourSurfaceDialog(RaytraceableGrid *grid, QWidget *parent=0, const char *name="RaytraceableContourSurfaceDialog", bool modal=false, Qt::WindowFlags fl=0)
BALL::VIEW::RaytraceableContourSurfaceDialog::add
void add()
BALL::VIEW::RaytraceableContourSurfaceDialog::addModel_
void addModel_(float threshold)
BALL::VIEW::RaytraceableContourSurfaceDialog::reject
void reject()
BALL::VIEW::RaytraceableContourSurfaceDialog::changedRangeMin
void changedRangeMin()
BALL::VIEW::RaytraceableContourSurfaceDialog::changedRangeSteps
void changedRangeSteps()
BALL::VIEW::RaytraceableContourSurfaceDialog::accept
void accept()
BALL::VIEW::RaytraceableGrid
Definition raytraceableGrid.h:17
QDialog
QLineEdit
QWidget
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
raytraceableGrid.h