You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/3rd/VTK7.1/include/vtkImageGaussianSource.h

84 lines
2.3 KiB
C

/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageGaussianSource.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkImageGaussianSource
* @brief Create an image with Gaussian pixel values.
*
* vtkImageGaussianSource just produces images with pixel values determined
* by a Gaussian.
*/
#ifndef vtkImageGaussianSource_h
#define vtkImageGaussianSource_h
#include "vtkImagingSourcesModule.h" // For export macro
#include "vtkImageAlgorithm.h"
class VTKIMAGINGSOURCES_EXPORT vtkImageGaussianSource : public vtkImageAlgorithm
{
public:
static vtkImageGaussianSource *New();
vtkTypeMacro(vtkImageGaussianSource,vtkImageAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
/**
* Set/Get the extent of the whole output image.
*/
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
int zMin, int zMax);
//@{
/**
* Set/Get the center of the Gaussian.
*/
vtkSetVector3Macro(Center, double);
vtkGetVector3Macro(Center, double);
//@}
//@{
/**
* Set/Get the Maximum value of the gaussian
*/
vtkSetMacro(Maximum, double);
vtkGetMacro(Maximum, double);
//@}
//@{
/**
* Set/Get the standard deviation of the gaussian
*/
vtkSetMacro(StandardDeviation, double);
vtkGetMacro(StandardDeviation, double);
//@}
protected:
vtkImageGaussianSource();
~vtkImageGaussianSource() {}
double StandardDeviation;
int WholeExtent[6];
double Center[3];
double Maximum;
virtual int RequestInformation (vtkInformation *, vtkInformationVector**, vtkInformationVector *);
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
private:
vtkImageGaussianSource(const vtkImageGaussianSource&) VTK_DELETE_FUNCTION;
void operator=(const vtkImageGaussianSource&) VTK_DELETE_FUNCTION;
};
#endif