VTK  9.0.20210424
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 
45 class vtkFloatArray;
46 
47 class vtkCellCenterDepthSortStack;
48 
49 class VTKRENDERINGCORE_EXPORT vtkCellCenterDepthSort : public vtkVisibilitySort
50 {
51 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
56  void InitTraversal() override;
58 
59 protected:
62 
65 
69 
70  virtual float* ComputeProjectionVector();
71  virtual void ComputeCellCenters();
72  virtual void ComputeDepths();
73 
74 private:
75  vtkCellCenterDepthSortStack* ToSort;
76 
78  void operator=(const vtkCellCenterDepthSort&) = delete;
79 };
80 
81 #endif
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:36
vtkCellCenterDepthSort::CellCenters
vtkFloatArray * CellCenters
Definition: vtkCellCenterDepthSort.h:66
vtkCellCenterDepthSort::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellCenterDepthSort::vtkCellCenterDepthSort
vtkCellCenterDepthSort()
vtkCellCenterDepthSort
A simple implementation of vtkCellDepthSort.
Definition: vtkCellCenterDepthSort.h:50
vtkCellCenterDepthSort::SortedCells
vtkIdTypeArray * SortedCells
Definition: vtkCellCenterDepthSort.h:63
vtkCellCenterDepthSort::~vtkCellCenterDepthSort
~vtkCellCenterDepthSort() override
vtkCellCenterDepthSort::CellPartitionDepths
vtkFloatArray * CellPartitionDepths
Definition: vtkCellCenterDepthSort.h:68
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkCellCenterDepthSort::ComputeProjectionVector
virtual float * ComputeProjectionVector()
vtkVisibilitySort.h
vtkVisibilitySort
Abstract class that can sort cell data along a viewpoint.
Definition: vtkVisibilitySort.h:58
vtkCellCenterDepthSort::CellDepths
vtkFloatArray * CellDepths
Definition: vtkCellCenterDepthSort.h:67
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:36
vtkCellCenterDepthSort::GetNextCells
vtkIdTypeArray * GetNextCells() override
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
vtkCellCenterDepthSort::ComputeCellCenters
virtual void ComputeCellCenters()
vtkCellCenterDepthSort::ComputeDepths
virtual void ComputeDepths()
vtkCellCenterDepthSort::SortedCellPartition
vtkIdTypeArray * SortedCellPartition
Definition: vtkCellCenterDepthSort.h:64
vtkCellCenterDepthSort::InitTraversal
void InitTraversal() override
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
vtkCellCenterDepthSort::New
static vtkCellCenterDepthSort * New()