VTK  9.1.0
vtkCellCenterDepthSort.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCellCenterDepthSort.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
16/*
17 * Copyright 2003 Sandia Corporation.
18 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19 * license for use of this work by or on behalf of the
20 * U.S. Government. Redistribution and use in source and binary forms, with
21 * or without modification, are permitted provided that this Notice and any
22 * statement of authorship are reproduced on all copies.
23 */
24
39#ifndef vtkCellCenterDepthSort_h
40#define vtkCellCenterDepthSort_h
41
42#include "vtkRenderingCoreModule.h" // For export macro
43#include "vtkVisibilitySort.h"
44
45class vtkFloatArray;
46
47class vtkCellCenterDepthSortStack;
48
49class VTKRENDERINGCORE_EXPORT vtkCellCenterDepthSort : public vtkVisibilitySort
50{
51public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
56 void InitTraversal() override;
58
59protected:
62
65
69
70 virtual float* ComputeProjectionVector();
71 virtual void ComputeCellCenters();
72 virtual void ComputeDepths();
73
74private:
75 vtkCellCenterDepthSortStack* ToSort;
76
78 void operator=(const vtkCellCenterDepthSort&) = delete;
79};
80
81#endif
A simple implementation of vtkCellDepthSort.
vtkIdTypeArray * SortedCellPartition
~vtkCellCenterDepthSort() override
vtkFloatArray * CellPartitionDepths
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:113
Abstract class that can sort cell data along a viewpoint.