VTK
vtkSortDataArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSortDataArray.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 
29 #ifndef __vtkSortDataArray_h
30 #define __vtkSortDataArray_h
31 
32 #include "vtkObject.h"
33 
34 class vtkIdList;
35 class vtkAbstractArray;
36 
38 {
39 public:
40  vtkTypeMacro(vtkSortDataArray, vtkObject);
41  static vtkSortDataArray *New();
42  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
45 
46  static void Sort(vtkIdList *keys);
47  static void Sort(vtkAbstractArray *keys);
49 
56  static void SortArrayByComponent( vtkAbstractArray* arr, int k );
57 
59 
62  static void Sort(vtkIdList *keys, vtkIdList *values);
63  static void Sort(vtkIdList *keys, vtkAbstractArray *values);
64  static void Sort(vtkAbstractArray *keys, vtkIdList *values);
65  static void Sort(vtkAbstractArray *keys, vtkAbstractArray *values);
67 
68 protected:
70  virtual ~vtkSortDataArray();
71 
72 private:
73  vtkSortDataArray(const vtkSortDataArray &); // Not implemented.
74  void operator=(const vtkSortDataArray &); // Not implemented.
75 };
76 
77 #endif //__vtkSortDataArray_h
abstract base class for most VTK objects
Definition: vtkObject.h:60
Abstract superclass for all arrays.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
list of point or cell ids
Definition: vtkIdList.h:34
#define VTK_COMMON_EXPORT
Provides several methods for sorting vtk arrays.
static vtkObject * New()