VTK  9.3.0
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 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkFloatArray;
27 
28 class vtkCellCenterDepthSortStack;
29 
30 class VTKRENDERINGCORE_EXPORT vtkCellCenterDepthSort : public vtkVisibilitySort
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37  void InitTraversal() override;
39 
40 protected:
43 
46 
50 
51  virtual float* ComputeProjectionVector();
52  virtual void ComputeCellCenters();
53  virtual void ComputeDepths();
54 
55 private:
56  vtkCellCenterDepthSortStack* ToSort;
57 
59  void operator=(const vtkCellCenterDepthSort&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
A simple implementation of vtkCellDepthSort.
vtkIdTypeArray * SortedCellPartition
~vtkCellCenterDepthSort() override
static vtkCellCenterDepthSort * New()
vtkFloatArray * CellPartitionDepths
void InitTraversal() override
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
virtual float * ComputeProjectionVector()
virtual void ComputeDepths()
virtual void ComputeCellCenters()
vtkIdTypeArray * GetNextCells() override
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
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
Definition: vtkFloatArray.h:31
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:29
Abstract class that can sort cell data along a viewpoint.