17#include <vtkSimpleImageToImageFilter.h>
32class vtkQImageToImageSource;
33class vtkImageShiftScale;
48 void PrintSelf(ostream& os, vtkIndent indent)
override;
60 void setImage(vtkImageAlgorithm* image,
const QString& name);
76 void SimpleExecute(vtkImageData* input, vtkImageData* output)
override;
Definition of the GeoLib::Raster class.
Definition of the VtkAlgorithmProperties class.
Contains properties for the visualization of objects as VtkVisPipelineItems.
The VtkVisPipeline source object of a geo-referenced image (file).
vtkTypeMacro(VtkGeoImageSource, vtkSimpleImageToImageFilter)
VtkGeoImageSource(const VtkGeoImageSource &)=delete
static std::optional< GeoLib::Raster > convertToRaster(VtkGeoImageSource *const source)
VtkGeoImageSource()
Constructor.
void setImage(vtkImageAlgorithm *image, const QString &name)
Imports an existing image object.
void SetUserProperty(QString name, QVariant value) override
Sets a user property. This should be implemented by subclasses.
vtkImageAlgorithm * _imageSource
~VtkGeoImageSource() override
Destructor.
vtkImageData * getImageData()
Returns the ImageData object.
void PrintSelf(ostream &os, vtkIndent indent) override
Prints information about itself.
void SimpleExecute(vtkImageData *input, vtkImageData *output) override
Filter execution.
void operator=(const VtkGeoImageSource &)=delete
static VtkGeoImageSource * New()
Create new objects with New() because of VTKs reference counting.
bool readImage(const QString &filename)
Reads an image from file.