Loading...
Searching...
No Matches
stageSettings.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_STAGESETTINGS_H
#define BALL_VIEW_DIALOGS_STAGESETTINGS_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
# include <BALL/VIEW/KERNEL/preferencesEntry.h>
#endif
#ifndef BALL_MATH_VECTOR3
# include <BALL/MATHS/vector3.h>
#endif
#ifndef BALL_VIEW_RENDERING_RENDERSETUP_H
# include <BALL/VIEW/RENDERING/renderSetup.h>
#endif
#ifndef BALL_VIEW_RENDERING_RENDERERS_RENDERER_H
# include <BALL/VIEW/RENDERING/RENDERERS/renderer.h>
#endif
#include <BALL/VIEW/UIC/ui_stageSettings.h>
#include <QtWidgets/QWidget>
class QSplashScreen;
namespace BALL
{
namespace VIEW
{
class Stage;
class Scene;
class BALL_VIEW_EXPORT StageSettings
: public QWidget,
public Ui_StageSettingsData,
public PreferencesEntry
{
Q_OBJECT
public:
StageSettings( QWidget* parent = 0, const char* name = "StageSettings", Qt::WindowFlags fl = 0 );
~StageSettings() {}
void updateFromStage();
void apply();
void getGLSettings();
int getControlScreenNumber() const;
int getLeftEyeScreenNumber() const;
int getRightEyeScreenNumber() const;
Renderer::StereoMode getStereoMode() const;
RenderSetup::RendererType getControlScreenRendererType() const;
RenderSetup::RendererType getStereoScreensRendererType() const;
QRect getLeftEyeGeometry() const;
QRect getRightEyeGeometry() const;
virtual bool setValueAllowed(QObject* widget);
public Q_SLOTS:
void computeDefaultPressed();
void loadEnvironmentMapPressed();
void environmentMapChanged(bool active);
void fogBoxChanged(bool active);
void screenCountChanged(int number);
void stereoScreenChanged(int new_screen);
void identifyDisplays();
void stereoModeChanged();
private Q_SLOTS:
void eyeDistanceChanged();
void focalDistanceChanged();
void projectionTransformationChanged();
void downsamplingSliderChanged();
void killIdentificationLabels_();
private:
Vector3 getTextureUpDirection_();
void setTextureUpDirection_(const Vector3& tud);
float getUser2ScreenDistance_();
void setUser2ScreenDistance_(const float& s2u);
float getUserEyeLevel_();
void setUserEyeLevel_(const float& s2u);
float getUserEyeDistance_();
void setUserEyeDistance_(const float& s2u);
void setDefaultValues_();
//_ apply values to a Stage
void saveSettingsToStage_();
Scene* scene_;
VIEW::Stage* stage_;
std::vector<QSplashScreen*> identification_labels_;
};
} }
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::PreferencesEntry::PreferencesEntry
PreferencesEntry()
BALL::VIEW::RenderSetup::RendererType
RendererType
Definition renderSetup.h:63
BALL::VIEW::Renderer::StereoMode
StereoMode
Definition renderer.h:60
BALL::VIEW::Scene
Definition scene.h:141
BALL::VIEW::StageSettings::screenCountChanged
void screenCountChanged(int number)
BALL::VIEW::StageSettings::getLeftEyeGeometry
QRect getLeftEyeGeometry() const
BALL::VIEW::StageSettings::setValueAllowed
virtual bool setValueAllowed(QObject *widget)
Allows to prevent restoring of widgets.
BALL::VIEW::StageSettings::loadEnvironmentMapPressed
void loadEnvironmentMapPressed()
Show a QFileDialog to select a new environment texture map for the Scene.
BALL::VIEW::StageSettings::getStereoMode
Renderer::StereoMode getStereoMode() const
BALL::VIEW::StageSettings::getLeftEyeScreenNumber
int getLeftEyeScreenNumber() const
BALL::VIEW::StageSettings::getControlScreenRendererType
RenderSetup::RendererType getControlScreenRendererType() const
BALL::VIEW::StageSettings::computeDefaultPressed
void computeDefaultPressed()
BALL::VIEW::StageSettings::getRightEyeGeometry
QRect getRightEyeGeometry() const
BALL::VIEW::StageSettings::stereoScreenChanged
void stereoScreenChanged(int new_screen)
BALL::VIEW::StageSettings::getStereoScreensRendererType
RenderSetup::RendererType getStereoScreensRendererType() const
BALL::VIEW::StageSettings::getGLSettings
void getGLSettings()
BALL::VIEW::StageSettings::apply
void apply()
Apply the new values to the stage.
BALL::VIEW::StageSettings::stereoModeChanged
void stereoModeChanged()
BALL::VIEW::StageSettings::StageSettings
StageSettings(QWidget *parent=0, const char *name="StageSettings", Qt::WindowFlags fl=0)
Constructor.
BALL::VIEW::StageSettings::getRightEyeScreenNumber
int getRightEyeScreenNumber() const
BALL::VIEW::StageSettings::updateFromStage
void updateFromStage()
Get the values for Stageing from the stage.
BALL::VIEW::StageSettings::fogBoxChanged
void fogBoxChanged(bool active)
BALL::VIEW::StageSettings::getControlScreenNumber
int getControlScreenNumber() const
BALL::VIEW::StageSettings::~StageSettings
~StageSettings()
Destructor.
Definition stageSettings.h:63
BALL::VIEW::StageSettings::environmentMapChanged
void environmentMapChanged(bool active)
BALL::VIEW::StageSettings::identifyDisplays
void identifyDisplays()
BALL::VIEW::Stage
Definition stage.h:239
QObject
QWidget
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
preferencesEntry.h
renderSetup.h
renderer.h
vector3.h