CFx SDK Documentation  2023 SP0
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_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdResult
Definition: OdResult.h:29
void setDraftAngle(double ang)
void setBasePoint(const OdGePoint3d &pnt)
void setSweepEntityTransform(const OdGeMatrix3d &mat)
void setAlignAngle(double ang)
OdResult setSweepEntityTransform(OdDbEntityPtrArray &sweepEntities, bool displayErrorMessages=false)
double endDraftDist() const
void setEndDraftDist(double val)
double draftAngle() const
void setPathEntityTransform(const OdGeMatrix3d &mat)
bool getPathEntityTransform(OdGeMatrix3d &mat) const
OdDbSweepOptions(const OdDbSweepOptions &src)
void setCheckIntersections(bool val)
void setScaleFactor(double val)
double twistAngle() const
bool bank() const
void setAlignStart(bool val)
bool checkIntersections() const
void setTwistRefVec(const OdGeVector3d &vec)
void setAlign(OdDbSweepOptions::AlignOption val)
OdDbSweepOptions::MiterOption miterOption() const
double scaleFactor() const
OdGePoint3d basePoint() const
void setStartDraftDist(double val)
OdGeVector3d twistRefVec() const
void setMiterOption(OdDbSweepOptions::MiterOption val)
OdResult setPathEntityTransform(OdDbEntity *pPathEnt, bool displayErrorMessages=false)
double alignAngle() const
void setBank(bool val)
void setTwistAngle(double ang)
bool alignStart() const
OdResult checkPathCurve(OdDbEntity *pPathEnt, bool displayErrorMessages=false)
OdResult checkSweepCurve(OdDbEntity *pSweepEnt, OdDb::Planarity &planarity, OdGePoint3d &pnt, OdGeVector3d &vec, bool &closed, double &approxArcLen, bool displayErrorMessages=false)
OdDbSweepOptions::AlignOption align() const
bool getSweepEntityTransform(OdGeMatrix3d &mat) const
double startDraftDist() const
Planarity
Definition: DbEntity.h:74