VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSortDataArray.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00016 /* 00017 * Copyright 2003 Sandia Corporation. 00018 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00019 * license for use of this work by or on behalf of the 00020 * U.S. Government. Redistribution and use in source and binary forms, with 00021 * or without modification, are permitted provided that this Notice and any 00022 * statement of authorship are reproduced on all copies. 00023 */ 00024 00032 #ifndef __vtkSortDataArray_h 00033 #define __vtkSortDataArray_h 00034 00035 #include "vtkObject.h" 00036 00037 class vtkIdList; 00038 class vtkAbstractArray; 00039 00040 class VTK_COMMON_EXPORT vtkSortDataArray : public vtkObject 00041 { 00042 public: 00043 vtkTypeMacro(vtkSortDataArray, vtkObject); 00044 static vtkSortDataArray *New(); 00045 virtual void PrintSelf(ostream &os, vtkIndent indent); 00046 00048 00049 static void Sort(vtkIdList *keys); 00050 static void Sort(vtkAbstractArray *keys); 00052 00059 static void SortArrayByComponent( vtkAbstractArray* arr, int k ); 00060 00062 00065 static void Sort(vtkIdList *keys, vtkIdList *values); 00066 static void Sort(vtkIdList *keys, vtkAbstractArray *values); 00067 static void Sort(vtkAbstractArray *keys, vtkIdList *values); 00068 static void Sort(vtkAbstractArray *keys, vtkAbstractArray *values); 00070 00071 protected: 00072 vtkSortDataArray(); 00073 virtual ~vtkSortDataArray(); 00074 00075 private: 00076 vtkSortDataArray(const vtkSortDataArray &); // Not implemented. 00077 void operator=(const vtkSortDataArray &); // Not implemented. 00078 }; 00079 00080 #endif //__vtkSortDataArray_h