Open CASCADE Technology
7.5.0
|
Interface for reading primitive array from glTF buffer. More...
#include <RWGltf_PrimitiveArrayReader.hxx>
Public Member Functions | |
RWGltf_PrimitiveArrayReader () | |
Constructor. More... | |
const TCollection_AsciiString & | ErrorPrefix () const |
Return prefix for reporting issues. More... | |
void | SetErrorPrefix (const TCollection_AsciiString &theErrPrefix) |
Set prefix for reporting issues. 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... | |
Handle< Poly_Triangulation > | Load (const Handle< RWGltf_GltfLatePrimitiveArray > &theMesh) |
Load primitive array. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual void | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
Protected Member Functions | |
virtual void | reset ()=0 |
Reset cache before loading primitive array. More... | |
virtual bool | load (const Handle< RWGltf_GltfLatePrimitiveArray > &theMesh) |
Load primitive array. More... | |
virtual Handle< Poly_Triangulation > | result ()=0 |
Return result primitive array. More... | |
virtual bool | readBuffer (std::istream &theStream, const TCollection_AsciiString &theName, const RWGltf_GltfAccessor &theAccessor, RWGltf_GltfArrayType theType, RWGltf_GltfPrimitiveMode theMode)=0 |
Read primitive array data. More... | |
virtual void | reportError (const TCollection_AsciiString &theText) |
Report error. More... | |
Protected Attributes | |
TCollection_AsciiString | myErrorPrefix |
RWGltf_GltfSharedIStream | mySharedStream |
RWMesh_CoordinateSystemConverter | myCoordSysConverter |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
Static Public Member Functions inherited from Standard_Transient | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
Interface for reading primitive array from glTF buffer.
|
inline |
Constructor.
|
inline |
Return transformation from glTF to OCCT coordinate system.
|
inline |
Return prefix for reporting issues.
|
inline |
Load primitive array.
|
protectedvirtual |
Load primitive array.
|
protectedpure virtual |
Read primitive array data.
theStream | input stream to read from |
theName | entity name for logging errors |
theAccessor | buffer accessor |
theType | array type |
theMode | primitive mode |
Implemented in RWGltf_TriangulationReader.
|
protectedvirtual |
Report error.
|
protectedpure virtual |
Reset cache before loading primitive array.
Implemented in RWGltf_TriangulationReader.
|
protectedpure virtual |
Return result primitive array.
Implemented in RWGltf_TriangulationReader.
|
inline |
Set transformation from glTF to OCCT coordinate system.
|
inline |
Set prefix for reporting issues.
|
protected |
|
protected |
|
protected |