[vtk-developers] 64 Bit Integer Data Array

Sean McBride sean at rogue-research.com
Mon Feb 23 19:56:00 EST 2015

I guess vtk__Int64Array predates vtkTypeInt64Array?  Is there any reason to not deprecate it at this point?


On Mon, 23 Feb 2015 16:45:32 -0700, David Gobbi said:

>vtkTypeInt64Array  with type vtkTypeInt64
>Always 64-bit, and always built on every platform.
>On Mon, Feb 23, 2015 at 4:39 PM, Shawn Waldon <shawn.waldon at kitware.com>
>> Hello all,
>> What is the correct type of vtkDataArray to use for 64 bit integers?  I
>> have a file format that I am reading in that has a 64 bit id and while
>> there seem to be several options, the right one isn't clear.  I would like
>> something that just works across platforms and various builds of VTK
>> without #ifdefs throughout the code.
>> -vtkLongLongArray - long long is at least 64 bits, so I am using this one
>> right now.  But it apparently doesn't exist in a vtk builds?
>> -vtk__Int64Array - this sounds more like what I want since I don't care
>> about the underlying datatype, but this also does not always exist.
>> -directly use the template data array with int64_t?  Will other VTK code
>> handle this well since it is not one of the built-in data array types?
>> -vtkLongArray? - On some platforms long is a 64 bit type, but this is
>> platform dependant.  However, it is what ParaView defaults to when loading
>> data defined as Int64 from a .vtu file on my machine.

More information about the vtk-developers mailing list