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

Method ProcessJSON

IO/OMF/core/OMFElement.cxx:131–155  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

129
130//------------------------------------------------------------------------------
131void ProjectElement::ProcessJSON(std::shared_ptr<OMFFile>& file, const Json::Value& element,
132 vtkPartitionedDataSet* output, bool writeOutTextures, bool columnMajorOrdering)
133{
134 if (!element.isMember("geometry"))
135 {
136 vtkGenericWarningMacro(<< "geometry was not found for element " << element["name"]);
137 return;
138 }
139 std::string geometry;
140 helper::GetStringValue(element["geometry"], geometry);
141 this->ProcessGeometry(file, geometry, output);
142
143 // optional properties: data and textures
144 this->ProcessDataFields(file, element["data"], output);
145
146 if (columnMajorOrdering)
147 {
148 this->ProcessColumnOrdering(file, element["data"], output);
149 }
150
151 if (writeOutTextures && element.isMember("textures") && !element["textures"].empty())
152 {
153 this->ProcessTextures(file, element["textures"], output, element["name"].asString());
154 }
155}
156
157//------------------------------------------------------------------------------
158void ProjectElement::ProcessDataFields(

Callers 1

RequestDataMethod · 0.45

Calls 8

ProcessDataFieldsMethod · 0.95
ProcessTexturesMethod · 0.95
isMemberMethod · 0.80
ProcessGeometryMethod · 0.80
ProcessColumnOrderingMethod · 0.80
asStringMethod · 0.80
GetStringValueFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected