![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
INTERNAL tool for parsing glTF document (JSON structure). More...
#include <RWGltf_GltfJsonParser.hxx>
Public Member Functions | |
| RWGltf_GltfJsonParser (NCollection_Sequence< TopoDS_Shape > &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 (NCollection_DataMap< TopoDS_Shape, RWMesh_NodeAttributes, TopTools_ShapeMapHasher > &theAttribMap) |
| Set map for storing node attributes. | |
| void | SetScaleMap (NCollection_DataMap< TopoDS_Shape, gp_XYZ, TopTools_ShapeMapHasher > &theScaleMap) |
| Set map for storing non-uniform scalings. | |
| void | SetExternalFiles (NCollection_IndexedMap< TCollection_AsciiString > &theExternalFiles) |
| Set list for storing external files. | |
| void | SetMetadata (NCollection_IndexedDataMap< TCollection_AsciiString, TCollection_AsciiString > &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. | |
| void | SetToApplyScale (bool theToApplyScale) |
| Set flag to apply non-uniform scaling directly to the triangulation (modify nodes). TRUE by default. In case of FALSE the average scale is applied to the transformation matrix. | |
| bool | Parse (const Message_ProgressRange &theProgress) |
| Parse glTF document. | |
| NCollection_DynamicArray< TopoDS_Face > & | FaceList () |
| Return face list for loading triangulation. | |
| void | SetStream (std::shared_ptr< std::istream > &theStream) |
| Set inpit stream. | |
Protected Member Functions | |
| void | reportGltfSyntaxProblem (const TCollection_AsciiString &theMsg, Message_Gravity theGravity) const |
| Print message about invalid glTF syntax. | |
INTERNAL tool for parsing glTF document (JSON structure).
| RWGltf_GltfJsonParser::RWGltf_GltfJsonParser | ( | NCollection_Sequence< TopoDS_Shape > & | 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.
Set flag to flag to load all scenes in the document, FALSE by default which means only main (default) scene will be loaded.
Set flag to use Mesh name in case if Node name is empty, TRUE by default.
|
inline |
Set metadata map.
Set flag for probing file without complete reading.
Set flag to translate asset.extras into metadata.
|
inline |
Set map for storing non-uniform scalings.
Set flag to ignore nodes without Geometry, TRUE by default.
|
inline |
Set inpit stream.
Set flag to apply non-uniform scaling directly to the triangulation (modify nodes). TRUE by default. In case of FALSE the average scale is applied to the transformation matrix.
|
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 |
map of shapes with non-uniform scalings
|
mutableprotected |
input stream
|
protected |
flag to apply non-uniform scaling
|
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