ParaView
vtkCPConstantScalarFieldFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCPConstantScalarFieldFunction.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkCPConstantScalarFieldFunction_h
23 #define vtkCPConstantScalarFieldFunction_h
24 
26 #include "vtkPVCatalystTestDriverModule.h" // needed for export macros
27 
28 class VTKPVCATALYSTTESTDRIVER_EXPORT vtkCPConstantScalarFieldFunction
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
39  virtual double ComputeComponenentAtPoint(
40  unsigned int component, double* point, unsigned long timeStep, double time);
41 
43 
46  vtkSetMacro(Constant, double);
47  vtkGetMacro(Constant, double);
49 
50 protected:
53 
54 private:
56  void operator=(const vtkCPConstantScalarFieldFunction&) VTK_DELETE_FUNCTION;
57 
59 
62  double Constant;
63 };
65 
66 #endif
Class for specifying constant scalars at points.
void PrintSelf(ostream &os, vtkIndent indent)
Abstract class for specifying scalars at points.
virtual double ComputeComponenentAtPoint(unsigned int component, double point[3], unsigned long timeStep, double time)=0
Compute the field value at Point.