PeriDyno 1.0.0
Loading...
Searching...
No Matches
WRenderParamsWidget.h
Go to the documentation of this file.
1#pragma once
2
3#include <Wt/WContainerWidget.h>
4#include <Wt/WColorPicker.h>
5#include <Wt/WSignal.h>
6
7namespace dyno
8{
9 struct RenderParams;
10};
11
12class WRenderParamsWidget : public Wt::WContainerWidget
13{
14public:
16
17 void update();
18 Wt::Signal<>& valueChanged() { return mSignal; };
19
20private:
21 void createLightPanel();
22 void createCameraPanel();
23 void createRenderPanel();
24
25 void updateRenderParams();
26
27private:
28 Wt::Signal<> mSignal;
30
31 // ambient illumination
32 Wt::WColorPicker* mAmbientColor;
33 Wt::WDoubleSpinBox* mAmbientScale;
34
35 // main directional color
36 Wt::WColorPicker* mLightColor;
37 Wt::WDoubleSpinBox* mLightScale;
38 Wt::WSlider* mLightTheta;
39 Wt::WSlider* mLightPhi;
40
41 // camera
42 Wt::WDoubleSpinBox* mCameraEyeX;
43 Wt::WDoubleSpinBox* mCameraEyeY;
44 Wt::WDoubleSpinBox* mCameraEyeZ;
45
46 Wt::WDoubleSpinBox* mCameraTargetX;
47 Wt::WDoubleSpinBox* mCameraTargetY;
48 Wt::WDoubleSpinBox* mCameraTargetZ;
49
50 Wt::WDoubleSpinBox* mCameraUpX;
51 Wt::WDoubleSpinBox* mCameraUpY;
52 Wt::WDoubleSpinBox* mCameraUpZ;
53
54 Wt::WDoubleSpinBox* mCameraFov;
55 Wt::WDoubleSpinBox* mCameraAspect;
56 Wt::WDoubleSpinBox* mCameraClipNear;
57 Wt::WDoubleSpinBox* mCameraClipFar;
58
59 // render
60 Wt::WCheckBox* mSceneBounds;
61 //Wt::WCheckBox* mAxisHelper;
62 Wt::WCheckBox* mGroundPlane;
63 Wt::WSlider* mGroundScale;
64 Wt::WColorPicker* mBackgroudColor0;
65 Wt::WColorPicker* mBackgroudColor1;
66};
Wt::Signal & valueChanged()
Wt::WDoubleSpinBox * mCameraEyeZ
Wt::WDoubleSpinBox * mCameraEyeX
Wt::WColorPicker * mBackgroudColor1
Wt::WColorPicker * mBackgroudColor0
Wt::WDoubleSpinBox * mCameraUpZ
Wt::WDoubleSpinBox * mCameraClipNear
WRenderParamsWidget(dyno::RenderParams *rparams)
Wt::WColorPicker * mAmbientColor
dyno::RenderParams * mRenderParams
Wt::WDoubleSpinBox * mCameraTargetY
Wt::WDoubleSpinBox * mAmbientScale
Wt::WDoubleSpinBox * mCameraTargetX
Wt::WDoubleSpinBox * mCameraUpY
Wt::WCheckBox * mGroundPlane
Wt::WDoubleSpinBox * mCameraAspect
Wt::WDoubleSpinBox * mCameraFov
Wt::WCheckBox * mSceneBounds
Wt::WDoubleSpinBox * mCameraTargetZ
Wt::WDoubleSpinBox * mCameraUpX
Wt::WDoubleSpinBox * mCameraClipFar
Wt::WDoubleSpinBox * mLightScale
Wt::WDoubleSpinBox * mCameraEyeY
Wt::WColorPicker * mLightColor
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25