VTK  9.5.20250807
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
26VTK_ABI_NAMESPACE_BEGIN
27class vtkFloatArray;
28
29class vtkCellCenterDepthSortStack;
30
31class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkCellCenterDepthSort : public vtkVisibilitySort
32{
33public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
37
38 void InitTraversal() override;
40
41protected:
44
47
51
52 virtual float* ComputeProjectionVector();
53 virtual void ComputeCellCenters();
54 virtual void ComputeDepths();
55
56private:
57 vtkCellCenterDepthSortStack* ToSort;
58
60 void operator=(const vtkCellCenterDepthSort&) = delete;
61};
62
63VTK_ABI_NAMESPACE_END
64#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.
#define VTK_MARSHALAUTO