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

Method StreamHeader

IO/Geometry/vtkHoudiniPolyDataWriter.cxx:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 void StreamHeader(std::ostream& out) const override
159 {
160 std::string s = this->Array->GetName();
161 std::replace(s.begin(), s.end(), ' ', '_');
162 std::replace(s.begin(), s.end(), '\t', '-');
163
164 AttributeTrait<AttributeId> trait;
165 out << s << " " << this->Array->GetNumberOfComponents() << " " << trait.Name() << " "
166 << trait.Default();
167 for (int i = 1; i < this->Array->GetNumberOfComponents(); i++)
168 {
169 out << " ";
170 AttributeTrait<AttributeId>::Stream(out, trait.Default());
171 }
172 }
173
174 void StreamData(std::ostream& out, vtkIdType index) const override
175 {

Callers 1

HeaderClass · 0.80

Calls 7

replaceFunction · 0.50
GetNameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
GetNumberOfComponentsMethod · 0.45
NameMethod · 0.45
DefaultMethod · 0.45

Tested by

no test coverage detected