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

Method SetDataScalarType

IO/Image/vtkImageReader2.cxx:752–763  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Set the data type of pixels in the file. If you want the output scalar type to have a different value, set it after this method is called.

Source from the content-addressed store, hash-verified

750// If you want the output scalar type to have a different value, set it
751// after this method is called.
752void vtkImageReader2::SetDataScalarType(int type)
753{
754 if (type == this->DataScalarType)
755 {
756 return;
757 }
758
759 this->Modified();
760 this->DataScalarType = type;
761 // Set the default output scalar type
762 vtkImageData::SetScalarType(this->DataScalarType, this->GetOutputInformation(0));
763}
764
765//----------------------------------------------------------------------------
766vtkMTimeType vtkImageReader2::GetMTime()

Calls 2

ModifiedMethod · 0.45
GetOutputInformationMethod · 0.45

Tested by

no test coverage detected