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=========================================================================*/
28
29#ifndef vtkTGAReader_h
30#define vtkTGAReader_h
31
32#include "vtkIOImageModule.h" // For export macro
33#include "vtkImageReader2.h"
34
35class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
36{
37public:
38 static vtkTGAReader* New();
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
59protected:
60 vtkTGAReader() = default;
61 ~vtkTGAReader() override = default;
62
63 void ExecuteInformation() override;
65
66private:
67 vtkTGAReader(const vtkTGAReader&) = delete;
68 void operator=(const vtkTGAReader&) = delete;
69};
70#endif
general representation of visualization data
vtkImageReader2()
Return a descriptive name for the file format that might be useful in a GUI.
a simple class to control print indentation
Definition vtkIndent.h:40
Store vtkAlgorithm input/output information.
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