VTK
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 virtual void PrintSelf(ostream &os, vtkIndent indent);
55
56 virtual void InitTraversal();
58
59protected:
62
65
69
70 virtual float *ComputeProjectionVector();
71 virtual void ComputeCellCenters();
72 virtual void ComputeDepths();
73
74private:
75 vtkCellCenterDepthSortStack *ToSort;
76
77 vtkCellCenterDepthSort(const vtkCellCenterDepthSort &) VTK_DELETE_FUNCTION;
78 void operator=(const vtkCellCenterDepthSort &) VTK_DELETE_FUNCTION;
79};
80
81#endif
A simple implementation of vtkCellDepthSort.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIdTypeArray * SortedCellPartition
vtkFloatArray * CellPartitionDepths
static vtkCellCenterDepthSort * New()
virtual ~vtkCellCenterDepthSort()
virtual void ComputeDepths()
virtual vtkIdTypeArray * GetNextCells()
virtual void ComputeCellCenters()
virtual float * ComputeProjectionVector()
virtual void InitTraversal()
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:40
Abstract class that can sort cell data along a viewpoint.