1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // VISU VISUGUI : GUI of VISU component
21 // File : VisuGUI_PrimitiveBox.h
22 // Author : Oleg UVAROV
25 #ifndef VISUGUI_PRIMITIVEBOX_H
26 #define VISUGUI_PRIMITIVEBOX_H
35 class SalomeApp_DoubleSpinBox;
36 class SalomeApp_IntSpinBox;
38 class VisuGUI_PrimitiveBox : public QGroupBox
43 VisuGUI_PrimitiveBox( QWidget* );
44 ~VisuGUI_PrimitiveBox() {}
47 int getPrimitiveType() const { return myPrimitiveType; }
48 void setPrimitiveType( int );
50 float getClamp() const;
51 void setClamp( float );
52 void setClampMaximum( float );
54 QString getMainTexture() const { return myMainTexture; }
55 void setMainTexture( const QString& );
57 QString getAlphaTexture() const { return myAlphaTexture; }
58 void setAlphaTexture( const QString& );
60 float getAlphaThreshold() const;
61 void setAlphaThreshold( float );
63 int getResolution() const;
64 void setResolution( int );
66 int getFaceNumber() const;
67 void setFaceNumber( int );
69 int getFaceLimit() const;
70 void setFaceLimit( int );
73 void onTogglePointSprite();
74 void onToggleOpenGLPoint();
75 void onToggleGeomSphere();
77 void onBrowseMainTexture();
78 void onBrowseAlphaTexture();
80 void onResolutionChanged( int );
85 QRadioButton* myPointSpriteButton;
86 QRadioButton* myOpenGLPointButton;
87 QRadioButton* myGeomSphereButton;
89 QString myMainTexture;
90 QString myAlphaTexture;
93 SalomeApp_DoubleSpinBox* myClampSpinBox;
95 QLabel* myMainTextureLabel;
96 QLineEdit* myMainTextureLineEdit;
97 QPushButton* myMainTextureButton;
99 QLabel* myAlphaTextureLabel;
100 QLineEdit* myAlphaTextureLineEdit;
101 QPushButton* myAlphaTextureButton;
103 QLabel* myAlphaThresholdLabel;
104 SalomeApp_DoubleSpinBox* myAlphaThresholdSpinBox;
106 QLabel* myResolutionLabel;
107 SalomeApp_IntSpinBox* myResolutionSpinBox;
109 QLabel* myFaceNumberLabel;
110 QLineEdit* myFaceNumberLineEdit;
112 QLabel* myFaceLimitLabel;
113 SalomeApp_IntSpinBox* myFaceLimitSpinBox;