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

Method CopyInformationToPipeline

Common/DataModel/vtkImageData.cxx:117–128  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

115
116//------------------------------------------------------------------------------
117void vtkImageData::CopyInformationToPipeline(vtkInformation* info)
118{
119 // Let the superclass copy information to the pipeline.
120 this->Superclass::CopyInformationToPipeline(info);
121
122 // Copy the spacing, origin, direction, and scalar info
123 info->Set(vtkDataObject::SPACING(), this->Spacing, 3);
124 info->Set(vtkDataObject::ORIGIN(), this->Origin, 3);
125 info->Set(vtkDataObject::DIRECTION(), this->DirectionMatrix->GetData(), 9);
126 vtkDataObject::SetPointDataActiveScalarInfo(
127 info, this->GetScalarType(), this->GetNumberOfScalarComponents());
128}
129
130//------------------------------------------------------------------------------
131// Graphics filters reallocate every execute. Image filters try to reuse

Callers 1

Calls 4

SetMethod · 0.45
GetDataMethod · 0.45
GetScalarTypeMethod · 0.45

Tested by

no test coverage detected