[vtk-developers] 64 Bit Integer Data Array
david.gobbi at gmail.com
Mon Feb 23 18:45:32 EST 2015
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.
> Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtk-developers