|
CFx SDK Documentation 2026 SP0
|
#include <DbFlattenViewsHelper.h>
This class implements wrapper of helper to create flatterned and section geometry by hidden line remover and section modeller.
<group OdDb_Classes>
Definition at line 73 of file DbFlattenViewsHelper.h.
| OdDbFlattenViewsHelper::OdDbFlattenViewsHelper | ( | OdDbDatabase * | pDb | ) |
Constructor of OdDbFlattenViewsHelper.
| pDb | [in] database to initialize defaults for section and flattened view geometry. |
|
virtual |
Destructor of OdDbFlattenViewsHelper.
| OdResult OdDbFlattenViewsHelper::addToBlock | ( | OdDbBlockTableRecord * | pOwner, |
| const OdGeMatrix3d & | matTransform = OdGeMatrix3d::kIdentity ) |
Apply symbology and hatch pattern settings to section and flattened view geometry and add it to block table record.
| pOwner | [in] Pointer to block table record to add section and flattened view geometry. |
| matTransform | [in] Additional transformation to be applied to section and flattened view geometry. |
| OdResult OdDbFlattenViewsHelper::createSectionHLR | ( | bool | bCreateSection, |
| bool | bCreateHiddenLines ) |
Calculate flattened views and section geometry.
| bCreateSection | [in] Use section plane to cut 3d objects and create section hatches. |
| bCreateHiddenLines | [in] Create hidden line geometry. |
| OdDbDatabase * OdDbFlattenViewsHelper::database | ( | ) | const |
Returns database to initialize flattened and section geometry after creation.
| const OdDbHLRCurveProperties & OdDbFlattenViewsHelper::foregroundCurveProperties | ( | ) | const |
Returns visible edges geometry properties.
| const OdArray< OdDbObjectId > & OdDbFlattenViewsHelper::getEntities | ( | ) | const |
Returns array of entity ids to create flattened views and section geometry.
| OdGeExtents3d OdDbFlattenViewsHelper::getExtents | ( | ) | const |
Returns 3d object extents of supported entity ids.
| bool OdDbFlattenViewsHelper::getHiddenLines | ( | OdRxObjectPtrArray & | arrHiddenLines, |
| bool | bSetProperties ) const |
Returns non-dbro hidden line geometry of created by createSectionHLR method flattened view geometry.
| arrHiddenLines | [out] result entities. |
| bSetProperties | [in] set curve properties to hidden geometry. |
| bool OdDbFlattenViewsHelper::getSectionHatches | ( | OdRxObjectPtrArray & | arrHatches, |
| bool | bSetProperties ) const |
Returns non-dbro hatches of created by createSectionHLR method section.
| arrHatches | [out] result entities. |
| bSetProperties | [in] set hatch pattern settings to section hatches. |
| bool OdDbFlattenViewsHelper::getVisibleLines | ( | OdRxObjectPtrArray & | arrVisibleLines, |
| bool | bSetProperties ) const |
Returns non-dbro visible line geometry of created by createSectionHLR method flattened view geometry.
| arrVisibleLines | [out] result entities. |
| bSetProperties | [in] set curve properties to visible geometry. |
| bool OdDbFlattenViewsHelper::includeTangentalEdgesFlag | ( | ) | const |
Returns include tangental edges flag.
| const OdDbHLRCurveProperties & OdDbFlattenViewsHelper::obscuredCurveProperties | ( | ) | const |
Returns hidden edges geometry curve properties.
| OdGePoint3d OdDbFlattenViewsHelper::projectionBase | ( | ) | const |
Returns base point to define section plane.
| OdGeVector3d OdDbFlattenViewsHelper::projectionDirection | ( | ) | const |
Returns normal vector of section plane and direction for flattened view and section creation.
| OdGeVector3d OdDbFlattenViewsHelper::projectionUp | ( | ) | const |
Returns up vector direction for flattened view and section creation.
| const OdDbSectionHatchPatternSettings & OdDbFlattenViewsHelper::sectionHatchSettings | ( | ) | const |
Returns section hatch settings.
| OdResult OdDbFlattenViewsHelper::setEntities | ( | const OdDbObjectIdArray & | arr3dObjects | ) |
Set entities to create flattened and section geometry.
| arr3dObjects | [in] Array of object ids to be used in construction flattened view or section geometry. |
| void OdDbFlattenViewsHelper::setForegroundCurveProperties | ( | const OdDbHLRCurveProperties & | curveProp | ) |
Set visible edges geometry curve properties.
| curveSymb | [in] visible edges curve properties |
| void OdDbFlattenViewsHelper::setIncludeTangentalEdgesFlag | ( | bool | bSet | ) |
Set include tangental edges flag.
| void OdDbFlattenViewsHelper::setObscuredCurveProperties | ( | const OdDbHLRCurveProperties & | curveProp | ) |
Set hidden edges geometry curve properties.
| curveSymb | [in] hidden edges curve properties. |
| OdResult OdDbFlattenViewsHelper::setProjectionPlane | ( | const OdGePoint3d & | ptBase, |
| const OdGeVector3d & | vrDir, | ||
| const OdGeVector3d & | vrUp ) |
Set projection direction and section plane to create flattened and section geometry.
| ptBase | [in] Base point to define section plane. |
| vrDir | [in] Normal vector of section plane and direction for flattened view and section creation. |
| vrUp | [in] Up vector direction for flattened view and section creation. |
| void OdDbFlattenViewsHelper::setSectionHatchSettings | ( | const OdDbSectionHatchPatternSettings & | patternSettings | ) |
Set section hatch settings.
| patternSettings | [in] section hatch settings. |
| void OdDbFlattenViewsHelper::setTangentalEdgesAngle | ( | double | dAngle | ) |
Set tangential edges angle.
| dAngle | [in] The specified angle. |