OGS
VtkGeoImageSource.cpp File Reference

Detailed Description

Implementation of the VtkGeoImageSource class.

Author
Lars Bilke
Date
2010-09-28

Definition in file VtkGeoImageSource.cpp.

#include "VtkGeoImageSource.h"
#include <vtkFloatArray.h>
#include <vtkImageChangeInformation.h>
#include <vtkImageData.h>
#include <vtkImageImport.h>
#include <vtkImageShiftScale.h>
#include <vtkIntArray.h>
#include <vtkObjectFactory.h>
#include <vtkPointData.h>
#include "VtkRaster.h"
Include dependency graph for VtkGeoImageSource.cpp:

Go to the source code of this file.

Functions

 vtkStandardNewMacro (VtkGeoImageSource)
 
template<class IT >
void vtkSimpleImageFilterExampleExecute (vtkImageData *input, vtkImageData *output, IT *inPtr, IT *outPtr)
 

Function Documentation

◆ vtkSimpleImageFilterExampleExecute()

template<class IT >
void vtkSimpleImageFilterExampleExecute ( vtkImageData * input,
vtkImageData * output,
IT * inPtr,
IT * outPtr )

Definition at line 38 of file VtkGeoImageSource.cpp.

41{
42 int dims[3];
43 input->GetDimensions(dims);
44 if (input->GetScalarType() != output->GetScalarType())
45 {
46 vtkGenericWarningMacro(
47 << "Execute: input ScalarType, " << input->GetScalarType()
48 << ", must match out ScalarType " << output->GetScalarType());
49 return;
50 }
51 // HACK LB Multiply by number of scalar components due to RGBA values ?????
52 int size =
53 dims[0] * dims[1] * dims[2] * input->GetNumberOfScalarComponents();
54
55 for (int i = 0; i < size; i++)
56 {
57 outPtr[i] = inPtr[i];
58 }
59}
constexpr int size(int const displacement_dim)
Vectorized tensor size for given displacement dimension.

Referenced by VtkGeoImageSource::SimpleExecute().

◆ vtkStandardNewMacro()

vtkStandardNewMacro ( VtkGeoImageSource )