Open CASCADE Technology
7.6.0
|
INTERNAL tool for parsing glTF document (JSON structure). More...
#include <RWGltf_GltfJsonParser.hxx>
Public Member Functions | |
RWGltf_GltfJsonParser (TopTools_SequenceOfShape &theRootShapes) | |
Empty constructor. More... | |
void | SetFilePath (const TCollection_AsciiString &theFilePath) |
Set file path. More... | |
void | SetProbeHeader (bool theToProbe) |
Set flag for probing file without complete reading. More... | |
const TCollection_AsciiString & | ErrorPrefix () const |
Return prefix for reporting issues. More... | |
void | SetErrorPrefix (const TCollection_AsciiString &theErrPrefix) |
Set prefix for reporting issues. More... | |
void | SetAttributeMap (RWMesh_NodeAttributeMap &theAttribMap) |
Set map for storing node attributes. More... | |
void | SetExternalFiles (NCollection_IndexedMap< TCollection_AsciiString > &theExternalFiles) |
Set list for storing external files. More... | |
void | SetMetadata (TColStd_IndexedDataMapOfStringString &theMetadata) |
Set metadata map. More... | |
const RWMesh_CoordinateSystemConverter & | CoordinateSystemConverter () const |
Return transformation from glTF to OCCT coordinate system. More... | |
void | SetCoordinateSystemConverter (const RWMesh_CoordinateSystemConverter &theConverter) |
Set transformation from glTF to OCCT coordinate system. More... | |
void | SetBinaryFormat (int64_t theBinBodyOffset, int64_t theBinBodyLen) |
Initialize binary format. More... | |
void | SetSkipEmptyNodes (bool theToSkip) |
Set flag to ignore nodes without Geometry, TRUE by default. More... | |
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. More... | |
void | SetMeshNameAsFallback (bool theToFallback) |
Set flag to use Mesh name in case if Node name is empty, TRUE by default. More... | |
bool | Parse (const Message_ProgressRange &theProgress) |
Parse glTF document. More... | |
NCollection_Vector< TopoDS_Face > & | FaceList () |
Return face list for loading triangulation. More... | |
Protected Member Functions | |
void | reportGltfSyntaxProblem (const TCollection_AsciiString &theMsg, Message_Gravity theGravity) |
Print message about invalid glTF syntax. More... | |
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 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 |
obsolete glTF 1.0 version format
|
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 |
ignore nodes without Geometry
|
protected |
flag to use Mesh name in case if Node name is empty, TRUE by default