comac_desk_app/ThirdpartyLibs/Libs/windows-x86_64/vtk/include/vtkImageTranslateExtent.h

61 lines
1.9 KiB
C
Raw Permalink Normal View History

2024-11-21 11:50:43 +08:00
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageTranslateExtent.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkImageTranslateExtent
* @brief Changes extent, nothing else.
*
* vtkImageTranslateExtent shift the whole extent, but does not
* change the data.
*/
#ifndef vtkImageTranslateExtent_h
#define vtkImageTranslateExtent_h
#include "vtkImageAlgorithm.h"
#include "vtkImagingCoreModule.h" // For export macro
class VTKIMAGINGCORE_EXPORT vtkImageTranslateExtent : public vtkImageAlgorithm
{
public:
static vtkImageTranslateExtent* New();
vtkTypeMacro(vtkImageTranslateExtent, vtkImageAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) override;
///@{
/**
* Delta to change "WholeExtent". -1 changes 0->10 to -1->9.
*/
vtkSetVector3Macro(Translation, int);
vtkGetVector3Macro(Translation, int);
///@}
protected:
vtkImageTranslateExtent();
~vtkImageTranslateExtent() override = default;
int Translation[3];
int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
private:
vtkImageTranslateExtent(const vtkImageTranslateExtent&) = delete;
void operator=(const vtkImageTranslateExtent&) = delete;
};
#endif