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

Dialog allowing to assign parameters of environment texture.

#include <OCCViewer_EnvTextureDlg.h>

Inheritance diagram for OCCViewer_EnvTextureDlg:
Inheritance graph

Public Member Functions

 OCCViewer_EnvTextureDlg (OCCViewer_ViewWindow *)
 Constructor. More...
 
 ~OCCViewer_EnvTextureDlg ()
 Destructor. More...
 

Static Public Member Functions

static QString getName ()
 

Private Slots

void onEnvTexture (bool)
 
void onTextureChanged ()
 
void onFileSelectionClicked ()
 
void ClickOnHelp ()
 

Private Member Functions

void initParam ()
 
void setEnvTexture (Handle(Graphic3d_TextureEnv), V3d_TypeOfSurfaceDetail)
 
 Handle (V3d_View) myView3d
 

Private Attributes

OCCViewer_ViewFramemyViewFrame
 
QGroupBoxmyEnvTextureGroup
 
QComboBoxmyEnvTextureId
 
QLineEditmyEnvTextureName
 
QPushButton * myFileButton
 

Constructor & Destructor Documentation

OCCViewer_EnvTextureDlg::~OCCViewer_EnvTextureDlg ( )

Member Function Documentation

void OCCViewer_EnvTextureDlg::ClickOnHelp ( )
privateslot

SLOT on help button click: opens a help page

References SUIT_Session::activeApplication(), app, SUIT_Application::onHelpContextModule(), and SUIT_Session::session().

QString OCCViewer_EnvTextureDlg::getName ( )
static
OCCViewer_EnvTextureDlg::Handle ( V3d_View  )
private
void OCCViewer_EnvTextureDlg::initParam ( )
private

Initialization of initial values of widgets

References aTexture, Handle(), myEnvTextureGroup, myEnvTextureId, myEnvTextureName, and myFileButton.

void OCCViewer_EnvTextureDlg::onEnvTexture ( bool  theIsChecked)
privateslot

SLOT on "Environment texture" group click

References aTexture, Handle(), onTextureChanged(), and setEnvTexture().

void OCCViewer_EnvTextureDlg::onFileSelectionClicked ( )
privateslot

SLOT on file selection button click

References myEnvTextureName, and onTextureChanged().

void OCCViewer_EnvTextureDlg::onTextureChanged ( )
privateslot

SLOT on when user changed the texture

References aTexture, Handle(), myEnvTextureId, myEnvTextureName, myFileButton, onFileSelectionClicked(), and setEnvTexture().

void OCCViewer_EnvTextureDlg::setEnvTexture ( Handle(Graphic3d_TextureEnv)  theTexture,
V3d_TypeOfSurfaceDetail  theMode 
)
private

Sets current texture environment for all view in the viewer

References OCCViewer_ViewFrame::BOTTOM_RIGHT, OCCViewer_ViewWindow::getView(), Handle(), and OCCViewer_ViewFrame::TOP_RIGHT.

Member Data Documentation

QGroupBox* OCCViewer_EnvTextureDlg::myEnvTextureGroup
private
QComboBox* OCCViewer_EnvTextureDlg::myEnvTextureId
private
QLineEdit* OCCViewer_EnvTextureDlg::myEnvTextureName
private
QPushButton* OCCViewer_EnvTextureDlg::myFileButton
private
OCCViewer_ViewFrame* OCCViewer_EnvTextureDlg::myViewFrame
private

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