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

Method SetCompressionLevel

IO/XML/vtkXMLWriterBase.cxx:131–147  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

129}
130//------------------------------------------------------------------------------
131void vtkXMLWriterBase::SetCompressionLevel(int compressionLevel)
132{
133 constexpr int min = 1;
134 constexpr int max = 9;
135 vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting "
136 << "CompressionLevel to " << compressionLevel);
137 compressionLevel = std::clamp(compressionLevel, min, max);
138 if (this->CompressionLevel != compressionLevel)
139 {
140 this->CompressionLevel = compressionLevel;
141 if (this->Compressor)
142 {
143 this->Compressor->SetCompressionLevel(compressionLevel);
144 }
145 this->Modified();
146 }
147}
148
149//------------------------------------------------------------------------------
150void vtkXMLWriterBase::SetBlockSize(size_t blockSize)

Callers 15

WriteTextureFunction · 0.45
EncodeIntegerDeltaZMethod · 0.45
WriteTextureFunction · 0.45
ImageInfoMethod · 0.45
WriteTextureFunction · 0.45
SetCompressorTypeMethod · 0.45
WriteDataMethod · 0.45
WriteDatasetToFileMethod · 0.45
AppendExternalBlockMethod · 0.45
TestTemporalDataFunction · 0.45

Calls 3

clampFunction · 0.50
GetClassNameMethod · 0.45
ModifiedMethod · 0.45

Tested by 3

TestTemporalDataFunction · 0.36
TestTemporalStaticMeshFunction · 0.36
TestWriteAndReadFunction · 0.36