MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / deserialize

Method deserialize

openpgl/spatial/Region.h:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void deserialize(std::istream &stream)
94 {
95 stream.read(reinterpret_cast<char *>(&valid), sizeof(valid));
96 stream.read(reinterpret_cast<char *>(&initialized), sizeof(initialized));
97 distribution.deserialize(stream);
98 stream.read(reinterpret_cast<char *>(&regionBounds), sizeof(regionBounds));
99 stream.read(reinterpret_cast<char *>(&regionPivot), sizeof(regionPivot));
100 trainingStatistics.deserialize(stream);
101 sampleStatistics.deserialize(stream);
102#ifdef OPENPGL_RADIANCE_CACHES
103 outRadianceHist.deserialize(stream);
104#endif
105 stream.read(reinterpret_cast<char *>(&numZeroValueSamples), sizeof(numZeroValueSamples));
106 stream.read(reinterpret_cast<char *>(&splitFlag), sizeof(splitFlag));
107 }
108
109 bool isValid() const
110 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected