CFx SDK Documentation  2023 SP0
Public Member Functions | Protected Member Functions | List of all members
OdModelerGeometryCreator Class Referenceabstract

#include <ModelerGeometryCreator.h>

Inheritance diagram for OdModelerGeometryCreator:
OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdModelerGeometryCreator)
 
virtual OdResult createModeler (OdArray< OdModelerGeometryPtr > &models, OdStreamBuf *pStreamBuf, bool standardSaveFlag=true)=0
 
virtual OdResult createSat (const OdArray< OdModelerGeometryPtr > &models, OdStreamBuf *pStreamBuf, AfTypeVer typeVer, bool standardSaveFlag=true)=0
 
virtual OdResult createSat (const OdDbEntityPtrArray &entities, OdStreamBuf *pStreamBuf, AfTypeVer typeVer, bool standardSaveFlag=true)=0
 
virtual OdResult createRegionFromCurves (const OdRxObjectPtrArray &curveSegments, OdArray< OdModelerGeometryPtr > &pRegions)=0
 
virtual OdResult initBrepBuilder (OdBrepBuilder &brepBuilder, BrepType brepType)=0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Protected Member Functions

 OdModelerGeometryCreator ()
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This utility class loads and saves SAT/SAB files, and performs other miscellaneous other ACIS-related operations.

Remarks
The functions in this class can do the following: Create OdModelerGeometry instances from a specified input stream. Save SAT/SAB data from an OdModelerGeometry instance. Create region entities from sets of curves.

Corresponding C++ library: ModelerGeometry <group Other_Classes>

Definition at line 51 of file ModelerGeometryCreator.h.

Constructor & Destructor Documentation

◆ OdModelerGeometryCreator()

OdModelerGeometryCreator::OdModelerGeometryCreator ( )
inlineprotected

Definition at line 54 of file ModelerGeometryCreator.h.

Member Function Documentation

◆ createModeler()

virtual OdResult OdModelerGeometryCreator::createModeler ( OdArray< OdModelerGeometryPtr > &  models,
OdStreamBuf pStreamBuf,
bool  standardSaveFlag = true 
)
pure virtual

Creates one or more instances of OdModelerGeometry from the specified SAT/SAB file.

Parameters
models[out] Receives an array of OdModelerGeometry SmartPointers.
pStreamBuf[in] Pointer to the StreamBuf object from which the data are to be read.
standardSaveFlag[in] Controls the saving and restoring of use count data in the save file.
Remarks
Since OdModelerGeometry does not support multi-body SAT files, such files are divided into a set of single body OdModelerGeometry objects

Empty streamBuf generates single element array with empty OdModelerGeometry.

Returns eOk if successful, or an appropriate error code if not.

◆ createRegionFromCurves()

virtual OdResult OdModelerGeometryCreator::createRegionFromCurves ( const OdRxObjectPtrArray curveSegments,
OdArray< OdModelerGeometryPtr > &  pRegions 
)
pure virtual

Creates OdDbRegion entities from the closed loops defined by the specified curve segments.

Parameters
curveSegments[in] Array of curve segments.
pRegions[out] Receives an array of pointers to the regions.
Remarks
Each curve segment must be one of the following

@untitled table OdDb3dPolyline OdDbArc OdDbCircle OdDbEllipse OdDbLine OdDbPolyline OdDbSpline

The newly created regions are non- database -resident. It is up to the caller to either add them to an OdDbDatabase or to delete them.

Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
All curves must be in the same plane. The endpoint of each curve must be equal to the start point of the next curve The endpoint of the last curve must be equal to the start point of the first curve.

◆ createSat() [1/2]

virtual OdResult OdModelerGeometryCreator::createSat ( const OdArray< OdModelerGeometryPtr > &  models,
OdStreamBuf pStreamBuf,
AfTypeVer  typeVer,
bool  standardSaveFlag = true 
)
pure virtual

Creates a single SAT/SAB file from the specified array of objects.

Parameters
models[in] Array of SmartPointers to the OdDbModelerGeometry objects to be written.
pStreamBuf[in] Pointer to the StreamBuf object to which the data are to be written.
typeVer[in] Type and version of ACIS data to write.
standardSaveFlag[in] Controls the saving and restoring of use count data in the save file.

◆ createSat() [2/2]

virtual OdResult OdModelerGeometryCreator::createSat ( const OdDbEntityPtrArray entities,
OdStreamBuf pStreamBuf,
AfTypeVer  typeVer,
bool  standardSaveFlag = true 
)
pure virtual

Creates a single SAT/SAB file from the specified array of objects.

Parameters
entities[in] Array of SmartPointers to the OdDbEntity objects to be written.
pStreamBuf[in] Pointer to the StreamBuf object to which the data are to be written.
typeVer[in] Type and version of ACIS data to write.
standardSaveFlag[in] Controls the saving and restoring of use count data in the save file.
\returns
Returns eOk if successful, or an appropriate error code if not.
\remarks
Color attributes are also added to the SAT/SAB file from the specified OdDbEntity objects. Only the following OdDbEntity types are valid: OdDb3dSolid, OdDbBody, and OdDbRegion/

◆ initBrepBuilder()

virtual OdResult OdModelerGeometryCreator::initBrepBuilder ( OdBrepBuilder brepBuilder,
BrepType  brepType 
)
pure virtual

◆ ODRX_DECLARE_MEMBERS()

OdModelerGeometryCreator::ODRX_DECLARE_MEMBERS ( OdModelerGeometryCreator  )

The documentation for this class was generated from the following file: