Salome HOME
Minor: removing annoying print message
[modules/paravis.git] / src / Plugins / MedReader / IO / vtkMedFraction.h
1 // Copyright (C) 2010-2013  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __vtkMedFraction_h_
21 #define __vtkMedFraction_h_
22
23 #include "vtkObject.h"
24
25 class vtkIntArray;
26 class vtkDoubleArray;
27
28 class VTK_EXPORT vtkMedFraction : public vtkObject
29 {
30 public:
31   static vtkMedFraction* New();
32   vtkTypeMacro(vtkMedFraction, vtkObject)
33   void PrintSelf(ostream& os, vtkIndent indent);
34
35   // Description:
36   // the powers of this polynomial function
37   // the number of components of this array is equal to the maximum degree
38   // and the number of tuples to the numner of coefficients
39   virtual vtkIntArray* GetPowers();
40
41   // Description:
42   // The coefficients of this polynomial function
43   virtual vtkDoubleArray* GetCoefficients();
44
45   // Description:
46   // the powers of this polynomial function
47   // the number of components of this array is equal to the maximum degree
48   // and the number of tuples to the numner of coefficients
49   virtual vtkIntArray* GetDenominatorPowers();
50
51   // Description:
52   // The coefficients of this polynomial function
53   virtual vtkDoubleArray* GetDenominatorCoefficients();
54
55   // Description:
56   // This sets the number of coefficients in this polynom
57   void  SetNumberOfCoefficients(int);
58
59   // Description:
60   // This sets the number of coefficients in this polynom
61   void  SetNumberOfDenominatorCoefficients(int);
62
63   // Description:
64   // This sets the maximum degree of this polynom.
65   // This also allocates the array to store the powers of this
66   // polynom
67   void  SetNumberOfVariable(int);
68   vtkGetMacro(NumberOfVariable, int);
69
70   // Description:
71   // Evaluate the value of this function at this point.
72   virtual double Evaluate(double*);
73   virtual double Evaluate1(double);
74   virtual double Evaluate2(double, double);
75   virtual double Evaluate3(double, double, double);
76
77 protected :
78   vtkMedFraction();
79   ~vtkMedFraction();
80
81   vtkIntArray* Powers;
82   vtkDoubleArray* Coefficients;
83
84   vtkIntArray* DenominatorPowers;
85   vtkDoubleArray* DenominatorCoefficients;
86
87   int NumberOfVariable;
88
89 private :
90     vtkMedFraction(const vtkMedFraction&); // Not implemented.
91     void operator=(const vtkMedFraction&); // Not implemented.
92 };
93
94 #endif //__vtkMedFraction_h_