]> SALOME platform Git repositories - modules/visu.git/blob - src/VISU_I/VISU_FieldTransform.hxx
Salome HOME
NRI : Merge from V1_2.
[modules/visu.git] / src / VISU_I / VISU_FieldTransform.hxx
1 //  Copyright (C) 2003  CEA/DEN, EDF R&D
2 //
3 //
4 //
5 //  File   : VISU_Extractor.hxx
6 //  Author : Alexey PETROV
7 //  Module : VISU
8
9 #ifndef VISU_FieldTransform_HeaderFile
10 #define VISU_FieldTransform_HeaderFile
11
12 #include "VTKViewer_Common.h"
13 #include <vtkDataSetToDataSetFilter.h>
14
15 class VTK_EXPORT VISU_FieldTransform : public vtkDataSetToDataSetFilter{
16 public:
17   vtkTypeMacro(VISU_FieldTransform,vtkDataSetToDataSetFilter);
18   static VISU_FieldTransform *New();
19   typedef double (*TTransformFun)(double);
20   void SetTransformFunction(TTransformFun theFunction);
21   void SetScalarRange(float theScalarRange[2]);
22 protected:
23   VISU_FieldTransform();
24   virtual ~VISU_FieldTransform();
25   VISU_FieldTransform(const VISU_FieldTransform&) {};
26   void operator=(const VISU_FieldTransform&) {};
27   void Execute();
28   
29   TTransformFun myFunction;
30   float myScalarRange[2];
31 };
32 extern "C" {
33   double Identical(double theArg);
34   double Logarithmic10(double theArg);
35 }
36
37 #endif