/usr/include/vtk-7.1/vtkImageChangeInformation.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImageChangeInformation.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 vtkImageChangeInformation
* @brief modify spacing, origin and extent.
*
* vtkImageChangeInformation modify the spacing, origin, or extent of
* the data without changing the data itself. The data is not resampled
* by this filter, only the information accompanying the data is modified.
*/
#ifndef vtkImageChangeInformation_h
#define vtkImageChangeInformation_h
#include "vtkImagingCoreModule.h" // For export macro
#include "vtkImageAlgorithm.h"
class vtkImageData;
class VTKIMAGINGCORE_EXPORT vtkImageChangeInformation : public vtkImageAlgorithm
{
public:
static vtkImageChangeInformation *New();
vtkTypeMacro(vtkImageChangeInformation, vtkImageAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* Copy the information from another data set. By default,
* the information is copied from the input.
*/
virtual void SetInformationInputData(vtkImageData*);
virtual vtkImageData *GetInformationInput();
//@}
//@{
/**
* Specify new starting values for the extent explicitly.
* These values are used as WholeExtent[0], WholeExtent[2] and
* WholeExtent[4] of the output. The default is to the
* use the extent start of the Input, or of the InformationInput
* if InformationInput is set.
*/
vtkSetVector3Macro(OutputExtentStart, int);
vtkGetVector3Macro(OutputExtentStart, int);
//@}
//@{
/**
* Specify a new data spacing explicitly. The default is to
* use the spacing of the Input, or of the InformationInput
* if InformationInput is set.
*/
vtkSetVector3Macro(OutputSpacing, double);
vtkGetVector3Macro(OutputSpacing, double);
//@}
//@{
/**
* Specify a new data origin explicitly. The default is to
* use the origin of the Input, or of the InformationInput
* if InformationInput is set.
*/
vtkSetVector3Macro(OutputOrigin, double);
vtkGetVector3Macro(OutputOrigin, double);
//@}
//@{
/**
* Set the Origin of the output so that image coordinate (0,0,0)
* lies at the Center of the data set. This will override
* SetOutputOrigin. This is often a useful operation to apply
* before using vtkImageReslice to apply a transformation to an image.
*/
vtkSetMacro(CenterImage, int);
vtkBooleanMacro(CenterImage, int);
vtkGetMacro(CenterImage, int);
//@}
//@{
/**
* Apply a translation to the extent.
*/
vtkSetVector3Macro(ExtentTranslation, int);
vtkGetVector3Macro(ExtentTranslation, int);
//@}
//@{
/**
* Apply a scale factor to the spacing.
*/
vtkSetVector3Macro(SpacingScale, double);
vtkGetVector3Macro(SpacingScale, double);
//@}
//@{
/**
* Apply a translation to the origin.
*/
vtkSetVector3Macro(OriginTranslation, double);
vtkGetVector3Macro(OriginTranslation, double);
//@}
//@{
/**
* Apply a scale to the origin. The scale is applied
* before the translation.
*/
vtkSetVector3Macro(OriginScale, double);
vtkGetVector3Macro(OriginScale, double);
//@}
protected:
vtkImageChangeInformation();
~vtkImageChangeInformation();
int CenterImage;
int OutputExtentStart[3];
int ExtentTranslation[3];
int FinalExtentTranslation[3];
double OutputSpacing[3];
double SpacingScale[3];
double OutputOrigin[3];
double OriginScale[3];
double OriginTranslation[3];
virtual int RequestUpdateExtent (vtkInformation *,
vtkInformationVector **,
vtkInformationVector *) VTK_OVERRIDE;
virtual int RequestInformation (vtkInformation *,
vtkInformationVector **,
vtkInformationVector *) VTK_OVERRIDE;
virtual int RequestData(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *) VTK_OVERRIDE;
virtual int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
private:
vtkImageChangeInformation(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
void operator=(const vtkImageChangeInformation&) VTK_DELETE_FUNCTION;
};
#endif
|