#include <vtkStructuredExtent.h>


vtkStructuredExtent is an helper class that helps in arithmetic with structured extents. It defines a bunch of static methods (most of which are inlined) to aid in dealing with extents.
Definition at line 30 of file vtkStructuredExtent.h.
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
| static vtkStructuredExtent * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkStructuredExtent * | SafeDownCast (vtkObject *o) |
| static void | Clamp (int ext[6], int wholeExt[6]) |
| static bool | StrictlySmaller (const int ext[6], const int wholeExt[6]) |
| static bool | Smaller (const int ext[6], const int wholeExt[6]) |
| static void | Grow (int ext[6], int count) |
| static void | Transform (int ext[6], int wholeExt[6]) |
| static void | GetDimensions (const int ext[6], int dims[3]) |
Protected Member Functions | |
| vtkStructuredExtent () | |
| ~vtkStructuredExtent () | |
| vtkStructuredExtent::vtkStructuredExtent | ( | ) | [protected] |
| vtkStructuredExtent::~vtkStructuredExtent | ( | ) | [protected] |
| static vtkStructuredExtent* vtkStructuredExtent::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
| virtual const char* vtkStructuredExtent::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
| static int vtkStructuredExtent::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 vtkStructuredExtent::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.
| static vtkStructuredExtent* vtkStructuredExtent::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
| void vtkStructuredExtent::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
| void vtkStructuredExtent::Clamp | ( | int | ext[6], | |
| int | wholeExt[6] | |||
| ) | [inline, static] |
Clamps ext to fit in wholeExt.
Definition at line 69 of file vtkStructuredExtent.h.
| bool vtkStructuredExtent::StrictlySmaller | ( | const int | ext[6], | |
| const int | wholeExt[6] | |||
| ) | [inline, static] |
Returns true if ext is fits within wholeExt with atleast 1 dimension smaller than the wholeExt.
Definition at line 106 of file vtkStructuredExtent.h.
| bool vtkStructuredExtent::Smaller | ( | const int | ext[6], | |
| const int | wholeExt[6] | |||
| ) | [inline, static] |
Returns if ext fits within wholeExt. Unline StrictlySmaller, this method returns true even if ext == wholeExt.
Definition at line 82 of file vtkStructuredExtent.h.
| void vtkStructuredExtent::Grow | ( | int | ext[6], | |
| int | count | |||
| ) | [inline, static] |
Grows the ext on each side by the given count.
Definition at line 125 of file vtkStructuredExtent.h.
| void vtkStructuredExtent::Transform | ( | int | ext[6], | |
| int | wholeExt[6] | |||
| ) | [inline, static] |
Makes ext relative to wholeExt.
Definition at line 137 of file vtkStructuredExtent.h.
| void vtkStructuredExtent::GetDimensions | ( | const int | ext[6], | |
| int | dims[3] | |||
| ) | [inline, static] |
Given the extents, computes the dimensions.
Definition at line 150 of file vtkStructuredExtent.h.
1.5.6