1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : VVTK_PrimitiveBox.h
25 // Author : Oleg UVAROV
28 #ifndef VVTK_PRIMITIVEBOX_H
29 #define VVTK_PRIMITIVEBOX_H
33 #include <qgroupbox.h>
43 class VVTK_EXPORT VVTK_PrimitiveBox : public QGroupBox
48 VVTK_PrimitiveBox( QWidget* );
49 ~VVTK_PrimitiveBox() {}
52 int getPrimitiveType() const { return myPrimitiveType; }
53 void setPrimitiveType( int );
55 float getClamp() const;
56 void setClamp( float );
57 void setClampMaximum( float );
59 QString getMainTexture() const { return myMainTexture; }
60 void setMainTexture( const QString& );
62 QString getAlphaTexture() const { return myAlphaTexture; }
63 void setAlphaTexture( const QString& );
65 float getAlphaThreshold() const;
66 void setAlphaThreshold( float );
68 int getResolution() const;
69 void setResolution( int );
71 int getFaceNumber() const;
72 void setFaceNumber( int );
74 int getFaceLimit() const;
75 void setFaceLimit( int );
78 void onTogglePointSprite();
79 void onToggleOpenGLPoint();
80 void onToggleGeomSphere();
82 void onBrowseMainTexture();
83 void onBrowseAlphaTexture();
85 void onResolutionChanged( int );
90 QRadioButton* myPointSpriteButton;
91 QRadioButton* myOpenGLPointButton;
92 QRadioButton* myGeomSphereButton;
94 QString myMainTexture;
95 QString myAlphaTexture;
98 QtxDblSpinBox* myClampSpinBox;
100 QLabel* myMainTextureLabel;
101 QLineEdit* myMainTextureLineEdit;
102 QPushButton* myMainTextureButton;
104 QLabel* myAlphaTextureLabel;
105 QLineEdit* myAlphaTextureLineEdit;
106 QPushButton* myAlphaTextureButton;
108 QLabel* myAlphaThresholdLabel;
109 QtxDblSpinBox* myAlphaThresholdSpinBox;
111 QLabel* myResolutionLabel;
112 QtxIntSpinBox* myResolutionSpinBox;
114 QLabel* myFaceNumberLabel;
115 QLineEdit* myFaceNumberLineEdit;
117 QLabel* myFaceLimitLabel;
118 QtxIntSpinBox* myFaceLimitSpinBox;