CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbFlattenViewsHelper.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _FLATTENEDVIEWSHELPER_DEFINED
25#define _FLATTENEDVIEWSHELPER_DEFINED
26
27#include "DbSectionHLRHelper.h"
28#include "DbHatch.h"
29
46
47//====================================================================================================
48
64
65//====================================================================================================
66
74{
75 public:
82
87
92
104 OdResult setProjectionPlane(const OdGePoint3d& ptBase, const OdGeVector3d& vrDir, const OdGeVector3d& vrUp);
105
110
115
120
125
130
136 void setTangentalEdgesAngle(double dAngle);
137
148
153
158
168 OdResult createSectionHLR(bool bCreateSection, bool bCreateHiddenLines);
169
185
190
197
202
209
214
221
231 bool getSectionHatches(OdRxObjectPtrArray& arrHatches, bool bSetProperties) const;
232
242 bool getHiddenLines(OdRxObjectPtrArray& arrHiddenLines, bool bSetProperties) const;
243
253 bool getVisibleLines(OdRxObjectPtrArray& arrVisibleLines, bool bSetProperties) const;
254
255private:
256 OdDbSectionHLRHelperPtr m_pSectionHLRHelper;
257 OdDbHLRCurveProperties m_foregroundProperties;
258 OdDbHLRCurveProperties m_obscuredProperties;
259 OdDbSectionHatchPatternSettings m_sectionHatchSettings;
260};
261
263
264#endif /* _FLATTENEDVIEWSHELPER_DEFINED */
#define DBENT_EXPORT
Definition DbExport.h:67
OdSmartPtr< OdDbSectionHLRHelper > OdDbSectionHLRHelperPtr
OdArray< OdHatchPatternLine > OdHatchPattern
OdArray< OdDbObjectId, OdClrMemAllocator< OdDbObjectId > > OdDbObjectIdArray
Definition IdArrays.h:53
OdResult
Definition OdResult.h:29
OdArray< OdRxObjectPtr > OdRxObjectPtrArray
Definition RxObject.h:1196
bool includeTangentalEdgesFlag() const
OdResult setEntities(const OdDbObjectIdArray &arr3dObjects)
bool getSectionHatches(OdRxObjectPtrArray &arrHatches, bool bSetProperties) const
bool getVisibleLines(OdRxObjectPtrArray &arrVisibleLines, bool bSetProperties) const
void setTangentalEdgesAngle(double dAngle)
const OdDbHLRCurveProperties & obscuredCurveProperties() const
OdResult createSectionHLR(bool bCreateSection, bool bCreateHiddenLines)
void setForegroundCurveProperties(const OdDbHLRCurveProperties &curveProp)
OdResult setProjectionPlane(const OdGePoint3d &ptBase, const OdGeVector3d &vrDir, const OdGeVector3d &vrUp)
OdResult addToBlock(OdDbBlockTableRecord *pOwner, const OdGeMatrix3d &matTransform=OdGeMatrix3d::kIdentity)
virtual ~OdDbFlattenViewsHelper()
bool getHiddenLines(OdRxObjectPtrArray &arrHiddenLines, bool bSetProperties) const
OdGeExtents3d getExtents() const
const OdDbHLRCurveProperties & foregroundCurveProperties() const
void setSectionHatchSettings(const OdDbSectionHatchPatternSettings &patternSettings)
const OdDbSectionHatchPatternSettings & sectionHatchSettings() const
void setIncludeTangentalEdgesFlag(bool bSet)
OdGePoint3d projectionBase() const
OdDbFlattenViewsHelper(OdDbDatabase *pDb)
OdGeVector3d projectionDirection() const
const OdArray< OdDbObjectId > & getEntities() const
void setObscuredCurveProperties(const OdDbHLRCurveProperties &curveProp)
OdDbDatabase * database() const
OdGeVector3d projectionUp() const
HatchPatternType
Definition DbHatch.h:100
static GE_STATIC_EXPORT const OdGeMatrix3d kIdentity
Definition GeMatrix3d.h:97
LineWeight
Definition OdaDefs.h:386
void applyToEntity(OdDbEntity *pEnt, const OdDbDatabase *pDb) const
OdDbHLRCurveProperties hatchCurveProperties
OdDbHatch::HatchPatternType patternType