Dialog allowing to assign parameters of light source. More...
#include <OCCViewer_LightSourceDlg.h>
Public Member Functions | |
OCCViewer_LightSourceDlg (OCCViewer_ViewWindow *, OCCViewer_Viewer *) | |
Constructor. More... | |
~OCCViewer_LightSourceDlg () | |
Destructor. More... | |
Static Public Member Functions | |
static QString | getName () |
Private Slots | |
void | onTypeChanged () |
void | onDirChanged () |
void | onPosChanged () |
void | ClickOnOk () |
SLOT on "Apply and Close" button click: sets current light source and closes dialog. More... | |
void | ClickOnDefault () |
SLOT on "Default" button click: sets default light source. More... | |
void | ClickOnClose () |
SLOT on "Close" button click: sets initial light source and closes dialog. More... | |
void | ClickOnHelp () |
SLOT on help button click: opens a help page. More... | |
Private Member Functions | |
void | initParam (bool theIsDefault=false) |
Handle (V3d_DirectionalLight) myDirLight | |
Handle (V3d_PositionalLight) myPosLight | |
Private Attributes | |
OCCViewer_Viewer * | myModel |
QRadioButton * | myDirType |
QRadioButton * | myPosType |
QStackedLayout * | myStackedLayout |
QtxDoubleSpinBox * | myDx |
QtxDoubleSpinBox * | myDy |
QtxDoubleSpinBox * | myDz |
QCheckBox * | myDirHeadLight |
QtxColorButton * | myDirColor |
QtxDoubleSpinBox * | myX |
QtxDoubleSpinBox * | myY |
QtxDoubleSpinBox * | myZ |
QCheckBox * | myPosHeadLight |
QtxColorButton * | myPosColor |
double | myInX |
double | myInY |
double | myInZ |
bool | myInHeadLight |
Quantity_Color | myInColor |
V3d_TypeOfLight | myInType |
bool | isBusy |
Dialog allowing to assign parameters of light source.
OCCViewer_LightSourceDlg::OCCViewer_LightSourceDlg | ( | OCCViewer_ViewWindow * | view, |
OCCViewer_Viewer * | model | ||
) |
Constructor.
view | - parent widget |
model | - viewer |
References ClickOnClose(), ClickOnDefault(), ClickOnHelp(), ClickOnOk(), initParam(), isBusy, myDirColor, myDirHeadLight, myDirType, myDx, myDy, myDz, myPosColor, myPosHeadLight, myPosType, myStackedLayout, myX, myY, myZ, onDirChanged(), onPosChanged(), onTypeChanged(), and QtxColorButton::setColor().
OCCViewer_LightSourceDlg::~OCCViewer_LightSourceDlg | ( | ) |
|
privateslot |
|
privateslot |
SLOT on "Default" button click: sets default light source.
References initParam(), isBusy, myModel, and OCCViewer_Viewer::setDefaultLights().
|
privateslot |
SLOT on help button click: opens a help page.
References SUIT_Session::activeApplication(), SUIT_Application::onHelpContextModule(), and SUIT_Session::session().
|
privateslot |
|
static |
|
private |
|
private |
|
private |
Initialization of initial values of widgets
References OCCViewer::color(), Handle(), myDirColor, myDirHeadLight, myDirType, myDx, myDy, myDz, myInColor, myInHeadLight, myInType, myInX, myInY, myInZ, myModel, myPosColor, myPosHeadLight, myPosType, myStackedLayout, myX, myY, myZ, and QtxColorButton::setColor().
|
privateslot |
SLOT: called on value of directional light source changed
References QtxColorButton::color(), OCCViewer::color(), isBusy, myDirColor, myDirHeadLight, myDx, myDy, myDz, and myModel.
|
privateslot |
SLOT: called on value of positional light source changed
References QtxColorButton::color(), OCCViewer::color(), isBusy, myModel, myPosColor, myPosHeadLight, myX, myY, and myZ.
|
privateslot |
SLOT: called on type of light source changed
References isBusy, myDirType, myModel, myPosType, myStackedLayout, onDirChanged(), and onPosChanged().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |