-// VISU OBJECT : interactive object for VISU entities implementation
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 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.
//
-// 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
+// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
+// VISU OBJECT : interactive object for VISU entities implementation
// File :
// Author :
// Module : VISU
// $Header$
-
+//
#ifndef VISU_GaussPtsSettings_HeaderFile
#define VISU_GaussPtsSettings_HeaderFile
+#include "VISU_OBJECT.h"
+
#include <vtkObject.h>
#include <vtkCommand.h>
+#include "VTKViewer.h"
+
class vtkImageData;
+#include "VISU_Actor.h"
//============================================================================
namespace VISU
const vtkIdType UpdateFromSettingsEvent = vtkCommand::UserEvent + 100;
const vtkIdType UpdateInsideSettingsEvent = vtkCommand::UserEvent + 101;
const vtkIdType UpdateOutsideSettingsEvent = vtkCommand::UserEvent + 102;
- const vtkIdType UpdatePickingSettingsEvent = vtkCommand::UserEvent + 103;
}
//! Base class of Gauss Points settings.
-class VISU_GaussPtsSettings : public vtkObject
+class VISU_OBJECT_EXPORT VISU_GaussPtsSettings : public vtkObject
{
public:
vtkTypeMacro( VISU_GaussPtsSettings, vtkObject );
vtkSetMacro( PrimitiveType, int );
vtkGetMacro( PrimitiveType, int );
- vtkSetMacro( Clamp, float );
- vtkGetMacro( Clamp, float );
+ vtkSetMacro( Clamp, vtkFloatingPointType );
+ vtkGetMacro( Clamp, vtkFloatingPointType );
vtkSetMacro( Texture, vtkImageData* );
vtkGetMacro( Texture, vtkImageData* );
- vtkSetMacro( AlphaThreshold, float );
- vtkGetMacro( AlphaThreshold, float );
+ vtkSetMacro( AlphaThreshold, vtkFloatingPointType );
+ vtkGetMacro( AlphaThreshold, vtkFloatingPointType );
vtkSetMacro( Resolution, int );
vtkGetMacro( Resolution, int );
- vtkSetMacro( Magnification, float );
- vtkGetMacro( Magnification, float );
+ vtkSetMacro( Magnification, vtkFloatingPointType );
+ vtkGetMacro( Magnification, vtkFloatingPointType );
- vtkSetMacro( Increment, float );
- vtkGetMacro( Increment, float );
+ vtkSetMacro( Increment, vtkFloatingPointType );
+ vtkGetMacro( Increment, vtkFloatingPointType );
protected:
bool Initial;
int PrimitiveType;
- float Clamp;
+ vtkFloatingPointType Clamp;
vtkImageData* Texture;
- float AlphaThreshold;
+ vtkFloatingPointType AlphaThreshold;
int Resolution;
- float Magnification;
- float Increment;
+ vtkFloatingPointType Magnification;
+ vtkFloatingPointType Increment;
};
* Clamp, Texture, Alpha threshold, Const size and Color.
* Used by Gauss Points Actor.
*/
-class VISU_InsideCursorSettings : public VISU_GaussPtsSettings
+class VISU_OBJECT_EXPORT VISU_InsideCursorSettings : public VISU_GaussPtsSettings
{
public:
vtkTypeMacro( VISU_InsideCursorSettings, vtkObject );
VISU_InsideCursorSettings*
New();
- vtkSetMacro( MinSize, float );
- vtkGetMacro( MinSize, float );
+ vtkSetMacro( MinSize, vtkFloatingPointType );
+ vtkGetMacro( MinSize, vtkFloatingPointType );
- vtkSetMacro( MaxSize, float );
- vtkGetMacro( MaxSize, float );
+ vtkSetMacro( MaxSize, vtkFloatingPointType );
+ vtkGetMacro( MaxSize, vtkFloatingPointType );
protected:
- float MinSize;
- float MaxSize;
+ vtkFloatingPointType MinSize;
+ vtkFloatingPointType MaxSize;
};
* Clamp, Texture, Alpha threshold, Const size and Color.
* Used by Gauss Points Actor.
*/
-class VISU_OutsideCursorSettings : public VISU_GaussPtsSettings
+class VISU_OBJECT_EXPORT VISU_OutsideCursorSettings : public VISU_GaussPtsSettings
{
public:
vtkTypeMacro( VISU_OutsideCursorSettings, vtkObject );
VISU_OutsideCursorSettings*
New();
- vtkSetMacro( Size, float );
- vtkGetMacro( Size, float );
+ vtkSetMacro( Size, vtkFloatingPointType );
+ vtkGetMacro( Size, vtkFloatingPointType );
vtkSetMacro( Uniform, bool );
vtkGetMacro( Uniform, bool );
- vtkSetVector3Macro( Color, float );
- vtkGetVector3Macro( Color, float );
+ vtkSetVector3Macro( Color, vtkFloatingPointType );
+ vtkGetVector3Macro( Color, vtkFloatingPointType );
protected:
- float Size;
+ vtkFloatingPointType Size;
bool Uniform;
- float Color[3];
+ vtkFloatingPointType Color[3];
};
-
-//! Class of Picking settings.
-/*!
- * Contains information about the following parameters:
- * Cursor Pyramid height, Info Window transparency,
- * Info Window position, Zoom factor on first selected point,
- * Camera movement steps number and Display parent mesh.
- * Used by Gauss Points Actor.
- */
-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( CursorSize, float );
- vtkGetMacro( CursorSize, float );
-
- vtkSetVector3Macro( Color, float );
- vtkGetVector3Macro( Color, float );
-
- vtkSetMacro( PointTolerance, float );
- vtkGetMacro( PointTolerance, 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 );
-
- vtkSetMacro( DisplayParentMesh, bool );
- vtkGetMacro( DisplayParentMesh, bool );
-
-private:
- bool Initial;
-
- float PyramidHeight;
- float CursorSize;
- float PointTolerance;
- float Color[3];
- float InfoWindowTransparency;
- int InfoWindowPosition;
- float ZoomFactor;
- int StepNumber;
- bool DisplayParentMesh;
-};
-
-
#endif