1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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
23 // VISU OBJECT : interactive object for VISU entities implementation
29 #ifndef VISU_GaussPtsSettings_HeaderFile
30 #define VISU_GaussPtsSettings_HeaderFile
32 #include "VISU_OBJECT.h"
34 #include <vtkObject.h>
35 #include <vtkCommand.h>
37 #include "VTKViewer.h"
41 #include "VISU_Actor.h"
43 //============================================================================
46 const vtkIdType UpdateFromSettingsEvent = vtkCommand::UserEvent + 100;
47 const vtkIdType UpdateInsideSettingsEvent = vtkCommand::UserEvent + 101;
48 const vtkIdType UpdateOutsideSettingsEvent = vtkCommand::UserEvent + 102;
52 //! Base class of Gauss Points settings.
53 class VISU_OBJECT_EXPORT VISU_GaussPtsSettings : public vtkObject
56 vtkTypeMacro( VISU_GaussPtsSettings, vtkObject );
58 VISU_GaussPtsSettings();
59 virtual ~VISU_GaussPtsSettings();
62 VISU_GaussPtsSettings*
65 vtkSetMacro( Initial, bool );
66 vtkGetMacro( Initial, bool );
68 vtkSetMacro( PrimitiveType, int );
69 vtkGetMacro( PrimitiveType, int );
71 vtkSetMacro( Clamp, double );
72 vtkGetMacro( Clamp, double );
74 vtkSetMacro( Texture, vtkImageData* );
75 vtkGetMacro( Texture, vtkImageData* );
77 vtkSetMacro( AlphaThreshold, double );
78 vtkGetMacro( AlphaThreshold, double );
80 vtkSetMacro( Resolution, int );
81 vtkGetMacro( Resolution, int );
83 vtkSetMacro( Magnification, double );
84 vtkGetMacro( Magnification, double );
86 vtkSetMacro( Increment, double );
87 vtkGetMacro( Increment, double );
94 vtkImageData* Texture;
95 double AlphaThreshold;
102 //! Class of Inside Cursor Gauss Points settings.
104 * Contains information about the point sprite parameters:
105 * Clamp, Texture, Alpha threshold, Const size and Color.
106 * Used by Gauss Points Actor.
108 class VISU_OBJECT_EXPORT VISU_InsideCursorSettings : public VISU_GaussPtsSettings
111 vtkTypeMacro( VISU_InsideCursorSettings, vtkObject );
113 VISU_InsideCursorSettings();
114 virtual ~VISU_InsideCursorSettings();
117 VISU_InsideCursorSettings*
120 vtkSetMacro( MinSize, double );
121 vtkGetMacro( MinSize, double );
123 vtkSetMacro( MaxSize, double );
124 vtkGetMacro( MaxSize, double );
132 //============================================================================
133 //! Class of Outside Cursor Gauss Points settings.
135 * Contains information about the point sprite parameters:
136 * Clamp, Texture, Alpha threshold, Const size and Color.
137 * Used by Gauss Points Actor.
139 class VISU_OBJECT_EXPORT VISU_OutsideCursorSettings : public VISU_GaussPtsSettings
142 vtkTypeMacro( VISU_OutsideCursorSettings, vtkObject );
144 VISU_OutsideCursorSettings();
145 virtual ~VISU_OutsideCursorSettings();
148 VISU_OutsideCursorSettings*
151 vtkSetMacro( Size, double );
152 vtkGetMacro( Size, double );
154 vtkSetMacro( Uniform, bool );
155 vtkGetMacro( Uniform, bool );
157 vtkSetVector3Macro( Color, double );
158 vtkGetVector3Macro( Color, double );