Developer Documentation
Loading...
Searching...
No Matches
ACG::QtWidgets::QtMaterialDialog Class Reference
Inheritance diagram for ACG::QtWidgets::QtMaterialDialog:

Signals

void signalNodeChanged (ACG::SceneGraph::BaseNode *_node)
 

Public Member Functions

 QtMaterialDialog (QWidget *_parent, SceneGraph::MaterialNode *_node)
 

Private Slots

void changeBaseColor (QColor _newColor)
 
void changeAmbientColor (QColor _newColor)
 
void changeDiffuseColor (QColor _newColor)
 
void changeSpecularColor (QColor _newColor)
 
void changeOverlayColor (QColor _newColor)
 
void changeShine (int _new)
 
void changePointSize (double _new)
 
void changeLineWidth (double _new)
 
void changeRoundPoints (bool _b)
 
void changeLineSmooth (bool _b)
 
void changeBackfaceCulling (bool _b)
 
void changeAlphaTest (bool _b)
 
void changeAlphaValue (int _new)
 
void changeBlending (bool _b)
 
void changeBlendingParam1 (const QString &_name)
 
void changeBlendingParam2 (const QString &_name)
 
void changeColorMaterial (bool _b)
 
void changeMultiSampling (bool _b)
 
void changeActive (bool toggle)
 
void enableProperty ()
 
void enableProperty (int i)
 
void enableProperty (double d)
 
QString paramToStr (GLenum param)
 
void applyChanges ()
 
void undoChanges ()
 
void reject ()
 

Private Member Functions

QColor convertColor (Vec4f _color)
 
Vec4f convertColor (QColor _color)
 
void setButtonColor (QtColorChooserButton *_button, const Vec4f &_color)
 

Private Attributes

unsigned int applyProperties_
 
Vec4f color_
 
Vec4f bak_color_
 
Vec4f ambient_
 
Vec4f bak_ambient_
 
Vec4f diffuse_
 
Vec4f bak_diffuse_
 
Vec4f specular_
 
Vec4f bak_specular_
 
Vec4f overlay_
 
Vec4f bak_overlay_
 
float shine_
 
float bak_shine_
 
float point_size_
 
float bak_point_size_
 
float line_width_
 
float bak_line_width_
 
bool round_points_
 
bool bak_round_points_
 
bool line_smooth_
 
bool bak_line_smooth_
 
bool backfaceCulling_
 
bool bak_backfaceCulling_
 
bool alphaTest_
 
bool bak_alphaTest_
 
float alphaValue_
 
float bak_alphaValue_
 
bool blending_
 
bool bak_blending_
 
GLenum blendParam1_
 
GLenum bak_blendParam1_
 
GLenum blendParam2_
 
GLenum bak_blendParam2_
 
bool colorMaterial_
 
bool bak_colorMaterial_
 
bool multiSampling_
 
bool bak_multiSampling_
 
bool baseColorActive_
 
bool bak_baseColorActive_
 
bool materialActive_
 
bool bak_materialActive_
 
bool pointSizeActive_
 
bool bak_pointSizeActive_
 
bool lineWidthActive_
 
bool bak_lineWidthActive_
 
bool roundPointsActive_
 
bool bak_roundPointsActive_
 
bool lineSmoothActive_
 
bool bak_lineSmoothActive_
 
bool alphaTestActive_
 
bool bak_alphaTestActive_
 
bool blendingActive_
 
bool bak_blendingActive_
 
bool backfaceCullingActive_
 
bool bak_backfaceCullingActive_
 
bool colorMaterialActive_
 
bool bak_colorMaterialActive_
 
bool multiSamplingActive_
 
bool bak_multiSamplingActive_
 
SceneGraph::MaterialNodenode_
 
Ui::QtMaterialDialogUi ui_
 

Detailed Description

Definition at line 84 of file QtMaterialDialog.hh.

Constructor & Destructor Documentation

◆ QtMaterialDialog()

ACG::QtWidgets::QtMaterialDialog::QtMaterialDialog ( QWidget *  _parent,
SceneGraph::MaterialNode _node 
)

Definition at line 69 of file QtMaterialDialog.cc.

◆ ~QtMaterialDialog()

ACG::QtWidgets::QtMaterialDialog::~QtMaterialDialog ( )
inline

Definition at line 93 of file QtMaterialDialog.hh.

Member Function Documentation

◆ applyChanges

void ACG::QtWidgets::QtMaterialDialog::applyChanges ( )
privateslot

Definition at line 318 of file QtMaterialDialog.cc.

◆ changeActive

void ACG::QtWidgets::QtMaterialDialog::changeActive ( bool  toggle)
privateslot

Definition at line 706 of file QtMaterialDialog.cc.

◆ changeAlphaTest

void ACG::QtWidgets::QtMaterialDialog::changeAlphaTest ( bool  _b)
privateslot

Definition at line 606 of file QtMaterialDialog.cc.

◆ changeAlphaValue

void ACG::QtWidgets::QtMaterialDialog::changeAlphaValue ( int  _new)
privateslot

Definition at line 633 of file QtMaterialDialog.cc.

◆ changeAmbientColor

void ACG::QtWidgets::QtMaterialDialog::changeAmbientColor ( QColor  _newColor)
privateslot

Definition at line 476 of file QtMaterialDialog.cc.

◆ changeBackfaceCulling

void ACG::QtWidgets::QtMaterialDialog::changeBackfaceCulling ( bool  _b)
privateslot

Definition at line 596 of file QtMaterialDialog.cc.

◆ changeBaseColor

void ACG::QtWidgets::QtMaterialDialog::changeBaseColor ( QColor  _newColor)
privateslot

Definition at line 506 of file QtMaterialDialog.cc.

◆ changeBlending

void ACG::QtWidgets::QtMaterialDialog::changeBlending ( bool  _b)
privateslot

Definition at line 643 of file QtMaterialDialog.cc.

◆ changeBlendingParam1

void ACG::QtWidgets::QtMaterialDialog::changeBlendingParam1 ( const QString &  _name)
privateslot

Definition at line 652 of file QtMaterialDialog.cc.

◆ changeBlendingParam2

void ACG::QtWidgets::QtMaterialDialog::changeBlendingParam2 ( const QString &  _name)
privateslot

Definition at line 679 of file QtMaterialDialog.cc.

◆ changeColorMaterial

void ACG::QtWidgets::QtMaterialDialog::changeColorMaterial ( bool  _b)
privateslot

Definition at line 615 of file QtMaterialDialog.cc.

◆ changeDiffuseColor

void ACG::QtWidgets::QtMaterialDialog::changeDiffuseColor ( QColor  _newColor)
privateslot

Definition at line 460 of file QtMaterialDialog.cc.

◆ changeLineSmooth

void ACG::QtWidgets::QtMaterialDialog::changeLineSmooth ( bool  _b)
privateslot

Definition at line 573 of file QtMaterialDialog.cc.

◆ changeLineWidth

void ACG::QtWidgets::QtMaterialDialog::changeLineWidth ( double  _new)
privateslot

Definition at line 539 of file QtMaterialDialog.cc.

◆ changeMultiSampling

void ACG::QtWidgets::QtMaterialDialog::changeMultiSampling ( bool  _b)
privateslot

Definition at line 624 of file QtMaterialDialog.cc.

◆ changeOverlayColor

void ACG::QtWidgets::QtMaterialDialog::changeOverlayColor ( QColor  _newColor)
privateslot

Definition at line 496 of file QtMaterialDialog.cc.

◆ changePointSize

void ACG::QtWidgets::QtMaterialDialog::changePointSize ( double  _new)
privateslot

Definition at line 528 of file QtMaterialDialog.cc.

◆ changeRoundPoints

void ACG::QtWidgets::QtMaterialDialog::changeRoundPoints ( bool  _b)
privateslot

Definition at line 550 of file QtMaterialDialog.cc.

◆ changeShine

void ACG::QtWidgets::QtMaterialDialog::changeShine ( int  _new)
privateslot

Definition at line 517 of file QtMaterialDialog.cc.

◆ changeSpecularColor

void ACG::QtWidgets::QtMaterialDialog::changeSpecularColor ( QColor  _newColor)
privateslot

Definition at line 487 of file QtMaterialDialog.cc.

◆ convertColor() [1/2]

Vec4f ACG::QtWidgets::QtMaterialDialog::convertColor ( QColor  _color)
private

Definition at line 296 of file QtMaterialDialog.cc.

◆ convertColor() [2/2]

QColor ACG::QtWidgets::QtMaterialDialog::convertColor ( Vec4f  _color)
private

Definition at line 283 of file QtMaterialDialog.cc.

◆ enableProperty [1/3]

void ACG::QtWidgets::QtMaterialDialog::enableProperty ( )
privateslot

Definition at line 775 of file QtMaterialDialog.cc.

◆ enableProperty [2/3]

void ACG::QtWidgets::QtMaterialDialog::enableProperty ( double  d)
privateslot

Definition at line 750 of file QtMaterialDialog.cc.

◆ enableProperty [3/3]

void ACG::QtWidgets::QtMaterialDialog::enableProperty ( int  i)
privateslot

Definition at line 726 of file QtMaterialDialog.cc.

◆ paramToStr

QString ACG::QtWidgets::QtMaterialDialog::paramToStr ( GLenum  param)
privateslot

Definition at line 799 of file QtMaterialDialog.cc.

◆ reject

void ACG::QtWidgets::QtMaterialDialog::reject ( )
privateslot

Definition at line 308 of file QtMaterialDialog.cc.

◆ setButtonColor()

void ACG::QtWidgets::QtMaterialDialog::setButtonColor ( QtColorChooserButton _button,
const Vec4f _color 
)
private

Definition at line 272 of file QtMaterialDialog.cc.

◆ undoChanges

void ACG::QtWidgets::QtMaterialDialog::undoChanges ( )
privateslot

Definition at line 392 of file QtMaterialDialog.cc.

Member Data Documentation

◆ alphaTest_

bool ACG::QtWidgets::QtMaterialDialog::alphaTest_
private

Definition at line 160 of file QtMaterialDialog.hh.

◆ alphaTestActive_

bool ACG::QtWidgets::QtMaterialDialog::alphaTestActive_
private

Definition at line 174 of file QtMaterialDialog.hh.

◆ alphaValue_

float ACG::QtWidgets::QtMaterialDialog::alphaValue_
private

Definition at line 161 of file QtMaterialDialog.hh.

◆ ambient_

Vec4f ACG::QtWidgets::QtMaterialDialog::ambient_
private

Definition at line 150 of file QtMaterialDialog.hh.

◆ applyProperties_

unsigned int ACG::QtWidgets::QtMaterialDialog::applyProperties_
private

Definition at line 147 of file QtMaterialDialog.hh.

◆ backfaceCulling_

bool ACG::QtWidgets::QtMaterialDialog::backfaceCulling_
private

Definition at line 159 of file QtMaterialDialog.hh.

◆ backfaceCullingActive_

bool ACG::QtWidgets::QtMaterialDialog::backfaceCullingActive_
private

Definition at line 176 of file QtMaterialDialog.hh.

◆ bak_alphaTest_

bool ACG::QtWidgets::QtMaterialDialog::bak_alphaTest_
private

Definition at line 160 of file QtMaterialDialog.hh.

◆ bak_alphaTestActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_alphaTestActive_
private

Definition at line 174 of file QtMaterialDialog.hh.

◆ bak_alphaValue_

float ACG::QtWidgets::QtMaterialDialog::bak_alphaValue_
private

Definition at line 161 of file QtMaterialDialog.hh.

◆ bak_ambient_

Vec4f ACG::QtWidgets::QtMaterialDialog::bak_ambient_
private

Definition at line 150 of file QtMaterialDialog.hh.

◆ bak_backfaceCulling_

bool ACG::QtWidgets::QtMaterialDialog::bak_backfaceCulling_
private

Definition at line 159 of file QtMaterialDialog.hh.

◆ bak_backfaceCullingActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_backfaceCullingActive_
private

Definition at line 176 of file QtMaterialDialog.hh.

◆ bak_baseColorActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_baseColorActive_
private

Definition at line 168 of file QtMaterialDialog.hh.

◆ bak_blending_

bool ACG::QtWidgets::QtMaterialDialog::bak_blending_
private

Definition at line 162 of file QtMaterialDialog.hh.

◆ bak_blendingActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_blendingActive_
private

Definition at line 175 of file QtMaterialDialog.hh.

◆ bak_blendParam1_

GLenum ACG::QtWidgets::QtMaterialDialog::bak_blendParam1_
private

Definition at line 163 of file QtMaterialDialog.hh.

◆ bak_blendParam2_

GLenum ACG::QtWidgets::QtMaterialDialog::bak_blendParam2_
private

Definition at line 164 of file QtMaterialDialog.hh.

◆ bak_color_

Vec4f ACG::QtWidgets::QtMaterialDialog::bak_color_
private

Definition at line 149 of file QtMaterialDialog.hh.

◆ bak_colorMaterial_

bool ACG::QtWidgets::QtMaterialDialog::bak_colorMaterial_
private

Definition at line 165 of file QtMaterialDialog.hh.

◆ bak_colorMaterialActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_colorMaterialActive_
private

Definition at line 177 of file QtMaterialDialog.hh.

◆ bak_diffuse_

Vec4f ACG::QtWidgets::QtMaterialDialog::bak_diffuse_
private

Definition at line 151 of file QtMaterialDialog.hh.

◆ bak_line_smooth_

bool ACG::QtWidgets::QtMaterialDialog::bak_line_smooth_
private

Definition at line 158 of file QtMaterialDialog.hh.

◆ bak_line_width_

float ACG::QtWidgets::QtMaterialDialog::bak_line_width_
private

Definition at line 156 of file QtMaterialDialog.hh.

◆ bak_lineSmoothActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_lineSmoothActive_
private

Definition at line 173 of file QtMaterialDialog.hh.

◆ bak_lineWidthActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_lineWidthActive_
private

Definition at line 171 of file QtMaterialDialog.hh.

◆ bak_materialActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_materialActive_
private

Definition at line 169 of file QtMaterialDialog.hh.

◆ bak_multiSampling_

bool ACG::QtWidgets::QtMaterialDialog::bak_multiSampling_
private

Definition at line 166 of file QtMaterialDialog.hh.

◆ bak_multiSamplingActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_multiSamplingActive_
private

Definition at line 178 of file QtMaterialDialog.hh.

◆ bak_overlay_

Vec4f ACG::QtWidgets::QtMaterialDialog::bak_overlay_
private

Definition at line 153 of file QtMaterialDialog.hh.

◆ bak_point_size_

float ACG::QtWidgets::QtMaterialDialog::bak_point_size_
private

Definition at line 155 of file QtMaterialDialog.hh.

◆ bak_pointSizeActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_pointSizeActive_
private

Definition at line 170 of file QtMaterialDialog.hh.

◆ bak_round_points_

bool ACG::QtWidgets::QtMaterialDialog::bak_round_points_
private

Definition at line 157 of file QtMaterialDialog.hh.

◆ bak_roundPointsActive_

bool ACG::QtWidgets::QtMaterialDialog::bak_roundPointsActive_
private

Definition at line 172 of file QtMaterialDialog.hh.

◆ bak_shine_

float ACG::QtWidgets::QtMaterialDialog::bak_shine_
private

Definition at line 154 of file QtMaterialDialog.hh.

◆ bak_specular_

Vec4f ACG::QtWidgets::QtMaterialDialog::bak_specular_
private

Definition at line 152 of file QtMaterialDialog.hh.

◆ baseColorActive_

bool ACG::QtWidgets::QtMaterialDialog::baseColorActive_
private

Definition at line 168 of file QtMaterialDialog.hh.

◆ blending_

bool ACG::QtWidgets::QtMaterialDialog::blending_
private

Definition at line 162 of file QtMaterialDialog.hh.

◆ blendingActive_

bool ACG::QtWidgets::QtMaterialDialog::blendingActive_
private

Definition at line 175 of file QtMaterialDialog.hh.

◆ blendParam1_

GLenum ACG::QtWidgets::QtMaterialDialog::blendParam1_
private

Definition at line 163 of file QtMaterialDialog.hh.

◆ blendParam2_

GLenum ACG::QtWidgets::QtMaterialDialog::blendParam2_
private

Definition at line 164 of file QtMaterialDialog.hh.

◆ color_

Vec4f ACG::QtWidgets::QtMaterialDialog::color_
private

Definition at line 149 of file QtMaterialDialog.hh.

◆ colorMaterial_

bool ACG::QtWidgets::QtMaterialDialog::colorMaterial_
private

Definition at line 165 of file QtMaterialDialog.hh.

◆ colorMaterialActive_

bool ACG::QtWidgets::QtMaterialDialog::colorMaterialActive_
private

Definition at line 177 of file QtMaterialDialog.hh.

◆ diffuse_

Vec4f ACG::QtWidgets::QtMaterialDialog::diffuse_
private

Definition at line 151 of file QtMaterialDialog.hh.

◆ line_smooth_

bool ACG::QtWidgets::QtMaterialDialog::line_smooth_
private

Definition at line 158 of file QtMaterialDialog.hh.

◆ line_width_

float ACG::QtWidgets::QtMaterialDialog::line_width_
private

Definition at line 156 of file QtMaterialDialog.hh.

◆ lineSmoothActive_

bool ACG::QtWidgets::QtMaterialDialog::lineSmoothActive_
private

Definition at line 173 of file QtMaterialDialog.hh.

◆ lineWidthActive_

bool ACG::QtWidgets::QtMaterialDialog::lineWidthActive_
private

Definition at line 171 of file QtMaterialDialog.hh.

◆ materialActive_

bool ACG::QtWidgets::QtMaterialDialog::materialActive_
private

Definition at line 169 of file QtMaterialDialog.hh.

◆ multiSampling_

bool ACG::QtWidgets::QtMaterialDialog::multiSampling_
private

Definition at line 166 of file QtMaterialDialog.hh.

◆ multiSamplingActive_

bool ACG::QtWidgets::QtMaterialDialog::multiSamplingActive_
private

Definition at line 178 of file QtMaterialDialog.hh.

◆ node_

SceneGraph::MaterialNode* ACG::QtWidgets::QtMaterialDialog::node_
private

Definition at line 180 of file QtMaterialDialog.hh.

◆ overlay_

Vec4f ACG::QtWidgets::QtMaterialDialog::overlay_
private

Definition at line 153 of file QtMaterialDialog.hh.

◆ point_size_

float ACG::QtWidgets::QtMaterialDialog::point_size_
private

Definition at line 155 of file QtMaterialDialog.hh.

◆ pointSizeActive_

bool ACG::QtWidgets::QtMaterialDialog::pointSizeActive_
private

Definition at line 170 of file QtMaterialDialog.hh.

◆ round_points_

bool ACG::QtWidgets::QtMaterialDialog::round_points_
private

Definition at line 157 of file QtMaterialDialog.hh.

◆ roundPointsActive_

bool ACG::QtWidgets::QtMaterialDialog::roundPointsActive_
private

Definition at line 172 of file QtMaterialDialog.hh.

◆ shine_

float ACG::QtWidgets::QtMaterialDialog::shine_
private

Definition at line 154 of file QtMaterialDialog.hh.

◆ specular_

Vec4f ACG::QtWidgets::QtMaterialDialog::specular_
private

Definition at line 152 of file QtMaterialDialog.hh.

◆ ui_

Ui::QtMaterialDialogUi ACG::QtWidgets::QtMaterialDialog::ui_
private

Definition at line 182 of file QtMaterialDialog.hh.


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