| 87 | } |
| 88 | |
| 89 | void OPS_printNDMaterial(OPS_Stream &s, int flag) { |
| 90 | if (flag == OPS_PRINT_PRINTMODEL_JSON) { |
| 91 | s << "\t\t\"ndMaterials\": [\n"; |
| 92 | MapOfTaggedObjectsIter theObjects = theNDMaterialObjects.getIter(); |
| 93 | theObjects.reset(); |
| 94 | TaggedObject *theObject; |
| 95 | int count = 0; |
| 96 | int numComponents = theNDMaterialObjects.getNumComponents(); |
| 97 | while ((theObject = theObjects()) != 0) { |
| 98 | NDMaterial *theMaterial = (NDMaterial *)theObject; |
| 99 | theMaterial->Print(s, flag); |
| 100 | if (count < numComponents - 1) |
| 101 | s << ",\n"; |
| 102 | count++; |
| 103 | } |
| 104 | s << "\n\t\t]"; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | NDMaterial::NDMaterial(int tag, int classTag) |
| 109 | :Material(tag,classTag) |
no test coverage detected