![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
The Vrml mesh reader into XDE document. More...
#include <VrmlAPI_CafReader.hxx>

Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
| typedef void | base_type |
| Returns a type descriptor about this object. | |
Public Member Functions inherited from RWMesh_CafReader | |
| RWMesh_CafReader () | |
| Empty constructor. | |
| ~RWMesh_CafReader () override | |
| Destructor. | |
| const occ::handle< TDocStd_Document > & | Document () const |
| Return target document. | |
| void | SetDocument (const occ::handle< TDocStd_Document > &theDoc) |
| Set target document. Set system length unit according to the units of the document. | |
| const TCollection_AsciiString & | RootPrefix () const |
| Return prefix for generating root labels names. | |
| void | SetRootPrefix (const TCollection_AsciiString &theRootPrefix) |
| Set prefix for generating root labels names. | |
| bool | ToFillIncompleteDocument () const |
| Flag indicating if partially read file content should be put into the XDE document, TRUE by default. | |
| void | SetFillIncompleteDocument (bool theToFillIncomplete) |
| Set flag allowing partially read file content to be put into the XDE document. | |
| int | MemoryLimitMiB () const |
| Return memory usage limit in MiB, -1 by default which means no limit. | |
| void | SetMemoryLimitMiB (int theLimitMiB) |
| Set memory usage limit in MiB; can be ignored by reader implementation! | |
| const RWMesh_CoordinateSystemConverter & | CoordinateSystemConverter () const |
| Return coordinate system converter. | |
| void | SetCoordinateSystemConverter (const RWMesh_CoordinateSystemConverter &theConverter) |
| Set coordinate system converter. | |
| double | SystemLengthUnit () const |
| Return the length unit to convert into while reading the file, defined as scale factor for m (meters); -1.0 by default, which means that NO conversion will be applied. | |
| void | SetSystemLengthUnit (double theUnits) |
| Set system length units to convert into while reading the file, defined as scale factor for m (meters). | |
| bool | HasSystemCoordinateSystem () const |
| Return TRUE if system coordinate system has been defined; FALSE by default. | |
| const gp_Ax3 & | SystemCoordinateSystem () const |
| Return system coordinate system; UNDEFINED by default, which means that no conversion will be done. | |
| void | SetSystemCoordinateSystem (const gp_Ax3 &theCS) |
| Set system origin coordinate system to perform conversion into during read. | |
| void | SetSystemCoordinateSystem (RWMesh_CoordinateSystem theCS) |
| Set system origin coordinate system to perform conversion into during read. | |
| double | FileLengthUnit () const |
| Return the length unit to convert from while reading the file, defined as scale factor for m (meters). Can be undefined (-1.0) if file format is unitless. | |
| void | SetFileLengthUnit (double theUnits) |
| Set (override) file length units to convert from while reading the file, defined as scale factor for m (meters). | |
| bool | HasFileCoordinateSystem () const |
| Return TRUE if file origin coordinate system has been defined. | |
| const gp_Ax3 & | FileCoordinateSystem () const |
| Return file origin coordinate system; can be UNDEFINED, which means no conversion will be done. | |
| void | SetFileCoordinateSystem (const gp_Ax3 &theCS) |
| Set (override) file origin coordinate system to perform conversion during read. | |
| void | SetFileCoordinateSystem (RWMesh_CoordinateSystem theCS) |
| Set (override) file origin coordinate system to perform conversion during read. | |
| bool | Perform (const TCollection_AsciiString &theFile, const Message_ProgressRange &theProgress) |
| Open stream and pass it to Perform method. The Document instance should be set beforehand. | |
| bool | Perform (std::istream &theStream, const Message_ProgressRange &theProgress, const TCollection_AsciiString &theFile="") |
| Read the data from specified file. | |
| int | ExtraStatus () const |
| Return extended status flags. | |
| TopoDS_Shape | SingleShape () const |
| Return result as a single shape. | |
| const NCollection_IndexedMap< TCollection_AsciiString > & | ExternalFiles () const |
| Return the list of complementary files - external references (textures, data, etc.). | |
| const NCollection_IndexedDataMap< TCollection_AsciiString, TCollection_AsciiString > & | Metadata () const |
| Return metadata map. | |
| bool | ProbeHeader (const TCollection_AsciiString &theFile, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Open stream and pass it to ProbeHeader method. | |
| bool | ProbeHeader (std::istream &theStream, const TCollection_AsciiString &theFile="", const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Read the header data from specified file without reading entire model. The main purpose is collecting metadata and external references - for copying model into a new location, for example. Can be NOT implemented (unsupported by format / reader). | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. | |
| virtual | ~Standard_Transient ()=default |
| Destructor must be virtual. | |
| virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object. | |
| bool | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type. | |
| bool | IsInstance (const char *const theTypeName) const |
| Returns a true value if this is an instance of TypeName. | |
| bool | 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. | |
| bool | IsKind (const char *const 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. | |
| 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. | |
| int | GetRefCount () const noexcept |
| Get the reference counter of this object. | |
| void | IncrementRefCounter () noexcept |
| Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations. | |
| int | DecrementRefCounter () noexcept |
| Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement. | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. | |
Static Public Member Functions inherited from Standard_Transient | |
| static constexpr const char * | get_type_name () |
| Returns a type descriptor about this object. | |
| static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
| Returns type descriptor of Standard_Transient class. | |
Static Protected Member Functions inherited from RWMesh_CafReader | |
| static TCollection_AsciiString | shapeTypeToString (TopAbs_ShapeEnum theType) |
| Return shape type as string. | |
Protected Attributes inherited from RWMesh_CafReader | |
| occ::handle< TDocStd_Document > | myXdeDoc |
| target document | |
| NCollection_IndexedDataMap< TCollection_AsciiString, TCollection_AsciiString > | myMetadata |
| metadata map | |
| NCollection_IndexedMap< TCollection_AsciiString > | myExternalFiles |
| the list of complementary files - external references (textures, data, etc.) | |
| TCollection_AsciiString | myRootPrefix |
| root folder for generating root labels names | |
| NCollection_Sequence< TopoDS_Shape > | myRootShapes |
| sequence of result root shapes | |
| NCollection_DataMap< TopoDS_Shape, RWMesh_NodeAttributes, TopTools_ShapeMapHasher > | myAttribMap |
| map of per-shape attributes | |
| RWMesh_CoordinateSystemConverter | myCoordSysConverter |
| coordinate system converter | |
| bool | myToFillDoc |
| fill document from shape sequence | |
| bool | myToFillIncomplete |
| fill the document with partially retrieved data even if reader has failed with error | |
| int | myMemoryLimitMiB |
| memory usage limit | |
| int | myExtraStatus |
| extra status bitmask | |
The Vrml mesh reader into XDE document.
|
overrideprotectedvirtual |
Read the mesh data from specified file.
| theStream | input stream |
| theFile | path of additional files |
| theProgress | progress indicator |
| theToProbe | flag for probing file without complete reading. Not supported. |
Implements RWMesh_CafReader.