CFx SDK Documentation  2020SP3
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_
OdDbLoftOptions::setArcLengthParam
void setArcLengthParam(bool alParam)
OdDbLoftOptions::noTwist
bool noTwist() const
OdDbLoftOptions::setNoTwist
void setNoTwist(bool noTwist)
OdResult
OdResult
Definition: OdResult.h:29
OdDbDatabase
Definition: DbDatabase.h:421
OdDbLoftOptions::setSimplify
void setSimplify(bool simplify)
OdDbLoftOptions::checkOptions
OdResult checkOptions(bool displayErrorMessages=false)
OdDbLoftOptions::draftStartMag
double draftStartMag() const
OdDbLoftOptions::~OdDbLoftOptions
~OdDbLoftOptions()
OdDbLoftOptions::setRuled
void setRuled(bool ruled)
OdDbLoftOptions::setOptionsFromSysvars
OdResult setOptionsFromSysvars(const OdDbDatabase &pDb)
OdArray< OdDbEntityPtr >
TD_PackPop.h
OdDbLoftOptions::arcLengthParam
bool arcLengthParam() const
OdDbLoftOptions::setAlignDirection
void setAlignDirection(bool alignDir)
OdDbLoftOptions::setVirtualGuide
void setVirtualGuide(bool virtGuide)
OdDbLoftOptions::draftEndMag
double draftEndMag() const
OdDbLoftOptions::checkGuideCurves
OdResult checkGuideCurves(OdDbEntityPtrArray &guideCurves, bool displayErrorMessages=false)
OdDbLoftOptions::draftEnd
double draftEnd() const
OdDbLoftOptions::alignDirection
bool alignDirection() const
ModelerGeometryCreator.h
DbEntity.h
OdDbLoftOptions::OdDbLoftOptions
OdDbLoftOptions()
OdDbLoftOptions::virtualGuide
bool virtualGuide() const
OdDbLoftOptions::setDraftStartMag
void setDraftStartMag(double startMag)
OdDbLoftOptions::setDraftEnd
void setDraftEnd(double angle)
OdDbLoftOptions::NormalOption
NormalOption
Definition: DbLoftOptions.h:69
OdDbLoftOptions::checkCrossSectionCurves
OdResult checkCrossSectionCurves(OdDbEntityPtrArray &crossSectionCurves, bool &allOpen, bool &allClosed, bool &allPlanar, bool displayErrorMessages=false)
TD_PackPush.h
OdDbLoftOptions
Definition: DbLoftOptions.h:41
OdDbLoftOptions::setDraftEndMag
void setDraftEndMag(double val)
OdDbEntity
Definition: DbEntity.h:90
OdDbLoftOptions::checkPathCurve
OdResult checkPathCurve(OdDbEntity *pPathCurve, bool displayErrorMessages=false)
OdDbLoftOptions::draftStart
double draftStart() const
OdDbLoftOptions::simplify
bool simplify() const
OdDbLoftOptions::setDraftStart
void setDraftStart(double angle)
OdDbLoftOptions::setNormal
void setNormal(OdDbLoftOptions::NormalOption option)
OdDbLoftOptions::OdDbLoftOptions
OdDbLoftOptions(const OdDbLoftOptions &src)
OdDbLoftOptions::setSysvarsFromOptions
OdResult setSysvarsFromOptions(OdDbDatabase &pDb)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbLoftOptions::checkLoftCurves
OdResult checkLoftCurves(OdDbEntityPtrArray &crossSectionCurves, OdDbEntityPtrArray &guideCurves, OdDbEntity *pPathCurve, bool &allOpen, bool &allClosed, bool &allPlanar, bool displayErrorMessages=false)
OdDbLoftOptions::closed
bool closed() const
OdDbLoftOptions::normal
OdDbLoftOptions::NormalOption normal() const
OdDbLoftOptions::ruled
bool ruled() const
OdDbLoftOptions::setClosed
void setClosed(bool closed)