CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbLoftOptions.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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"
31
32class OdDbLoftOptionsImpl;
33
41{
42public:
47
52
57
63 OdDbLoftOptions& operator = (const OdDbLoftOptions& rhs);
64
71 bool operator == (const OdDbLoftOptions& opt) const;
72
77 {
79 kNoNormal = 0,
81 kFirstNormal = 1,
83 kLastNormal = 2,
85 kEndsNormal = 3,
87 kAllNormal = 4,
89 kUseDraftAngles = 5
90 };
91
97 double draftStart() const;
98
106 void setDraftStart(double angle);
107
113 double draftEnd() const;
114
122 void setDraftEnd(double angle);
123
129 double draftStartMag() const;
130
138 void setDraftStartMag(double startMag);
139
146 double draftEndMag() const;
147
156 void setDraftEndMag(double val);
157
161 bool arcLengthParam() const;
162
168 void setArcLengthParam(bool alParam);
169
175 bool noTwist() const;
176
184 void setNoTwist(bool noTwist);
185
193 bool alignDirection() const;
194
204 void setAlignDirection(bool alignDir);
205
212 bool simplify() const;
213
223 void setSimplify(bool simplify);
224
235 bool closed() const;
236
249 void setClosed(bool closed);
250
258 bool ruled() const;
259
269 void setRuled(bool ruled);
270
274 bool virtualGuide() const;
275
281 void setVirtualGuide(bool virtGuide);
282
289
297
306
315
323 OdResult checkOptions(bool displayErrorMessages = false);
324
343 OdDbEntityPtrArray& crossSectionCurves,
344 OdDbEntityPtrArray& guideCurves,
345 OdDbEntity* pPathCurve,
346 bool& allOpen,
347 bool& allClosed,
348 bool& allPlanar,
349 bool displayErrorMessages = false);
350
366 OdDbEntityPtrArray& crossSectionCurves,
367 bool& allOpen,
368 bool& allClosed,
369 bool& allPlanar,
370 bool displayErrorMessages = false);
371
385 bool displayErrorMessages = false);
386
399 bool displayErrorMessages = false);
400
401
402private:
403 friend class OdDbLoftOptionsImpl;
404 OdDbLoftOptionsImpl *m_pImpl;
405};
406
407#include "TD_PackPop.h"
408#endif // _DbLoftOptions_h_Included_
#define DBENT_EXPORT
Definition: DbExport.h:67
bool operator==(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:397
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)