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=========================================================================*/
26#ifndef vtkTGAReader_h
27#define vtkTGAReader_h
28
29#include "vtkIOImageModule.h" // For export macro
30#include "vtkImageReader2.h"
31
32class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
33{
34public:
35 static vtkTGAReader* New();
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 int CanReadFile(VTK_FILEPATH const char* fname) override;
43
49 const char* GetFileExtensions() override { return ".tga"; }
50
54 const char* GetDescriptiveName() override { return "Targa"; }
55
56protected:
57 vtkTGAReader() = default;
58 ~vtkTGAReader() override = default;
59
60 void ExecuteInformation() override;
62
63private:
64 vtkTGAReader(const vtkTGAReader&) = delete;
65 void operator=(const vtkTGAReader&) = delete;
66};
67#endif
general representation of visualization data
Superclass of binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:34
Store vtkAlgorithm input/output information.
read PNG files
vtkTGAReader()=default
static vtkTGAReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a valid TGA file?
const char * GetFileExtensions() override
Get the file extensions for this format.
~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