You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
C++
61 lines
1.8 KiB
C++
/*=========================================================================
|
|
|
|
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 {}
|
|
|
|
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
|