MCPcopy Create free account
hub / github.com/Kitware/VTK / GetScalarPointer

Method GetScalarPointer

Common/DataModel/vtkImageData.cxx:944–947  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This Method returns a pointer to a location in the vtkImageData. Coordinates are in pixel units and are relative to the whole image origin.

Source from the content-addressed store, hash-verified

942// Coordinates are in pixel units and are relative to the whole
943// image origin.
944void* vtkImageData::GetScalarPointer(int x, int y, int z)
945{
946 return this->GetArrayPointer(this->GetPointData()->GetScalars(), x, y, z);
947}
948
949//------------------------------------------------------------------------------
950// This Method returns a pointer to a location in the vtkImageData.

Callers 15

WriteDataMethod · 0.80
RGB2YCbCrMethod · 0.80
WriteMethod · 0.80
WriteTextureMethod · 0.80
SetSpritePointMethod · 0.80
WriteFileMethod · 0.80
vtkImageWriter.cxxFile · 0.80
WriteMethod · 0.80
WriteSliceMethod · 0.80
WriteFileMethod · 0.80

Calls 4

GetArrayPointerMethod · 0.95
GetScalarsMethod · 0.45
GetPointDataMethod · 0.45
GetVoidPointerMethod · 0.45

Tested by 15

SetSpritePointMethod · 0.64
SetSpritePointMethod · 0.64
TestHistogram2DFunction · 0.64
MakeImageFunction · 0.64
TestThreadedCopyFunction · 0.64
MakeVolumeFunction · 0.64
MakeVolumeFunction · 0.64
TestMemkindDataFunction · 0.64