CFx SDK Documentation  2022 SP0
DbLoftOptions.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 _DbLoftOptions_h_Included_
26 #define _DbLoftOptions_h_Included_
27 
28 #include "TD_PackPush.h"
29 #include "DbEntity.h"
30 #include "ModelerGeometryCreator.h"
31 
32 class OdDbLoftOptionsImpl;
33 
41 {
42 public:
47 
52 
57 
63  OdDbLoftOptions& operator = (const OdDbLoftOptions& rhs);
64 
69  {
71  kNoNormal = 0,
73  kFirstNormal = 1,
75  kLastNormal = 2,
77  kEndsNormal = 3,
79  kAllNormal = 4,
81  kUseDraftAngles = 5
82  };
83 
89  double draftStart() const;
90 
98  void setDraftStart(double angle);
99 
105  double draftEnd() const;
106 
114  void setDraftEnd(double angle);
115 
121  double draftStartMag() const;
122 
130  void setDraftStartMag(double startMag);
131 
138  double draftEndMag() const;
139 
148  void setDraftEndMag(double val);
149 
153  bool arcLengthParam() const;
154 
160  void setArcLengthParam(bool alParam);
161 
167  bool noTwist() const;
168 
176  void setNoTwist(bool noTwist);
177 
185  bool alignDirection() const;
186 
196  void setAlignDirection(bool alignDir);
197 
204  bool simplify() const;
205 
215  void setSimplify(bool simplify);
216 
227  bool closed() const;
228 
241  void setClosed(bool closed);
242 
250  bool ruled() const;
251 
261  void setRuled(bool ruled);
262 
266  bool virtualGuide() const;
267 
273  void setVirtualGuide(bool virtGuide);
274 
281 
289 
298 
307 
315  OdResult checkOptions(bool displayErrorMessages = false);
316 
335  OdDbEntityPtrArray& crossSectionCurves,
336  OdDbEntityPtrArray& guideCurves,
337  OdDbEntity* pPathCurve,
338  bool& allOpen,
339  bool& allClosed,
340  bool& allPlanar,
341  bool displayErrorMessages = false);
342 
358  OdDbEntityPtrArray& crossSectionCurves,
359  bool& allOpen,
360  bool& allClosed,
361  bool& allPlanar,
362  bool displayErrorMessages = false);
363 
377  bool displayErrorMessages = false);
378 
391  bool displayErrorMessages = false);
392 
393 
394 private:
395  friend class OdDbLoftOptionsImpl;
396  OdDbLoftOptionsImpl *m_pImpl;
397 };
398 
399 #include "TD_PackPop.h"
400 #endif // _DbLoftOptions_h_Included_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdResult
Definition: OdResult.h:29
OdResult checkLoftCurves(OdDbEntityPtrArray &crossSectionCurves, OdDbEntityPtrArray &guideCurves, OdDbEntity *pPathCurve, bool &allOpen, bool &allClosed, bool &allPlanar, bool displayErrorMessages=false)
void setNoTwist(bool noTwist)
double draftStart() const
void setClosed(bool closed)
OdResult checkOptions(bool displayErrorMessages=false)
void setDraftStartMag(double startMag)
void setSimplify(bool simplify)
OdResult checkCrossSectionCurves(OdDbEntityPtrArray &crossSectionCurves, bool &allOpen, bool &allClosed, bool &allPlanar, bool displayErrorMessages=false)
OdDbLoftOptions::NormalOption normal() const
void setDraftEndMag(double val)
void setRuled(bool ruled)
bool arcLengthParam() const
bool ruled() const
void setVirtualGuide(bool virtGuide)
double draftStartMag() const
OdResult setSysvarsFromOptions(OdDbDatabase &pDb)
void setAlignDirection(bool alignDir)
OdResult setOptionsFromSysvars(const OdDbDatabase &pDb)
OdResult checkPathCurve(OdDbEntity *pPathCurve, bool displayErrorMessages=false)
double draftEndMag() const
void setDraftEnd(double angle)
bool noTwist() const
void setArcLengthParam(bool alParam)
bool simplify() const
double draftEnd() const
bool closed() const
bool alignDirection() const
bool virtualGuide() const
OdDbLoftOptions(const OdDbLoftOptions &src)
OdResult checkGuideCurves(OdDbEntityPtrArray &guideCurves, bool displayErrorMessages=false)
void setNormal(OdDbLoftOptions::NormalOption option)
void setDraftStart(double angle)