Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OCCViewer_LightSourceDlg Class Reference

Dialog allowing to assign parameters of light source.

#include <OCCViewer_LightSourceDlg.h>

Inheritance diagram for OCCViewer_LightSourceDlg:
Inheritance graph

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_ViewermyModel
 
QRadioButton * myDirType
 
QRadioButton * myPosType
 
QStackedLayout * myStackedLayout
 
QtxDoubleSpinBoxmyDx
 
QtxDoubleSpinBoxmyDy
 
QtxDoubleSpinBoxmyDz
 
QCheckBox * myDirHeadLight
 
QtxColorButtonmyDirColor
 
QtxDoubleSpinBoxmyX
 
QtxDoubleSpinBoxmyY
 
QtxDoubleSpinBoxmyZ
 
QCheckBox * myPosHeadLight
 
QtxColorButtonmyPosColor
 
double myInX
 
double myInY
 
double myInZ
 
bool myInHeadLight
 
Quantity_Color myInColor
 
V3d_TypeOfLight myInType
 
bool isBusy
 

Constructor & Destructor Documentation

OCCViewer_LightSourceDlg::OCCViewer_LightSourceDlg ( OCCViewer_ViewWindow view,
OCCViewer_Viewer model 
)
OCCViewer_LightSourceDlg::~OCCViewer_LightSourceDlg ( )

References myInType, and myModel.

Member Function Documentation

void OCCViewer_LightSourceDlg::ClickOnClose ( )
privateslot
void OCCViewer_LightSourceDlg::ClickOnDefault ( )
privateslot
void OCCViewer_LightSourceDlg::ClickOnHelp ( )
privateslot
void OCCViewer_LightSourceDlg::ClickOnOk ( )
privateslot

References myDirType, and myInType.

QString OCCViewer_LightSourceDlg::getName ( )
static
OCCViewer_LightSourceDlg::Handle ( V3d_DirectionalLight  )
private
OCCViewer_LightSourceDlg::Handle ( V3d_PositionalLight  )
private
void OCCViewer_LightSourceDlg::initParam ( bool  theIsDefault = false)
private
void OCCViewer_LightSourceDlg::onDirChanged ( )
privateslot

SLOT: called on value of directional light source changed

References QtxColorButton::color(), OCCViewer::color(), isBusy, myDirColor, myDirHeadLight, myDx, myDy, myDz, and myModel.

void OCCViewer_LightSourceDlg::onPosChanged ( )
privateslot

SLOT: called on value of positional light source changed

References QtxColorButton::color(), OCCViewer::color(), isBusy, myModel, myPosColor, myPosHeadLight, myX, myY, and myZ.

void OCCViewer_LightSourceDlg::onTypeChanged ( )
privateslot

SLOT: called on type of light source changed

References isBusy, myDirType, myModel, myPosType, myStackedLayout, onDirChanged(), and onPosChanged().

Member Data Documentation

bool OCCViewer_LightSourceDlg::isBusy
private
QtxColorButton* OCCViewer_LightSourceDlg::myDirColor
private
QCheckBox* OCCViewer_LightSourceDlg::myDirHeadLight
private
QRadioButton* OCCViewer_LightSourceDlg::myDirType
private
QtxDoubleSpinBox* OCCViewer_LightSourceDlg::myDx
private
QtxDoubleSpinBox* OCCViewer_LightSourceDlg::myDy
private
QtxDoubleSpinBox* OCCViewer_LightSourceDlg::myDz
private
Quantity_Color OCCViewer_LightSourceDlg::myInColor
private
bool OCCViewer_LightSourceDlg::myInHeadLight
private
V3d_TypeOfLight OCCViewer_LightSourceDlg::myInType
private
double OCCViewer_LightSourceDlg::myInX
private
double OCCViewer_LightSourceDlg::myInY
private
double OCCViewer_LightSourceDlg::myInZ
private
OCCViewer_Viewer* OCCViewer_LightSourceDlg::myModel
private
QtxColorButton* OCCViewer_LightSourceDlg::myPosColor
private
QCheckBox* OCCViewer_LightSourceDlg::myPosHeadLight
private
QRadioButton* OCCViewer_LightSourceDlg::myPosType
private
QStackedLayout* OCCViewer_LightSourceDlg::myStackedLayout
private
QtxDoubleSpinBox* OCCViewer_LightSourceDlg::myX
private
QtxDoubleSpinBox* OCCViewer_LightSourceDlg::myY
private
QtxDoubleSpinBox* OCCViewer_LightSourceDlg::myZ
private

The documentation for this class was generated from the following files: