------------------------------------------------------------------------------
| 129 | |
| 130 | //------------------------------------------------------------------------------ |
| 131 | void 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 | //------------------------------------------------------------------------------ |
| 158 | void ProjectElement::ProcessDataFields( |
no test coverage detected