CFx SDK Documentation  2020SP3
DbSweepOptions.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
25 #ifndef _DbSweepOptions_h_Included_
26 #define _DbSweepOptions_h_Included_
27 
28 #include "TD_PackPush.h"
29 #include "DbEntity.h"
30 
31 
32 class OdDbSweepOptionsImpl;
33 
41 {
42 public:
47 
52 
59 
65  OdDbSweepOptions& operator = ( const OdDbSweepOptions& src );
66 
71  {
72  kNoAlignment = 0, //
73  kAlignSweepEntityToPath = 1, //
74  kTranslateSweepEntityToPath = 2, //
75  kTranslatePathToSweepEntity = 3 //
76  };
77 
82  {
83  kDefaultMiter = 0,
84  kOldMiter = 1,
85  kNewMiter = 2,
86  kCrimpMiter = 3,
87  kBendMiter = 4
88  };
89 
95  double draftAngle () const;
96 
105  void setDraftAngle ( double ang );
106 
111  double startDraftDist () const;
112 
119  void setStartDraftDist ( double val );
120 
125  double endDraftDist () const;
126 
133  void setEndDraftDist ( double val );
134 
140  double twistAngle () const;
141 
150  void setTwistAngle ( double ang );
151 
155  double scaleFactor () const;
156 
162  void setScaleFactor ( double val );
163 
167  double alignAngle () const;
168 
174  void setAlignAngle ( double ang );
175 
180 
187 
192 
199 
206  bool alignStart () const;
207 
216  void setAlignStart ( bool val );
217 
222 
228  void setBasePoint ( const OdGePoint3d& pnt );
229 
233  bool bank () const;
234 
240  void setBank ( bool val );
241 
246  bool checkIntersections () const;
247 
255  void setCheckIntersections ( bool val );
256 
261 
267  void setTwistRefVec ( const OdGeVector3d& vec );
268 
275 
281  void setSweepEntityTransform ( const OdGeMatrix3d& mat );
282 
291  OdResult setSweepEntityTransform ( OdDbEntityPtrArray& sweepEntities, bool displayErrorMessages = false );
292 
301 
307  void setPathEntityTransform ( const OdGeMatrix3d& mat );
308 
318  OdResult setPathEntityTransform ( OdDbEntity *pPathEnt, bool displayErrorMessages = false );
319 
336  OdDb::Planarity& planarity, OdGePoint3d& pnt, OdGeVector3d& vec,
337  bool& closed, double& approxArcLen, bool displayErrorMessages = false );
338 
347  OdResult checkPathCurve ( OdDbEntity *pPathEnt, bool displayErrorMessages = false );
348 
349 private:
350  friend class OdDbSweepOptionsImpl;
351  OdDbSweepOptionsImpl *m_pImpl;
352 };
353 
354 #include "TD_PackPop.h"
355 #endif //_DbSweepOptions_h_Included_
OdDbSweepOptions::scaleFactor
double scaleFactor() const
OdResult
OdResult
Definition: OdResult.h:29
OdGeVector3d
Definition: GeVector3d.h:54
OdDbSweepOptions::setPathEntityTransform
void setPathEntityTransform(const OdGeMatrix3d &mat)
OdDbSweepOptions::bank
bool bank() const
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
OdDbSweepOptions::align
OdDbSweepOptions::AlignOption align() const
OdDbSweepOptions::setAlignStart
void setAlignStart(bool val)
OdDbSweepOptions::~OdDbSweepOptions
~OdDbSweepOptions()
OdArray< OdDbEntityPtr >
OdDbSweepOptions::setSweepEntityTransform
OdResult setSweepEntityTransform(OdDbEntityPtrArray &sweepEntities, bool displayErrorMessages=false)
TD_PackPop.h
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbSweepOptions::OdDbSweepOptions
OdDbSweepOptions()
OdDbSweepOptions::checkIntersections
bool checkIntersections() const
OdDbSweepOptions::setEndDraftDist
void setEndDraftDist(double val)
OdDbSweepOptions::checkPathCurve
OdResult checkPathCurve(OdDbEntity *pPathEnt, bool displayErrorMessages=false)
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDbSweepOptions::setMiterOption
void setMiterOption(OdDbSweepOptions::MiterOption val)
OdDbSweepOptions::twistAngle
double twistAngle() const
OdDbSweepOptions::setAlign
void setAlign(OdDbSweepOptions::AlignOption val)
OdDbSweepOptions::OdDbSweepOptions
OdDbSweepOptions(const OdDbSweepOptions &src)
OdDbSweepOptions::endDraftDist
double endDraftDist() const
OdDbSweepOptions::setBasePoint
void setBasePoint(const OdGePoint3d &pnt)
OdDbSweepOptions::checkSweepCurve
OdResult checkSweepCurve(OdDbEntity *pSweepEnt, OdDb::Planarity &planarity, OdGePoint3d &pnt, OdGeVector3d &vec, bool &closed, double &approxArcLen, bool displayErrorMessages=false)
OdDbSweepOptions::setAlignAngle
void setAlignAngle(double ang)
TD_PackPush.h
OdDbSweepOptions::AlignOption
AlignOption
Definition: DbSweepOptions.h:71
OdDbSweepOptions::getPathEntityTransform
bool getPathEntityTransform(OdGeMatrix3d &mat) const
OdDbSweepOptions::setTwistRefVec
void setTwistRefVec(const OdGeVector3d &vec)
OdDbSweepOptions::alignStart
bool alignStart() const
OdDbSweepOptions::twistRefVec
OdGeVector3d twistRefVec() const
OdDbSweepOptions::setDraftAngle
void setDraftAngle(double ang)
OdDbEntity
Definition: DbEntity.h:90
OdDbSweepOptions::basePoint
OdGePoint3d basePoint() const
OdDbSweepOptions::setBank
void setBank(bool val)
OdDbSweepOptions::alignAngle
double alignAngle() const
OdDbSweepOptions::setCheckIntersections
void setCheckIntersections(bool val)
OdDbSweepOptions::draftAngle
double draftAngle() const
OdDbSweepOptions::setScaleFactor
void setScaleFactor(double val)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbSweepOptions::miterOption
OdDbSweepOptions::MiterOption miterOption() const
OdDbSweepOptions::startDraftDist
double startDraftDist() const
OdDbSweepOptions
Definition: DbSweepOptions.h:41
OdDbSweepOptions::setPathEntityTransform
OdResult setPathEntityTransform(OdDbEntity *pPathEnt, bool displayErrorMessages=false)
OdDbSweepOptions::getSweepEntityTransform
bool getSweepEntityTransform(OdGeMatrix3d &mat) const
OdDbSweepOptions::setTwistAngle
void setTwistAngle(double ang)
OdDbSweepOptions::setStartDraftDist
void setStartDraftDist(double val)
OdDbSweepOptions::MiterOption
MiterOption
Definition: DbSweepOptions.h:82
OdDbSweepOptions::setSweepEntityTransform
void setSweepEntityTransform(const OdGeMatrix3d &mat)