29 #ifndef vtkStructuredExtent_h 
   30 #define vtkStructuredExtent_h 
   32 #include "vtkCommonDataModelModule.h"  
   45   static void Clamp(
int ext[6], 
const int wholeExt[]);
 
   51   static bool StrictlySmaller(
const int ext[6], 
const int wholeExt[6]);
 
   57   static bool Smaller(
const int ext[6], 
const int wholeExt[6]);
 
   62   static void Grow(
int ext[6], 
int count);
 
   67   static void Transform(
int ext[6], 
int wholeExt[6]);
 
   72   static void GetDimensions(
const int ext[6], 
int dims[3]);
 
   87   ext[0] = (ext[0] < wholeExt[0])? wholeExt[0] : ext[0];
 
   88   ext[1] = (ext[1] > wholeExt[1])? wholeExt[1] : ext[1];
 
   90   ext[2] = (ext[2] < wholeExt[2])? wholeExt[2] : ext[2];
 
   91   ext[3] = (ext[3] > wholeExt[3])? wholeExt[3] : ext[3];
 
   93   ext[4] = (ext[4] < wholeExt[4])? wholeExt[4] : ext[4];
 
   94   ext[5] = (ext[5] > wholeExt[5])? wholeExt[5] : ext[5];
 
  100   if (ext[0]   < wholeExt[0] || ext[0]     > wholeExt[0 + 1] ||
 
  101     ext[0 + 1] < wholeExt[0] || ext[0 + 1] > wholeExt[0 + 1])
 
  106   if (ext[2]   < wholeExt[2] || ext[2]     > wholeExt[2 + 1] ||
 
  107     ext[2 + 1] < wholeExt[2] || ext[2 + 1] > wholeExt[2 + 1])
 
  112   if (ext[4]   < wholeExt[4] || ext[4]     > wholeExt[4 + 1] ||
 
  113     ext[4 + 1] < wholeExt[4] || ext[4 + 1] > wholeExt[4 + 1])
 
  129   if (ext[0] > wholeExt[0] || ext[1] < wholeExt[1] ||
 
  130     ext[2] > wholeExt[2] || ext[3] < wholeExt[3] ||
 
  131     ext[4] > wholeExt[4] || ext[5] < wholeExt[5])
 
  155   ext[0] -= wholeExt[0];
 
  156   ext[1] -= wholeExt[0];
 
  158   ext[2] -= wholeExt[2];
 
  159   ext[3] -= wholeExt[2];
 
  161   ext[4] -= wholeExt[4];
 
  162   ext[5] -= wholeExt[4];
 
  168   dims[0] = ext[1]-ext[0] + 1;
 
  169   dims[1] = ext[3]-ext[2] + 1;
 
  170   dims[2] = ext[5]-ext[4] + 1;
 
static void GetDimensions(const int ext[6], int dims[3])
Given the extents, computes the dimensions. 
 
abstract base class for most VTK objects 
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses. 
 
static bool Smaller(const int ext[6], const int wholeExt[6])
Returns if ext fits within wholeExt. 
 
static void Grow(int ext[6], int count)
Grows the ext on each side by the given count. 
 
a simple class to control print indentation 
 
static bool StrictlySmaller(const int ext[6], const int wholeExt[6])
Returns true if ext is fits within wholeExt with atleast 1 dimension smaller than the wholeExt...
 
helper class to aid working with structured extents. 
 
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
 
static void Transform(int ext[6], int wholeExt[6])
Makes ext relative to wholeExt.