52 #include "QtTextureDialog.hh" 53 #include "../Scenegraph/TextureNode.hh" 66 QtTextureDialog::QtTextureDialog( QWidget * _parent,
67 SceneGraph::TextureNode * _node )
74 mipmapping_ = bak_mipmapping_ = node_->mipmapping();
76 ui_.mipmapping->setChecked(mipmapping_);
78 connect( ui_.mipmapping, SIGNAL( toggled(
bool) ),
79 this, SLOT( changeMipmapping(
bool) ) );
81 connect( ui_.okButton, SIGNAL( clicked() ),
82 this, SLOT( accept() ) );
83 connect( ui_.cancelButton, SIGNAL( clicked() ),
84 this, SLOT( reject() ) );
89 void QtTextureDialog::reject() {
99 void QtTextureDialog::applyChanges() {
102 node_->enable_mipmapping();
104 node_->disable_mipmapping();
106 emit signalNodeChanged(node_);
113 void QtTextureDialog::undoChanges() {
115 if ( bak_mipmapping_ )
116 node_->enable_mipmapping();
118 node_->disable_mipmapping();
120 emit signalNodeChanged(node_);
128 QtTextureDialog::changeMipmapping(
bool _b) {
Namespace providing different geometric functions concerning angles.