1 // Copyright (C) 2010-2014 CEA/DEN, EDF R&D
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, or (at your option) any later version.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __vtkTableTo3D_h
21 #define __vtkTableTo3D_h
23 #include "vtkPolyDataAlgorithm.h"
25 #define TABLETO3D_SURFACE 0
26 #define TABLETO3D_CONTOUR 1
28 class VTK_EXPORT vtkTableTo3D : public vtkPolyDataAlgorithm
31 static vtkTableTo3D* New();
32 vtkTypeMacro(vtkTableTo3D, vtkPolyDataAlgorithm);
33 void PrintSelf(ostream& os, vtkIndent indent);
36 // Specify value to scale diplacement.
37 vtkSetMacro(ScaleFactor, double);
38 vtkGetMacro(ScaleFactor, double);
41 // When set to true, the filter will compute optimus scale factor,
42 // the value of ScaleFactor variable will be ignored.
43 vtkSetMacro(UseOptimusScale, bool);
44 vtkGetMacro(UseOptimusScale, bool);
45 vtkBooleanMacro(UseOptimusScale, bool);
48 // Specify type of presentation: surface of contour.
49 vtkSetClampMacro(PresentationType, int,
50 TABLETO3D_SURFACE, TABLETO3D_CONTOUR);
51 vtkGetMacro(PresentationType, int);
54 // Specify number of contours for contour presentation type.
55 vtkSetMacro(NumberOfContours, int);
56 vtkGetMacro(NumberOfContours, int);
63 // Overridden to specify that input must be a vtkTable.
64 virtual int FillInputPortInformation(int port, vtkInformation* info);
67 // Convert input vtkTable to vtkPolyData.
68 virtual int RequestData(vtkInformation* request,
69 vtkInformationVector** inputVector, vtkInformationVector* outputVector);
77 vtkTableTo3D(const vtkTableTo3D&); // Not implemented.
78 void operator=(const vtkTableTo3D&); // Not implemented.