VTK  9.7.1
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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkFloatArray;
28 
29 class vtkCellCenterDepthSortStack;
30 
31 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkCellCenterDepthSort : public vtkVisibilitySort
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36  static vtkCellCenterDepthSort* New();
37 
38  void InitTraversal() override;
39  vtkIdTypeArray* GetNextCells() override;
40 
41 protected:
43  ~vtkCellCenterDepthSort() override;
44 
47 
51 
52  virtual float* ComputeProjectionVector();
53  virtual void ComputeCellCenters();
54  virtual void ComputeDepths();
55 
56 private:
57  vtkCellCenterDepthSortStack* ToSort;
58 
60  void operator=(const vtkCellCenterDepthSort&) = delete;
61 };
62 
63 VTK_ABI_NAMESPACE_END
64 #endif
Abstract class that can sort cell data along a viewpoint.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:31
dynamic, self-adjusting array of vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFloatArray * CellPartitionDepths
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void InitTraversal()=0
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process...
vtkIdTypeArray * SortedCellPartition
#define VTK_MARSHALAUTO
A simple implementation of vtkCellDepthSort.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual vtkIdTypeArray * GetNextCells()=0
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process...