/usr/include/vtk-6.3/vtkImageFlip.h is in libvtk6-dev 6.3.0+dfsg1-5.
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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImageFlip.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.
=========================================================================*/
// .NAME vtkImageFlip - This flips an axis of an image. Right becomes left ...
// .SECTION Description
// vtkImageFlip will reflect the data along the filtered axis. This filter is
// actually a thin wrapper around vtkImageReslice.
#ifndef vtkImageFlip_h
#define vtkImageFlip_h
#include "vtkImagingCoreModule.h" // For export macro
#include "vtkImageReslice.h"
class VTKIMAGINGCORE_EXPORT vtkImageFlip : public vtkImageReslice
{
public:
static vtkImageFlip *New();
vtkTypeMacro(vtkImageFlip,vtkImageReslice);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Specify which axis will be flipped. This must be an integer
// between 0 (for x) and 2 (for z). Initial value is 0.
vtkSetMacro(FilteredAxis, int);
vtkGetMacro(FilteredAxis, int);
// Description:
// By default the image will be flipped about its center, and the
// Origin, Spacing and Extent of the output will be identical to
// the input. However, if you have a coordinate system associated
// with the image and you want to use the flip to convert +ve values
// along one axis to -ve values (and vice versa) then you actually
// want to flip the image about coordinate (0,0,0) instead of about
// the center of the image. This method will adjust the Origin of
// the output such that the flip occurs about (0,0,0). Note that
// this method only changes the Origin (and hence the coordinate system)
// the output data: the actual pixel values are the same whether or not
// this method is used. Also note that the Origin in this method name
// refers to (0,0,0) in the coordinate system associated with the image,
// it does not refer to the Origin ivar that is associated with a
// vtkImageData.
vtkSetMacro(FlipAboutOrigin, int);
vtkGetMacro(FlipAboutOrigin, int);
vtkBooleanMacro(FlipAboutOrigin, int);
// Description:
// Keep the mis-named Axes variations around for compatibility with old
// scripts. Axis is singular, not plural...
void SetFilteredAxes(int axis) { this->SetFilteredAxis(axis); }
int GetFilteredAxes() { return this->GetFilteredAxis(); }
// Description:
// PreserveImageExtentOff wasn't covered by test scripts and its
// implementation was broken. It is deprecated now and it has
// no effect (i.e. the ImageExtent is always preserved).
vtkSetMacro(PreserveImageExtent, int);
vtkGetMacro(PreserveImageExtent, int);
vtkBooleanMacro(PreserveImageExtent, int);
protected:
vtkImageFlip();
~vtkImageFlip() {}
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
int FilteredAxis;
int FlipAboutOrigin;
int PreserveImageExtent;
private:
vtkImageFlip(const vtkImageFlip&); // Not implemented.
void operator=(const vtkImageFlip&); // Not implemented.
};
#endif
|