[vtkusers] VTI Read Whole Extent

Kevin H. Hobbs hobbsk at ohiou.edu
Mon Jul 24 16:44:58 EDT 2006


On Mon, 2006-07-24 at 15:59 -0400, Brad King wrote:
> 
> That should work.  Try calling
> 
>   reader->GetOutput()->Print(cout);
> 
> here.  The WholeExtent should be correct.  GetDimensions is failing
> because it returns information about the data currently in memory, not
> what is available.
> 
> -Brad

Yup, there are all sorts of goodies in there, including a correct
WholeExtent. The Doxygen claims that these are just computed from the
extents.  If I GetExtent instead of GetDimensions I get 0 -1 0 -1 0 -1.

vtkImageData (0x514300)
  Debug: Off
  Modified Time: 917
  Reference Count: 1
  Registered Events: (none)
  Source: (none)
  Information: 0x514160
  Data Released: True
  Global Release Data: Off
  UpdateTime: 0
  Release Data: Off
  UpdateExtent: Not Initialized
  UpdateExtent: 0, 1023, 0, 1023, 0, 166
  WholeExtent: 0, 1023, 0, 1023, 0, 166
  ExtentTranslator: (0x516f70)
  RequestExactExtent: Off
   Field Data:
    Debug: Off
    Modified Time: 100
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 0
  Number Of Cells: 0
  Cell Data:
    Debug: Off
    Modified Time: 103
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 )
    Interpolate Flags: ( 1 1 1 1 1 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
  Point Data:
    Debug: Off
    Modified Time: 105
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 )
    Interpolate Flags: ( 1 1 1 1 1 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
  Bounds:
    Xmin,Xmax: (1, -1)
    Ymin,Ymax: (1, -1)
    Zmin,Zmax: (1, -1)
  Compute Time: 0
  ScalarType: 3
  NumberOfScalarComponents: 1
  Spacing: (1, 1, 1)
  Origin: (0, 0, 0)
  Dimensions: (0, 0, 0)
  Increments: (0, 0, 0)
  Extent: (0, -1, 0, -1, 0, -1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060724/8d23e27b/attachment.pgp>


More information about the vtkusers mailing list