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

Method Clean

IO/Image/vtkTIFFReader.cxx:177–206  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

175
176//------------------------------------------------------------------------------
177void vtkTIFFReader::vtkTIFFReaderInternal::Clean()
178{
179 if (this->Image)
180 {
181 TIFFClose(this->Image);
182 this->Image = nullptr;
183 }
184 this->Width = 0;
185 this->Height = 0;
186 this->SamplesPerPixel = 0;
187 this->Compression = 0;
188 this->BitsPerSample = 0;
189 this->Photometrics = 0;
190 this->HasValidPhotometricInterpretation = false;
191 this->PlanarConfig = 0;
192 this->TileDepth = 0;
193 this->CurrentPage = 0;
194 this->NumberOfPages = 0;
195 this->NumberOfTiles = 0;
196 this->TileRows = 0;
197 this->TileColumns = 0;
198 this->TileWidth = 0;
199 this->TileHeight = 0;
200 this->XResolution = 1;
201 this->YResolution = 1;
202 this->SubFiles = 0;
203 this->SampleFormat = 1;
204 this->ResolutionUnit = 1; // none
205 this->IsOpen = false;
206}
207
208//------------------------------------------------------------------------------
209vtkTIFFReader::vtkTIFFReaderInternal::vtkTIFFReaderInternal()

Callers 4

OpenMethod · 0.95
vtkTIFFReaderInternalMethod · 0.95
ProcessMethod · 0.45
CanReadFileMethod · 0.45

Calls 1

TIFFCloseFunction · 0.85

Tested by

no test coverage detected