00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkSortDataArray.h,v $ 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 vtkDataArray; 00039 00040 class VTK_GRAPHICS_EXPORT vtkSortDataArray : public vtkObject 00041 { 00042 public: 00043 vtkTypeRevisionMacro(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(vtkDataArray *keys); 00052 00054 00057 static void Sort(vtkIdList *keys, vtkIdList *values); 00058 static void Sort(vtkIdList *keys, vtkDataArray *values); 00059 static void Sort(vtkDataArray *keys, vtkIdList *values); 00060 static void Sort(vtkDataArray *keys, vtkDataArray *values); 00062 00063 protected: 00064 vtkSortDataArray(); 00065 virtual ~vtkSortDataArray(); 00066 00067 private: 00068 vtkSortDataArray(const vtkSortDataArray &); // Not implemented. 00069 void operator=(const vtkSortDataArray &); // Not implemented. 00070 }; 00071 00072 #endif //__vtkSortDataArray_h