Loading...
Searching...
No Matches
materialSettings.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_MATERIALSETTINGS_H
#define BALL_VIEW_DIALOGS_MATERIALSETTINGS_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
# include <BALL/VIEW/KERNEL/preferencesEntry.h>
#endif
#include <BALL/VIEW/UIC/ui_materialSettings.h>
#include <QtWidgets/QWidget>
#include <QtWidgets/QLabel>
namespace BALL
{
namespace VIEW
{
class Scene;
class Representation;
class BALL_VIEW_EXPORT MaterialSettings
: public QWidget,
public Ui_MaterialSettingsData,
public PreferencesEntry
{
Q_OBJECT
public:
MaterialSettings( QWidget* parent = 0, const char* name = "MaterialSettings", Qt::WindowFlags fl = 0 );
~MaterialSettings() {}
void apply();
void setCurrentRepresentation(Representation* representation);
void updateDefaultMaterialsFromStage();
public Q_SLOTS:
virtual void ambientFactorChanged();
virtual void specularityFactorChanged();
virtual void reflectivenessFactorChanged();
virtual void shininessFactorChanged();
virtual void transparencyFactorChanged();
virtual void updateDirectlyBoxChanged();
virtual void editAmbientColor();
virtual void editSpecularityColor();
virtual void editReflectivenessColor();
private:
void setLabel_(QLabel& label, float value);
void setValues_(const QSlider& slider, QLabel& label, int divisor);
void setQuadraticValues_(const QSlider& slider, QLabel& label, int divisor);
Representation* current_representation_;
};
}
}
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::MaterialSettings::updateDefaultMaterialsFromStage
void updateDefaultMaterialsFromStage()
BALL::VIEW::MaterialSettings::transparencyFactorChanged
virtual void transparencyFactorChanged()
BALL::VIEW::MaterialSettings::apply
void apply()
Apply the new values to the stage.
BALL::VIEW::MaterialSettings::setCurrentRepresentation
void setCurrentRepresentation(Representation *representation)
set the current representation
BALL::VIEW::MaterialSettings::editReflectivenessColor
virtual void editReflectivenessColor()
BALL::VIEW::MaterialSettings::editSpecularityColor
virtual void editSpecularityColor()
BALL::VIEW::MaterialSettings::MaterialSettings
MaterialSettings(QWidget *parent=0, const char *name="MaterialSettings", Qt::WindowFlags fl=0)
Constructor.
BALL::VIEW::MaterialSettings::editAmbientColor
virtual void editAmbientColor()
BALL::VIEW::MaterialSettings::shininessFactorChanged
virtual void shininessFactorChanged()
BALL::VIEW::MaterialSettings::updateDirectlyBoxChanged
virtual void updateDirectlyBoxChanged()
BALL::VIEW::MaterialSettings::~MaterialSettings
~MaterialSettings()
Destructor.
Definition materialSettings.h:46
BALL::VIEW::MaterialSettings::specularityFactorChanged
virtual void specularityFactorChanged()
BALL::VIEW::MaterialSettings::ambientFactorChanged
virtual void ambientFactorChanged()
BALL::VIEW::MaterialSettings::reflectivenessFactorChanged
virtual void reflectivenessFactorChanged()
BALL::VIEW::PreferencesEntry::PreferencesEntry
PreferencesEntry()
BALL::VIEW::Representation
Definition representation.h:59
BALL::VIEW::Scene
Definition scene.h:141
QWidget
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
preferencesEntry.h