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 "vtkCommonExecutionModelModule.h" // For export macro 00025 #include "vtkPiecewiseFunctionAlgorithm.h" 00026 00027 class vtkPiecewiseFunction; 00028 00029 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPiecewiseFunctionShiftScale : public vtkPiecewiseFunctionAlgorithm 00030 { 00031 public: 00032 static vtkPiecewiseFunctionShiftScale *New(); 00033 vtkTypeMacro(vtkPiecewiseFunctionShiftScale, vtkPiecewiseFunctionAlgorithm); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00036 vtkSetMacro(PositionShift, double); 00037 vtkSetMacro(PositionScale, double); 00038 vtkSetMacro(ValueShift, double); 00039 vtkSetMacro(ValueScale, double); 00040 00041 vtkGetMacro(PositionShift, double); 00042 vtkGetMacro(PositionScale, double); 00043 vtkGetMacro(ValueShift, double); 00044 vtkGetMacro(ValueScale, double); 00045 00046 protected: 00047 vtkPiecewiseFunctionShiftScale(); 00048 ~vtkPiecewiseFunctionShiftScale(); 00049 00050 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00051 vtkInformationVector *); 00052 00053 double PositionShift; 00054 double PositionScale; 00055 double ValueShift; 00056 double ValueScale; 00057 00058 private: 00059 vtkPiecewiseFunctionShiftScale(const vtkPiecewiseFunctionShiftScale&); // Not implemented 00060 void operator=(const vtkPiecewiseFunctionShiftScale&); // Not implemented 00061 }; 00062 00063 #endif