VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkSortDataArray Class Reference

Provides several methods for sorting vtk arrays. More...

#include <vtkSortDataArray.h>

Inheritance diagram for vtkSortDataArray:
Inheritance graph
[legend]
Collaboration diagram for vtkSortDataArray:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSortDataArrayNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkSortDataArraySafeDownCast (vtkObjectBase *o)
static vtkSortDataArrayNew ()
static void SortArrayByComponent (vtkAbstractArray *arr, int k)
static void Sort (vtkIdList *keys)
static void Sort (vtkAbstractArray *keys)
static void Sort (vtkIdList *keys, vtkIdList *values)
static void Sort (vtkIdList *keys, vtkAbstractArray *values)
static void Sort (vtkAbstractArray *keys, vtkIdList *values)
static void Sort (vtkAbstractArray *keys, vtkAbstractArray *values)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSortDataArray ()
virtual ~vtkSortDataArray ()

Detailed Description

Provides several methods for sorting vtk arrays.

Tests:
vtkSortDataArray (Tests)

Definition at line 41 of file vtkSortDataArray.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 44 of file vtkSortDataArray.h.


Constructor & Destructor Documentation

virtual vtkSortDataArray::~vtkSortDataArray ( ) [protected, virtual]

Member Function Documentation

static int vtkSortDataArray::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkSortDataArray::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkSortDataArray::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

virtual void vtkSortDataArray::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

static void vtkSortDataArray::Sort ( vtkIdList keys) [static]

Sorts the given array.

static void vtkSortDataArray::Sort ( vtkAbstractArray keys) [static]

Sorts the given array.

static void vtkSortDataArray::SortArrayByComponent ( vtkAbstractArray arr,
int  k 
) [static]

Sorts the given data array using the specified component as a key. Think of the array as a 2-D grid with each tuple representing a row. Tuples are swapped until the k-th column of the grid is monotonically increasing. Where two tuples have the same value for the k-th component, their order in the final result is unspecified.

static void vtkSortDataArray::Sort ( vtkIdList keys,
vtkIdList values 
) [static]

Sorts the given key/value pairs based on the keys. A pair is given as the entries at a given index of each of the arrays. Obviously, the two arrays must be of equal size.

static void vtkSortDataArray::Sort ( vtkIdList keys,
vtkAbstractArray values 
) [static]

Sorts the given key/value pairs based on the keys. A pair is given as the entries at a given index of each of the arrays. Obviously, the two arrays must be of equal size.

static void vtkSortDataArray::Sort ( vtkAbstractArray keys,
vtkIdList values 
) [static]

Sorts the given key/value pairs based on the keys. A pair is given as the entries at a given index of each of the arrays. Obviously, the two arrays must be of equal size.

static void vtkSortDataArray::Sort ( vtkAbstractArray keys,
vtkAbstractArray values 
) [static]

Sorts the given key/value pairs based on the keys. A pair is given as the entries at a given index of each of the arrays. Obviously, the two arrays must be of equal size.


The documentation for this class was generated from the following file: