class vtkInteractorObserver;
class vtkCallbackCommand;
-class VISU_ScalarBarCtrl;
-
-
-//============================================================================
-namespace VISU
-{
- const vtkIdType UpdateOutsideSettingsEvent = vtkCommand::UserEvent + 100;
- const vtkIdType UpdatePickingSettingsEvent = vtkCommand::UserEvent + 101;
-}
-
-class VTKOCC_EXPORT VISU_OutsideCursorSettings : public vtkObject
-{
- public:
- vtkTypeMacro( VISU_OutsideCursorSettings, vtkObject );
-
- VISU_OutsideCursorSettings();
- virtual ~VISU_OutsideCursorSettings();
-
- static
- VISU_OutsideCursorSettings*
- New();
-
- vtkSetMacro( Initial, bool );
- vtkGetMacro( Initial, bool );
-
- vtkSetMacro( Clamp, float );
- vtkGetMacro( Clamp, float );
-
- vtkSetMacro( Texture, vtkImageData* );
- vtkGetMacro( Texture, vtkImageData* );
-
- vtkSetMacro( AlphaThreshold, float );
- vtkGetMacro( AlphaThreshold, float );
-
- vtkSetMacro( Size, float );
- vtkGetMacro( Size, float );
-
- vtkSetVector3Macro( Color, float );
- vtkGetVector3Macro( Color, float );
-
-private:
- bool Initial;
-
- float Clamp;
- vtkImageData* Texture;
- float AlphaThreshold;
- float Size;
- float Color[3];
-};
-
-//============================================================================
-class VISU_PickingSettings : public vtkObject
-{
- public:
- enum { BelowPoint = 0, TopLeftCorner };
-
- public:
- vtkTypeMacro( VISU_PickingSettings, vtkObject );
-
- VISU_PickingSettings();
- virtual ~VISU_PickingSettings();
-
- static
- VISU_PickingSettings*
- New();
-
- vtkSetMacro( Initial, bool );
- vtkGetMacro( Initial, bool );
-
- vtkSetMacro( PyramidHeight, float );
- vtkGetMacro( PyramidHeight, float );
-
- vtkSetMacro( InfoWindowTransparency, float );
- vtkGetMacro( InfoWindowTransparency, float );
-
- vtkSetMacro( InfoWindowPosition, int );
- vtkGetMacro( InfoWindowPosition, int );
-
- vtkSetMacro( ZoomFactor, float );
- vtkGetMacro( ZoomFactor, float );
-
- vtkSetMacro( StepNumber, int );
- vtkGetMacro( StepNumber, int );
-
-private:
- bool Initial;
-
- float PyramidHeight;
- float InfoWindowTransparency;
- int InfoWindowPosition;
- float ZoomFactor;
- int StepNumber;
-};
+class VISU_ScalarBarCtrl;
+class VISU_PickingSettings;
+class VISU_OutsideCursorSettings;
//============================================================================
--- /dev/null
+// VISU OBJECT : interactive object for VISU entities implementation
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File :
+// Author :
+// Module : VISU
+// $Header$
+
+#ifndef VISU_GaussPtsSettings_HeaderFile
+#define VISU_GaussPtsSettings_HeaderFile
+
+#include <vtkCommand.h>
+
+class vtkImageData;
+
+
+//============================================================================
+namespace VISU
+{
+ const vtkIdType UpdateOutsideSettingsEvent = vtkCommand::UserEvent + 100;
+ const vtkIdType UpdatePickingSettingsEvent = vtkCommand::UserEvent + 200;
+}
+
+class VTKOCC_EXPORT VISU_OutsideCursorSettings : public vtkObject
+{
+ public:
+ vtkTypeMacro( VISU_OutsideCursorSettings, vtkObject );
+
+ VISU_OutsideCursorSettings();
+ virtual ~VISU_OutsideCursorSettings();
+
+ static
+ VISU_OutsideCursorSettings*
+ New();
+
+ vtkSetMacro( Initial, bool );
+ vtkGetMacro( Initial, bool );
+
+ vtkSetMacro( Clamp, float );
+ vtkGetMacro( Clamp, float );
+
+ vtkSetMacro( Texture, vtkImageData* );
+ vtkGetMacro( Texture, vtkImageData* );
+
+ vtkSetMacro( AlphaThreshold, float );
+ vtkGetMacro( AlphaThreshold, float );
+
+ vtkSetMacro( Size, float );
+ vtkGetMacro( Size, float );
+
+ vtkSetVector3Macro( Color, float );
+ vtkGetVector3Macro( Color, float );
+
+private:
+ bool Initial;
+
+ float Clamp;
+ vtkImageData* Texture;
+ float AlphaThreshold;
+ float Size;
+ float Color[3];
+};
+
+
+//============================================================================
+class VISU_PickingSettings : public vtkObject
+{
+ public:
+ enum { BelowPoint = 0, TopLeftCorner };
+
+ public:
+ vtkTypeMacro( VISU_PickingSettings, vtkObject );
+
+ VISU_PickingSettings();
+ virtual ~VISU_PickingSettings();
+
+ static
+ VISU_PickingSettings*
+ New();
+
+ vtkSetMacro( Initial, bool );
+ vtkGetMacro( Initial, bool );
+
+ vtkSetMacro( PyramidHeight, float );
+ vtkGetMacro( PyramidHeight, float );
+
+ vtkSetMacro( InfoWindowTransparency, float );
+ vtkGetMacro( InfoWindowTransparency, float );
+
+ vtkSetMacro( InfoWindowPosition, int );
+ vtkGetMacro( InfoWindowPosition, int );
+
+ vtkSetMacro( ZoomFactor, float );
+ vtkGetMacro( ZoomFactor, float );
+
+ vtkSetMacro( StepNumber, int );
+ vtkGetMacro( StepNumber, int );
+
+private:
+ bool Initial;
+
+ float PyramidHeight;
+ float InfoWindowTransparency;
+ int InfoWindowPosition;
+ float ZoomFactor;
+ int StepNumber;
+};
+
+
+#endif