VTK
vtkImageReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
33#ifndef vtkImageReader_h
34#define vtkImageReader_h
35
36#include "vtkIOImageModule.h" // For export macro
37#include "vtkImageReader2.h"
38
39class vtkTransform;
40
41#define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
42#define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
43
44class VTKIOIMAGE_EXPORT vtkImageReader : public vtkImageReader2
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent);
50
52
56 vtkSetVector6Macro(DataVOI,int);
57 vtkGetVector6Macro(DataVOI,int);
59
61
68 vtkGetMacro(DataMask, vtkTypeUInt64);
69 vtkSetMacro(DataMask, vtkTypeUInt64);
71
73
78 virtual void SetTransform(vtkTransform*);
79 vtkGetObjectMacro(Transform,vtkTransform);
81
82 // Warning !!!
83 // following should only be used by methods or template helpers, not users
84 void ComputeInverseTransformedExtent(int inExtent[6],
85 int outExtent[6]);
87 vtkIdType outIncr[3]);
88
89 int OpenAndSeekFile(int extent[6], int slice);
90
92
95 vtkSetStringMacro(ScalarArrayName);
96 vtkGetStringMacro(ScalarArrayName);
98
99protected:
102
103 vtkTypeUInt64 DataMask;
104
106
107 void ComputeTransformedSpacing (double Spacing[3]);
108 void ComputeTransformedOrigin (double origin[3]);
109 void ComputeTransformedExtent(int inExtent[6],
110 int outExtent[6]);
112 vtkIdType outIncr[3]);
113
114 int DataVOI[6];
115
117
118 virtual int RequestInformation(vtkInformation* request,
119 vtkInformationVector** inputVector,
120 vtkInformationVector* outputVector);
121
123private:
124 vtkImageReader(const vtkImageReader&) VTK_DELETE_FUNCTION;
125 void operator=(const vtkImageReader&) VTK_DELETE_FUNCTION;
126};
127
128#endif
general representation of visualization data
Definition: vtkDataObject.h:65
Superclass of binary file readers.
Superclass of transformable binary file readers.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageReader * New()
void ComputeTransformedExtent(int inExtent[6], int outExtent[6])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ComputeInverseTransformedExtent(int inExtent[6], int outExtent[6])
void ComputeTransformedSpacing(double Spacing[3])
int OpenAndSeekFile(int extent[6], int slice)
char * ScalarArrayName
virtual void SetTransform(vtkTransform *)
Set/Get transformation matrix to transform the data from slice space into world space.
void ComputeTransformedOrigin(double origin[3])
void ComputeInverseTransformedIncrements(vtkIdType inIncr[3], vtkIdType outIncr[3])
vtkTypeUInt64 DataMask
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
void ComputeTransformedIncrements(vtkIdType inIncr[3], vtkIdType outIncr[3])
vtkTransform * Transform
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
Transform
Definition: ADIOSDefs.h:40
@ extent
Definition: vtkX3D.h:345
@ data
Definition: vtkX3D.h:315
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
int vtkIdType
Definition: vtkType.h:287