Reads ACIS files. More...
#include <cadex/ACIS_Reader.hxx>
Public Member Functions | |
ACIS_Reader () | |
Creates an object. | |
bool | ReadMemory (const void *theData, size_t theSize) |
Parses memory buffer containing SAB or SAT file. | |
const ACIS_ReaderParameters & | Parameters () const |
Returns parameters. | |
ACIS_ReaderParameters & | Parameters () |
Sets parameters. | |
![]() | |
~Base_Reader () | |
Destructor. | |
bool | ReadFile (const Base_UTF16String &theFileName) |
Reads the file into memory. | |
bool | ReadFile (std::istream &theStream) |
Reads the file into memory. | |
bool | ReadFile (const std::shared_ptr< Base_IStreamProviderFactory > &theFactory, const Base_UTF16String &theFileName) |
Reads the file into memory. | |
bool | Transfer (ModelData_Model &theModel) |
Converts read file into a resulting model. | |
bool | Transfer (ModelData_BIMModel &theModel) |
Converts read file into a resulting BIM model. | |
bool | Transfer (TopoDS_Shape &theShape) |
Converts read file into a resulting shape. | |
Base_ProgressStatus & | ProgressStatus () const |
Returns a progress status. | |
Base_ReaderStatistics | Statistics () const |
Returns an object containing information about import process. | |
internal::Base_Reader_Private * | Impl () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Additional Inherited Members | |
![]() | |
Base_Reader (internal::Base_Reader_Private *theImpl) | |
Constructor. | |
Reads ACIS files.
Refer to ACIS Converter.
cadex::ACIS_Reader::ACIS_Reader | ( | ) |
Creates an object.
Empty constructor.
bool cadex::ACIS_Reader::ReadMemory | ( | const void * | theData, |
size_t | theSize | ||
) |
Parses memory buffer containing SAB or SAT file.
This syntax is to be used when parsing excerpts from DXF or DWG files containing sections with 3D data written in the ACIS SAT or SAB format. For instance, DXF files may contain encoded SAT file and DWG may contain SAB files.
The method will automatically recognize whether the buffer contains SAT-encoded or SAB contents using the following heuristics:
theSize specifies the size of the buffer.
Returns true if the contents has been successfully recognized and parsed, and false otherwise.