Open CASCADE Technology 7.8.0
|
INTERNAL tool for parsing glTF document (JSON structure). More...
#include <RWGltf_GltfJsonParser.hxx>
Public Member Functions | |
RWGltf_GltfJsonParser (TopTools_SequenceOfShape &theRootShapes) | |
Empty constructor. | |
void | SetFilePath (const TCollection_AsciiString &theFilePath) |
Set file path. | |
void | SetProbeHeader (bool theToProbe) |
Set flag for probing file without complete reading. | |
const TCollection_AsciiString & | ErrorPrefix () const |
Return prefix for reporting issues. | |
void | SetErrorPrefix (const TCollection_AsciiString &theErrPrefix) |
Set prefix for reporting issues. | |
void | SetAttributeMap (RWMesh_NodeAttributeMap &theAttribMap) |
Set map for storing node attributes. | |
void | SetExternalFiles (NCollection_IndexedMap< TCollection_AsciiString > &theExternalFiles) |
Set list for storing external files. | |
void | SetMetadata (TColStd_IndexedDataMapOfStringString &theMetadata) |
Set metadata map. | |
void | SetReadAssetExtras (bool theToRead) |
Set flag to translate asset.extras into metadata. | |
const RWMesh_CoordinateSystemConverter & | CoordinateSystemConverter () const |
Return transformation from glTF to OCCT coordinate system. | |
void | SetCoordinateSystemConverter (const RWMesh_CoordinateSystemConverter &theConverter) |
Set transformation from glTF to OCCT coordinate system. | |
void | SetBinaryFormat (int64_t theBinBodyOffset, int64_t theBinBodyLen) |
Initialize binary format. | |
void | SetSkipEmptyNodes (bool theToSkip) |
Set flag to ignore nodes without Geometry, TRUE by default. | |
void | SetLoadAllScenes (bool theToLoadAll) |
Set flag to flag to load all scenes in the document, FALSE by default which means only main (default) scene will be loaded. | |
void | SetMeshNameAsFallback (bool theToFallback) |
Set flag to use Mesh name in case if Node name is empty, TRUE by default. | |
bool | Parse (const Message_ProgressRange &theProgress) |
Parse glTF document. | |
NCollection_Vector< TopoDS_Face > & | FaceList () |
Return face list for loading triangulation. | |
Protected Member Functions | |
void | reportGltfSyntaxProblem (const TCollection_AsciiString &theMsg, Message_Gravity theGravity) |
Print message about invalid glTF syntax. | |
INTERNAL tool for parsing glTF document (JSON structure).
RWGltf_GltfJsonParser::RWGltf_GltfJsonParser | ( | TopTools_SequenceOfShape & | theRootShapes | ) |
Empty constructor.
|
inline |
Return transformation from glTF to OCCT coordinate system.
|
inline |
Return prefix for reporting issues.
|
inline |
Return face list for loading triangulation.
bool RWGltf_GltfJsonParser::Parse | ( | const Message_ProgressRange & | theProgress | ) |
Parse glTF document.
|
protected |
Print message about invalid glTF syntax.
|
inline |
Set map for storing node attributes.
|
inline |
Initialize binary format.
|
inline |
Set transformation from glTF to OCCT coordinate system.
|
inline |
Set prefix for reporting issues.
|
inline |
Set list for storing external files.
void RWGltf_GltfJsonParser::SetFilePath | ( | const TCollection_AsciiString & | theFilePath | ) |
Set file path.
|
inline |
Set flag to flag to load all scenes in the document, FALSE by default which means only main (default) scene will be loaded.
|
inline |
Set flag to use Mesh name in case if Node name is empty, TRUE by default.
|
inline |
Set metadata map.
|
inline |
Set flag for probing file without complete reading.
|
inline |
Set flag to translate asset.extras into metadata.
|
inline |
Set flag to ignore nodes without Geometry, TRUE by default.
|
protected |
shape attributes
|
protected |
binary body length
|
protected |
offset to binary body
|
protected |
transformation from glTF to OCCT coordinate system
|
protected |
|
protected |
invalid syntax error prefix
|
protected |
list of external file references
|
protected |
face list for loading triangulation
|
protected |
file path
|
protected |
folder
|
protected |
binary document
|
protected |
|
protected |
|
protected |
|
protected |
file metadata
|
protected |
|
protected |
sequence of result root shapes
|
protected |
|
protected |
flag to load all scenes in the document, FALSE by default
|
protected |
flag to probe header without full reading, FALSE by default
|
protected |
flag to translate asset.extras into metadata, TRUE by default
|
protected |
ignore nodes without Geometry
|
protected |
flag to use Mesh name in case if Node name is empty, TRUE by default