VTK  9.1.0
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 =========================================================================*/
26 #ifndef vtkTGAReader_h
27 #define vtkTGAReader_h
28 
29 #include "vtkIOImageModule.h" // For export macro
30 #include "vtkImageReader2.h"
31 
32 class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
33 {
34 public:
35  static vtkTGAReader* New();
36  vtkTypeMacro(vtkTGAReader, vtkImageReader2);
37 
41  int CanReadFile(VTK_FILEPATH const char* fname) override;
42 
48  const char* GetFileExtensions() override { return ".tga"; }
49 
53  const char* GetDescriptiveName() override { return "Targa"; }
54 
55 protected:
56  vtkTGAReader() = default;
57  ~vtkTGAReader() override = default;
58 
59  void ExecuteInformation() override;
60  void ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo) override;
61 
62 private:
63  vtkTGAReader(const vtkTGAReader&) = delete;
64  void operator=(const vtkTGAReader&) = delete;
65 };
66 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
Superclass of binary file readers.
Store vtkAlgorithm input/output information.
read PNG files
Definition: vtkTGAReader.h:33
vtkTGAReader()=default
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkTGAReader.h:48
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkTGAReader.h:53
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a valid TGA file?
static vtkTGAReader * New()
~vtkTGAReader() override=default
void ExecuteInformation() override
void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
#define VTK_FILEPATH