21 #ifndef vtkCellGridRangeQuery_h
22 #define vtkCellGridRangeQuery_h
30 VTK_ABI_NAMESPACE_BEGIN
42 vtkSetMacro(Component,
int);
43 vtkGetMacro(Component,
int);
71 const std::array<double, 2>& GetRange(
int component)
const;
73 const std::array<double, 2>&
GetRange()
const {
return this->
GetRange(this->Component); }
78 void AddRange(
const std::array<double, 2>& other);
82 void AddRange(
int component,
const std::array<double, 2>& other);
105 using CacheMap = std::map<vtkCellAttribute*, std::vector<ComponentRange>>;
115 std::vector<std::array<double, 2>>
Ranges;
122 VTK_ABI_NAMESPACE_END
123 #endif // vtkCellGridRangeQuery_h
Perform an operation on cells in a vtkCellMetadata instance.
record modification and/or execution time
std::map< vtkCellAttribute *, std::vector< ComponentRange >> CacheMap
std::vector< std::array< double, 2 > > Ranges
vtkTimeStamp EntireRangeTime
When was the entire range last computed?
const std::array< double, 2 > & GetRange() const
virtual bool Finalize()
Override this if your query-result state requires finalization.
Visualization data composed of cells of arbitrary type.
a simple class to control print indentation
A function defined over the physical domain of a vtkCellGrid.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Compute the range of a component of some vtkCellAttribute.
#define VTK_SIZEHINT(...)
Store the finite/entire range for a single component of a cell-attribute.
std::array< double, 2 > FiniteRange
What is the finite-valued range?
std::array< double, 2 > EntireRange
What is the true range (including possible NaN or Inf values)?
vtkTimeStamp FiniteRangeTime
When was the finite range last computed?
void GetRange(double *range)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual bool Initialize()
Override this if your query-result state requires initialization.