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 
32 #ifndef vtkSortDataArray_h
33 #define vtkSortDataArray_h
34 
35 #include "vtkCommonCoreModule.h" // For export macro
36 #include "vtkObject.h"
37 
38 class vtkIdList;
39 class vtkAbstractArray;
40 
42 {
43 public:
44  vtkTypeMacro(vtkSortDataArray, vtkObject);
45  static vtkSortDataArray *New();
46  virtual void PrintSelf(ostream &os, vtkIndent indent);
47 
49 
50  static void Sort(vtkIdList *keys);
51  static void Sort(vtkAbstractArray *keys);
53 
60  static void SortArrayByComponent( vtkAbstractArray* arr, int k );
61 
63 
66  static void Sort(vtkIdList *keys, vtkIdList *values);
67  static void Sort(vtkIdList *keys, vtkAbstractArray *values);
68  static void Sort(vtkAbstractArray *keys, vtkIdList *values);
69  static void Sort(vtkAbstractArray *keys, vtkAbstractArray *values);
71 
72 protected:
74  virtual ~vtkSortDataArray();
75 
76 private:
77  vtkSortDataArray(const vtkSortDataArray &); // Not implemented.
78  void operator=(const vtkSortDataArray &); // Not implemented.
79 };
80 
81 #endif //vtkSortDataArray_h
abstract base class for most VTK objects
Definition: vtkObject.h:61
Abstract superclass for all arrays.
#define VTKCOMMONCORE_EXPORT
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
Provides several methods for sorting vtk arrays.
static vtkObject * New()