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 "vtkCommonCoreModule.h" // For export macro 00036 #include "vtkObject.h" 00037 00038 class vtkIdList; 00039 class vtkAbstractArray; 00040 00041 class VTKCOMMONCORE_EXPORT vtkSortDataArray : public vtkObject 00042 { 00043 public: 00044 vtkTypeMacro(vtkSortDataArray, vtkObject); 00045 static vtkSortDataArray *New(); 00046 virtual void PrintSelf(ostream &os, vtkIndent indent); 00047 00049 00050 static void Sort(vtkIdList *keys); 00051 static void Sort(vtkAbstractArray *keys); 00053 00060 static void SortArrayByComponent( vtkAbstractArray* arr, int k ); 00061 00063 00066 static void Sort(vtkIdList *keys, vtkIdList *values); 00067 static void Sort(vtkIdList *keys, vtkAbstractArray *values); 00068 static void Sort(vtkAbstractArray *keys, vtkIdList *values); 00069 static void Sort(vtkAbstractArray *keys, vtkAbstractArray *values); 00071 00072 protected: 00073 vtkSortDataArray(); 00074 virtual ~vtkSortDataArray(); 00075 00076 private: 00077 vtkSortDataArray(const vtkSortDataArray &); // Not implemented. 00078 void operator=(const vtkSortDataArray &); // Not implemented. 00079 }; 00080 00081 #endif //__vtkSortDataArray_h