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/vtkOverlappingAMRLevelIdSca...

55 lines
1.9 KiB
C

/*=========================================================================
Program: Visualization Toolkit
Module: vtkOverlappingAMRLevelIdScalars.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 vtkOverlappingAMRLevelIdScalars
* @brief generate scalars from levels.
*
* vtkOverlappingAMRLevelIdScalars is a filter that generates scalars using
* the level number for each level. Note that all datasets within a level get
* the same scalar. The new scalars array is named \c LevelIdScalars.
*/
#ifndef vtkOverlappingAMRLevelIdScalars_h
#define vtkOverlappingAMRLevelIdScalars_h
#include "vtkFiltersGeneralModule.h" // For export macro
#include "vtkOverlappingAMRAlgorithm.h"
class vtkUniformGrid;
class vtkUniformGridAMR;
class VTKFILTERSGENERAL_EXPORT vtkOverlappingAMRLevelIdScalars : public vtkOverlappingAMRAlgorithm
{
public:
static vtkOverlappingAMRLevelIdScalars* New();
vtkTypeMacro(vtkOverlappingAMRLevelIdScalars, vtkOverlappingAMRAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) override;
protected:
vtkOverlappingAMRLevelIdScalars();
~vtkOverlappingAMRLevelIdScalars() override;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
void AddColorLevels(vtkUniformGridAMR* input, vtkUniformGridAMR* output);
vtkUniformGrid* ColorLevel(vtkUniformGrid* input, int group);
private:
vtkOverlappingAMRLevelIdScalars(const vtkOverlappingAMRLevelIdScalars&) = delete;
void operator=(const vtkOverlappingAMRLevelIdScalars&) = delete;
};
#endif