VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkExtentRCBPartitioner Class Reference

#include <vtkExtentRCBPartitioner.h>

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

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkExtentRCBPartitionerNewInstance () const
void PrintSelf (ostream &oss, vtkIndent indent)
void Partition ()
void GetPartitionExtent (const int idx, int ext[6])
void SetNumberOfPartitions (const int N)
void SetGlobalExtent (int imin, int imax, int jmin, int jmax, int kmin, int kmax)
void SetGlobalExtent (int ext[6])
virtual void SetNumberOfGhostLayers (int)
virtual int GetNumberOfGhostLayers ()
virtual int GetNumExtents ()

Static Public Member Functions

static vtkExtentRCBPartitionerNew ()
static int IsTypeOf (const char *type)
static vtkExtentRCBPartitionerSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkExtentRCBPartitioner ()
 ~vtkExtentRCBPartitioner ()
void ExtendGhostLayers (int ext[6])
void AcquireDataDescription ()
void GetExtent (const int idx, int ext[6])
void AddExtent (int ext[6])
void ReplaceExtent (const int idx, int ext[6])
void SplitExtent (int parent[6], int s1[6], int s2[6], int splitDimension)
int GetNumberOfTotalExtents ()
int GetNumberOfNodes (int ext[6])
int GetNumberOfCells (int ext[6])
int GetLongestDimensionLength (int ext[6])
int GetLongestDimension (int ext[6])
void PrintExtent (std::string name, int ext[6])
void Reset ()
void GetGhostedExtent (int ext[6], const int minIdx, const int maxIdx)

Protected Attributes

int NumberOfGhostLayers
int DataDescription
int GlobalExtent [6]
int NumberOfPartitions
int NumExtents
bool ExtentIsPartitioned
std::vector< intPartitionExtents

Detailed Description

This method partitions a global extent to N partitions where N is a user supplied parameter.

Definition at line 30 of file vtkExtentRCBPartitioner.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 34 of file vtkExtentRCBPartitioner.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkObject.

static int vtkExtentRCBPartitioner::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 vtkExtentRCBPartitioner::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* vtkExtentRCBPartitioner::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkExtentRCBPartitioner::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.

Set/Get the number of requested partitions

Definition at line 39 of file vtkExtentRCBPartitioner.h.

void vtkExtentRCBPartitioner::SetGlobalExtent ( int  imin,
int  imax,
int  jmin,
int  jmax,
int  kmin,
int  kmax 
) [inline]

Set/Get the global extent array to be partitioned. The global extent is packed as follows: [imin,imax,jmin,jmax,kmin,kmax]

Definition at line 50 of file vtkExtentRCBPartitioner.h.

void vtkExtentRCBPartitioner::SetGlobalExtent ( int  ext[6]) [inline]

Set/Get the global extent array to be partitioned. The global extent is packed as follows: [imin,imax,jmin,jmax,kmin,kmax]

Definition at line 60 of file vtkExtentRCBPartitioner.h.

Set/Get macro for the number of ghost layers.

Set/Get macro for the number of ghost layers.

Returns the number of extents.

Partitions the extent

void vtkExtentRCBPartitioner::GetPartitionExtent ( const int  idx,
int  ext[6] 
)

Returns the extent of the partition corresponding to the given ID.

void vtkExtentRCBPartitioner::Reset ( ) [inline, protected]

Resets the partitioner to the initial state, all previous partition extents are cleared.

Definition at line 90 of file vtkExtentRCBPartitioner.h.

void vtkExtentRCBPartitioner::ExtendGhostLayers ( int  ext[6]) [protected]

Given an extent, this method will create ghost layers on each side of the boundary in each dimension. The ghost layers however will be restricted to the given global extent.

void vtkExtentRCBPartitioner::GetGhostedExtent ( int  ext[6],
const int  minIdx,
const int  maxIdx 
) [inline, protected]

Givent an extent and the min/max of the dimension we are looking at, this method will produce a ghosted extent which is clamped within the given global extent

Definition at line 107 of file vtkExtentRCBPartitioner.h.

Gets the structured data-description based on the givenn global extent

void vtkExtentRCBPartitioner::GetExtent ( const int  idx,
int  ext[6] 
) [protected]

Returns the extent at the position corresponding to idx.

void vtkExtentRCBPartitioner::AddExtent ( int  ext[6]) [protected]

Adds the extent to the end of the list of partitioned extents

void vtkExtentRCBPartitioner::ReplaceExtent ( const int  idx,
int  ext[6] 
) [protected]

Replaces the extent at the position indicated by idx with the provided extent.

void vtkExtentRCBPartitioner::SplitExtent ( int  parent[6],
int  s1[6],
int  s2[6],
int  splitDimension 
) [protected]

Splits the extent along the given dimension.

Returns the total number of extents. It's always the 2^N where N is the number of subdivisions.

Computes the total number of nodes for the given structured grid extent

Computes the total number of cells for the given structured grid extent

Returns the length of the longest dimension

Returns the longest edge

void vtkExtentRCBPartitioner::PrintExtent ( std::string  name,
int  ext[6] 
) [protected]

A convenience method for debugging purposes.


Member Data Documentation

Definition at line 157 of file vtkExtentRCBPartitioner.h.

Definition at line 158 of file vtkExtentRCBPartitioner.h.

Definition at line 159 of file vtkExtentRCBPartitioner.h.

Definition at line 160 of file vtkExtentRCBPartitioner.h.

Definition at line 161 of file vtkExtentRCBPartitioner.h.

Definition at line 162 of file vtkExtentRCBPartitioner.h.

Definition at line 165 of file vtkExtentRCBPartitioner.h.


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