NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Features_FitCurveBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口到JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Features_FitCurveBuilder.ja
9
//
10
// 生成方式:
11
// apiwrap
12
//
13
// 警告:
14
// 此文件自动生成 - 请勿手动编辑
15
//
16
#pragma once
17
#include <NXOpen/NXDeprecation.hxx>
18
#include <vector>
19
#include <NXOpen/NXString.hxx>
20
#include <NXOpen/Callback.hxx>
21
#include <NXOpen/Expression.hxx>
22
#include <NXOpen/Features_GeometricConstraintDataManager.hxx>
23
#include <NXOpen/GeometricUtilities_CurveExtensionBuilder.hxx>
24
#include <NXOpen/Features_FeatureBuilder.hxx>
25
#include <NXOpen/SelectObject.hxx>
26
#include <NXOpen/SelectObjectList.hxx>
27
#include <NXOpen/libnxopencpp_features_exports.hxx>
28
#ifdef _MSC_VER
29
#pragma warning(push)
30
#pragma warning(disable:4996)
31
#endif
32
#ifdef __GNUC__
33
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34
#endif
35
namespace
NXOpen
36
{
37
namespace
Features
38
{
39
class
FitCurveBuilder
;
40
}
41
class
Direction
;
42
class
Expression
;
43
namespace
Features
44
{
45
class
FeatureBuilder
;
46
}
47
namespace
Features
48
{
49
class
GeometricConstraintDataManager
;
50
}
51
namespace
GeometricUtilities
52
{
53
class
CurveExtensionBuilder
;
54
}
55
class
Point
;
56
class
SelectSpline
;
57
class
SelectTaggedObjectList
;
58
namespace
Features
59
{
60
class
_FitCurveBuilderBuilder;
61
class
FitCurveBuilderImpl;
97
class
NXOPENCPP_FEATURESEXPORT FitCurveBuilder :
public
NXOpen::Features::FeatureBuilder
98
{
100
public
:
enum
Types
101
{
102
TypesFitSpline
,
103
TypesFitLine
,
104
TypesFitCircle
,
105
TypesFitEllipse
106
};
107
108
public
:
enum
TargetSourceTypes
109
{
110
TargetSourceTypesInfer
,
111
TargetSourceTypesSpecifiedPoints
,
112
TargetSourceTypesChainedPoints
,
113
TargetSourceTypesCurve
,
114
TargetSourceTypesFace
,
115
TargetSourceTypesFacetBody
116
};
117
118
public
:
enum
ProjectionDirectionOptions
119
{
120
ProjectionDirectionOptionsXc
,
121
ProjectionDirectionOptionsYc
,
122
ProjectionDirectionOptionsZc
,
123
ProjectionDirectionOptionsNormal
,
124
ProjectionDirectionOptionsView
,
125
ProjectionDirectionOptionsVector
126
};
127
128
public
:
enum
FittingParametersOptions
129
{
130
FittingParametersOptionsDegreeAndSegments
,
131
FittingParametersOptionsDegreeAndTolerance
,
132
FittingParametersOptionsTemplateCurve
133
};
134
private
:
FitCurveBuilderImpl
* m_fitcurvebuilder_impl;
135
private
:
friend
class
_FitCurveBuilderBuilder;
136
protected
:
FitCurveBuilder
();
137
public
:
~FitCurveBuilder
();
141
public
:
NXOpen::Features::FitCurveBuilder::Types
Type
142
(
143
);
147
public
:
void
SetType
148
(
149
NXOpen::Features::FitCurveBuilder::Types
type
150
);
154
public
:
NXOpen::Features::FitCurveBuilder::TargetSourceTypes
TargetSourceType
155
(
156
);
160
public
:
void
SetTargetSourceType
161
(
162
NXOpen::Features::FitCurveBuilder::TargetSourceTypes
targetSourceType
163
);
167
public
:
NXOpen::SelectTaggedObjectList
*
Target
168
(
169
);
173
public
:
bool
CanUseAllPointsInPart
174
(
175
);
179
public
:
void
SetCanUseAllPointsInPart
180
(
181
bool
canUseAllPointsInPart
182
);
186
public
:
NXOpen::Features::GeometricConstraintDataManager
*
ConstraintManager
187
(
188
);
192
public
:
NXOpen::Features::FitCurveBuilder::ProjectionDirectionOptions
ProjectionDirectionOption
193
(
194
);
198
public
:
void
SetProjectionDirectionOption
199
(
200
NXOpen::Features::FitCurveBuilder::ProjectionDirectionOptions
projectionDirectionOption
201
);
205
public
:
NXOpen::Direction
*
ProjectionDirection
206
(
207
);
211
public
:
void
SetProjectionDirection
212
(
213
NXOpen::Direction
* projectionDirection
214
);
218
public
:
bool
HasRadius
219
(
220
);
224
public
:
void
SetHasRadius
225
(
226
bool
hasRadius
227
);
231
public
:
NXOpen::Expression
*
Radius
232
(
233
);
237
public
:
bool
IsClosedCurve
238
(
239
);
243
public
:
void
SetClosedCurve
244
(
245
bool
isClosed
246
);
250
public
:
NXOpen::Features::FitCurveBuilder::FittingParametersOptions
FittingParameters
251
(
252
);
256
public
:
void
SetFittingParameters
257
(
258
NXOpen::Features::FitCurveBuilder::FittingParametersOptions
fittingParameters
259
);
263
public
:
int
Degree
264
(
265
);
269
public
:
void
SetDegree
270
(
271
int
degree
272
);
276
public
:
int
Segments
277
(
278
);
282
public
:
void
SetSegments
283
(
284
int
segments
285
);
289
public
:
double
Tolerance
290
(
291
);
295
public
:
void
SetTolerance
296
(
297
double
tolerance
298
);
302
public
:
NXOpen::SelectSpline
*
TemplateCurve
303
(
304
);
308
public
:
bool
CanKeepTemplateSelected
309
(
310
);
314
public
:
void
SetCanKeepTemplateSelected
315
(
316
bool
canKeepTemplateSelected
317
);
321
public
:
bool
IsClosedBSpline
322
(
323
);
327
public
:
void
SetClosedBSpline
328
(
329
bool
isClosed
330
);
334
public
:
bool
HasUniformSegments
335
(
336
);
340
public
:
void
SetHasUniformSegments
341
(
342
bool
hasUniformSegments
343
);
347
public
:
bool
HasReversedDirection
348
(
349
);
353
public
:
void
SetHasReversedDirection
354
(
355
bool
hasReversedDirection
356
);
360
public
:
NXOpen::GeometricUtilities::CurveExtensionBuilder
*
Extender
361
(
362
);
366
public
:
bool
CanRejectPointsAutomatically
367
(
368
);
372
public
:
void
SetCanRejectPointsAutomatically
373
(
374
bool
rejectPoints
375
);
379
public
:
NXOpen::Expression
*
RejectionThreshold
380
(
381
);
385
public
:
bool
IsAssociative
386
(
387
);
391
public
:
void
SetAssociative
392
(
393
bool
associative
394
);
399
public
:
void
ChainAllPoints
400
(
401
);
405
public
:
int
GetFinalTargetPointsSize
406
(
407
);
411
public
:
NXOpen::Point
*
GetFinalTargetPoint
412
(
413
int
index
414
);
418
public
:
void
MakeConstraint
419
(
420
NXOpen::Point
* point
421
);
425
public
:
void
RemoveConstraint
426
(
427
NXOpen::Point
* point
428
);
432
public
:
void
DeleteTargetPoints
433
(
434
const
std::vector<NXOpen::Point *> & points
435
);
439
public
:
void
Evaluate
440
(
441
);
448
public
:
void
UpdateTargetSelectionOnPointEditing
449
(
450
);
451
};
452
}
453
}
454
#ifdef _MSC_VER
455
#pragma warning(pop)
456
#endif
457
#ifdef __GNUC__
458
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
459
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
460
#endif
461
#endif
462
#undef EXPORTLIBRARY