VTK  9.2.6
vtkTGAReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTGAReader.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 =========================================================================*/
29 #ifndef vtkTGAReader_h
30 #define vtkTGAReader_h
31 
32 #include "vtkIOImageModule.h" // For export macro
33 #include "vtkImageReader2.h"
34 
35 class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
36 {
37 public:
38  static vtkTGAReader* New();
39  vtkTypeMacro(vtkTGAReader, vtkImageReader2);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  int CanReadFile(VTK_FILEPATH const char* fname) override;
46 
52  const char* GetFileExtensions() override { return ".tga"; }
53 
57  const char* GetDescriptiveName() override { return "Targa"; }
58 
59 protected:
60  vtkTGAReader() = default;
61  ~vtkTGAReader() override = default;
62 
63  void ExecuteInformation() override;
64  void ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo) override;
65 
66 private:
67  vtkTGAReader(const vtkTGAReader&) = delete;
68  void operator=(const vtkTGAReader&) = delete;
69 };
70 #endif
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual int CanReadFile(VTK_FILEPATH const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
read PNG files
Definition: vtkTGAReader.h:35
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkTGAReader.h:57
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void ExecuteInformation()
Superclass of binary file readers.
#define VTK_FILEPATH
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkTGAReader.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:65