CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbSweepOptions.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 _DbSweepOptions_h_Included_
26#define _DbSweepOptions_h_Included_
27
28#include "TD_PackPush.h"
29#include "DbEntity.h"
30
31
32class OdDbSweepOptionsImpl;
33
41{
42public:
47
52
59
65 OdDbSweepOptions& operator = ( const OdDbSweepOptions& src );
66
73 bool operator == (const OdDbSweepOptions& opt) const;
74
79 {
80 kNoAlignment = 0, //
81 kAlignSweepEntityToPath = 1, //
82 kTranslateSweepEntityToPath = 2, //
83 kTranslatePathToSweepEntity = 3 //
84 };
85
90 {
91 kDefaultMiter = 0,
92 kOldMiter = 1,
93 kNewMiter = 2,
94 kCrimpMiter = 3,
95 kBendMiter = 4
96 };
97
103 double draftAngle () const;
104
113 void setDraftAngle ( double ang );
114
119 double startDraftDist () const;
120
127 void setStartDraftDist ( double val );
128
133 double endDraftDist () const;
134
141 void setEndDraftDist ( double val );
142
148 double twistAngle () const;
149
158 void setTwistAngle ( double ang );
159
163 double scaleFactor () const;
164
170 void setScaleFactor ( double val );
171
175 double alignAngle () const;
176
182 void setAlignAngle ( double ang );
183
188
195
200
207
214 bool alignStart () const;
215
224 void setAlignStart ( bool val );
225
230
236 void setBasePoint ( const OdGePoint3d& pnt );
237
241 bool bank () const;
242
248 void setBank ( bool val );
249
254 bool checkIntersections () const;
255
263 void setCheckIntersections ( bool val );
264
269
275 void setTwistRefVec ( const OdGeVector3d& vec );
276
283
290
299 OdResult setSweepEntityTransform ( OdDbEntityPtrArray& sweepEntities, bool displayErrorMessages = false );
300
309
316
326 OdResult setPathEntityTransform ( OdDbEntity *pPathEnt, bool displayErrorMessages = false );
327
344 OdDb::Planarity& planarity, OdGePoint3d& pnt, OdGeVector3d& vec,
345 bool& closed, double& approxArcLen, bool displayErrorMessages = false );
346
355 OdResult checkPathCurve ( OdDbEntity *pPathEnt, bool displayErrorMessages = false );
356
357private:
358 friend class OdDbSweepOptionsImpl;
359 OdDbSweepOptionsImpl *m_pImpl;
360};
361
362#include "TD_PackPop.h"
363#endif //_DbSweepOptions_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
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