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.
Tools/Win64/VTK/include/vtk-9.0/vtkThreadedSynchronizedTemp...

94 lines
2.9 KiB
C++

/*=========================================================================
Program: Visualization Toolkit
Module: vtkThreadedSynchronizedTemplatesCutter3D.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 vtkThreadedSynchronizedTemplatesCutter3D
* @brief generate cut surface from structured points
*
*
* vtkThreadedSynchronizedTemplatesCutter3D is an implementation of the
* synchronized template algorithm.
*
* @sa
* vtkContourFilter vtkSynchronizedTemplates3D vtkThreadedSynchronizedTemplates3D
* vtkSynchronizedTemplatesCutter3D
*/
#ifndef vtkThreadedSynchronizedTemplatesCutter3D_h
#define vtkThreadedSynchronizedTemplatesCutter3D_h
#include "vtkFiltersSMPModule.h" // For export macro
#include "vtkThreadedSynchronizedTemplates3D.h"
class vtkImplicitFunction;
#if !defined(VTK_LEGACY_REMOVE)
class VTKFILTERSSMP_EXPORT vtkThreadedSynchronizedTemplatesCutter3D
: public vtkThreadedSynchronizedTemplates3D
{
public:
static vtkThreadedSynchronizedTemplatesCutter3D* New();
vtkTypeMacro(vtkThreadedSynchronizedTemplatesCutter3D, vtkThreadedSynchronizedTemplates3D);
void PrintSelf(ostream& os, vtkIndent indent) override;
/**
* Needed by templated functions.
*/
void ThreadedExecute(vtkImageData* data, vtkInformation* outInfo, int);
//@{
/**
* Specify the implicit function to perform the cutting.
*/
virtual void SetCutFunction(vtkImplicitFunction*);
vtkGetObjectMacro(CutFunction, vtkImplicitFunction);
//@}
//@{
/**
* Set/get the desired precision for the output types. See the documentation
* for the vtkAlgorithm::DesiredOutputPrecision enum for an explanation of
* the available precision settings.
*/
vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
vtkGetMacro(OutputPointsPrecision, int);
//@}
/**
* Override GetMTime because we delegate to vtkContourValues and refer to
* vtkImplicitFunction.
*/
vtkMTimeType GetMTime() override;
protected:
vtkThreadedSynchronizedTemplatesCutter3D();
~vtkThreadedSynchronizedTemplatesCutter3D() override;
vtkImplicitFunction* CutFunction;
int OutputPointsPrecision;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
int FillOutputPortInformation(int port, vtkInformation* info) override;
private:
vtkThreadedSynchronizedTemplatesCutter3D(
const vtkThreadedSynchronizedTemplatesCutter3D&) = delete;
void operator=(const vtkThreadedSynchronizedTemplatesCutter3D&) = delete;
};
#endif // VTK_LEGACY_REMOVE
#endif