1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
/**
* @class vtkImageDataOutlineFilter
* @brief create wireframe outline for a possibly oriented vtkImageData
*
* vtkImageDataOutlineFilter is a filter that generates a wireframe outline
* of vtkImageData. It takes into account the orientation / DirectionMatrix
* of the image, so the output outline may not be axes aligned. The outline
* consists of the twelve edges of the vtkImageData. Optionally, the six
* bounding faces of the vtkImageData can be produced as well.
*
* @sa
* vtkOutlineFilter
*/
#ifndef vtkImageDataOutlineFilter_h
#define vtkImageDataOutlineFilter_h
#include "vtkFiltersModelingModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"
VTK_ABI_NAMESPACE_BEGIN
class VTKFILTERSMODELING_EXPORT vtkImageDataOutlineFilter : public vtkPolyDataAlgorithm
{
public:
///@{
/**
* Standard methods for instantiation. type information, and printing.
*/
static vtkImageDataOutlineFilter* New();
vtkTypeMacro(vtkImageDataOutlineFilter, vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) override;
///@}
///@{
/**
* Generate the six boundary faces of the image data. This is off by default.
*/
vtkSetMacro(GenerateFaces, vtkTypeBool);
vtkBooleanMacro(GenerateFaces, vtkTypeBool);
vtkGetMacro(GenerateFaces, vtkTypeBool);
///@}
///@{
/**
* Set/get the desired precision for the output points.
* vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point.
* vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
*/
vtkSetMacro(OutputPointsPrecision, int);
vtkGetMacro(OutputPointsPrecision, int);
///@}
protected:
vtkImageDataOutlineFilter();
~vtkImageDataOutlineFilter() override;
vtkTypeBool GenerateFaces;
int OutputPointsPrecision;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
int FillInputPortInformation(int port, vtkInformation* info) override;
private:
vtkImageDataOutlineFilter(const vtkImageDataOutlineFilter&) = delete;
void operator=(const vtkImageDataOutlineFilter&) = delete;
};
VTK_ABI_NAMESPACE_END
#endif
|