VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPiecewiseFunctionShiftScale.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00021 #ifndef __vtkPiecewiseFunctionShiftScale_h 00022 #define __vtkPiecewiseFunctionShiftScale_h 00023 00024 #include "vtkPiecewiseFunctionAlgorithm.h" 00025 00026 class vtkPiecewiseFunction; 00027 00028 class VTK_FILTERING_EXPORT vtkPiecewiseFunctionShiftScale : public vtkPiecewiseFunctionAlgorithm 00029 { 00030 public: 00031 static vtkPiecewiseFunctionShiftScale *New(); 00032 vtkTypeMacro(vtkPiecewiseFunctionShiftScale, vtkPiecewiseFunctionAlgorithm); 00033 void PrintSelf(ostream& os, vtkIndent indent); 00034 00035 vtkSetMacro(PositionShift, double); 00036 vtkSetMacro(PositionScale, double); 00037 vtkSetMacro(ValueShift, double); 00038 vtkSetMacro(ValueScale, double); 00039 00040 vtkGetMacro(PositionShift, double); 00041 vtkGetMacro(PositionScale, double); 00042 vtkGetMacro(ValueShift, double); 00043 vtkGetMacro(ValueScale, double); 00044 00045 protected: 00046 vtkPiecewiseFunctionShiftScale(); 00047 ~vtkPiecewiseFunctionShiftScale(); 00048 00049 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00050 vtkInformationVector *); 00051 00052 double PositionShift; 00053 double PositionScale; 00054 double ValueShift; 00055 double ValueScale; 00056 00057 private: 00058 vtkPiecewiseFunctionShiftScale(const vtkPiecewiseFunctionShiftScale&); // Not implemented 00059 void operator=(const vtkPiecewiseFunctionShiftScale&); // Not implemented 00060 }; 00061 00062 #endif