#ifdef HAVE_RAPIDJSON
namespace
{
+// Auxiliary macros for formatting message.
+#define reportGltfError(theMsg) reportGltfSyntaxProblem(TCollection_AsciiString() + theMsg, Message_Fail);
+#define reportGltfWarning(theMsg) reportGltfSyntaxProblem(TCollection_AsciiString() + theMsg, Message_Warning);
+
//! Material extension.
static const char THE_KHR_materials_common[] = "KHR_materials_common";
static const char THE_KHR_binary_glTF[] = "KHR_binary_glTF";
}
}
}
-#endif
-
-// Auxiliary macros for formatting message.
-#define reportGltfError(theMsg) reportGltfSyntaxProblem(TCollection_AsciiString() + theMsg, Message_Fail);
-#define reportGltfWarning(theMsg) reportGltfSyntaxProblem(TCollection_AsciiString() + theMsg, Message_Warning);
-
-// =======================================================================
-// function : reportGltfSyntaxProblem
-// purpose :
-// =======================================================================
-void RWGltf_GltfJsonParser::reportGltfSyntaxProblem (const TCollection_AsciiString& theMsg,
- Message_Gravity theGravity) const
-{
- Message::Send (myErrorPrefix + theMsg, theGravity);
-}
// =======================================================================
// function : parseTransformationMatrix
}
return true;
}
+#endif
+
+// =======================================================================
+// function : reportGltfSyntaxProblem
+// purpose :
+// =======================================================================
+void RWGltf_GltfJsonParser::reportGltfSyntaxProblem (const TCollection_AsciiString& theMsg,
+ Message_Gravity theGravity) const
+{
+ Message::Send (myErrorPrefix + theMsg, theGravity);
+}
// =======================================================================
// function : RWGltf_GltfJsonParser
const RWGltf_JsonValue* myRoot;
};
-#endif
-protected:
- //! Print message about invalid glTF syntax.
- void reportGltfSyntaxProblem (const TCollection_AsciiString& theMsg, Message_Gravity theGravity) const;
private:
//! Parse transformation matrix of the node.
const RWGltf_JsonValue* theScaleVal,
const RWGltf_JsonValue* theTranslationVal,
TopLoc_Location& theResult) const;
+#endif
+protected:
+ //! Print message about invalid glTF syntax.
+ void reportGltfSyntaxProblem (const TCollection_AsciiString& theMsg, Message_Gravity theGravity) const;
protected:
TopTools_SequenceOfShape* myRootShapes; //!< sequence of result root shapes