VTK  9.4.20241226
vtkCellCenterDepthSort.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2003 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
19#ifndef vtkCellCenterDepthSort_h
20#define vtkCellCenterDepthSort_h
21
22#include "vtkRenderingCoreModule.h" // For export macro
23#include "vtkVisibilitySort.h"
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkFloatArray;
27
28class vtkCellCenterDepthSortStack;
29
30class VTKRENDERINGCORE_EXPORT vtkCellCenterDepthSort : public vtkVisibilitySort
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
36
37 void InitTraversal() override;
39
40protected:
43
46
50
51 virtual float* ComputeProjectionVector();
52 virtual void ComputeCellCenters();
53 virtual void ComputeDepths();
54
55private:
56 vtkCellCenterDepthSortStack* ToSort;
57
59 void operator=(const vtkCellCenterDepthSort&) = delete;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif
A simple implementation of vtkCellDepthSort.
vtkIdTypeArray * SortedCellPartition
~vtkCellCenterDepthSort() override
vtkIdTypeArray * GetNextCells() override
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
void InitTraversal() override
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
static vtkCellCenterDepthSort * New()
virtual void ComputeDepths()
virtual void ComputeCellCenters()
virtual float * ComputeProjectionVector()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of float
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Abstract class that can sort cell data along a viewpoint.