NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
MeasureElement.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口至JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// MeasureElement.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/MeasureManager.hxx>
22
#include <NXOpen/TransientObject.hxx>
23
#include <NXOpen/ugmath.hxx>
24
#include <NXOpen/libnxopencpp_exports.hxx>
25
#ifdef _MSC_VER
26
#pragma warning(push)
27
#pragma warning(disable:4996)
28
#endif
29
#ifdef __GNUC__
30
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31
#endif
32
namespace
NXOpen
33
{
34
class
MeasureElement
;
35
namespace
Annotations
36
{
37
class
Annotation
;
38
}
39
class
Expression
;
40
class
NXObject
;
41
class
ScCollector
;
42
namespace
Validate
43
{
44
class
RequirementCheck
;
45
}
46
class
MeasureElementImpl;
50
class
NXOPENCPPEXPORT
MeasureElement
:
public
NXOpen::TransientObject
51
{
53
public
:
enum
Measure
54
{
55
MeasureObject
,
56
MeasurePoint
,
57
MeasureVector
,
58
MeasureCsys
59
};
60
61
public
:
enum
Type
62
{
63
TypeLength
,
64
TypeCurve
,
65
TypeDistance
,
66
TypeProjectedDistance
,
67
TypeFace
,
68
TypeAngle
,
69
TypeThreePntAngle
,
70
TypeBody
,
71
TypeThickness
,
72
TypePoint
,
73
TypeEulerAngle
,
74
TypeExtremePoint
,
75
TypePolarAngle
,
76
TypePolarArea
,
77
TypePolarRadius
,
78
TypeSurfaceCenterline
,
79
TypeBoundingBox
,
80
TypeSectionInertia
,
81
TypeCircleThreePnt
,
82
TypeUndefined
83
};
84
private
:
MeasureElementImpl
* m_measureelement_impl;
86
public
:
explicit
MeasureElement
(
void
*ptr);
88
91
public
:
NXOpen::MeasureElement::Measure
MeasureObject1
92
(
93
);
97
public
:
void
SetMeasureObject1
98
(
99
NXOpen::MeasureElement::Measure
measureObject
100
);
104
public
:
NXOpen::MeasureElement::Measure
MeasureObject2
105
(
106
);
110
public
:
void
SetMeasureObject2
111
(
112
NXOpen::MeasureElement::Measure
measureObject
113
);
117
public
:
bool
SingleSelect1
118
(
119
);
123
public
:
void
SetSingleSelect1
124
(
125
bool
singleSelect
126
);
130
public
:
bool
SingleSelect2
131
(
132
);
136
public
:
void
SetSingleSelect2
137
(
138
bool
singleSelect
139
);
143
public
:
bool
GetExpressionState
144
(
145
int
outputIndex
146
);
150
public
:
void
SetExpressionState
151
(
152
int
outputIndex ,
153
bool
state
154
);
158
public
:
bool
GetGeometryState
159
(
160
int
outputIndex
161
);
165
public
:
void
SetGeometryState
166
(
167
int
outputIndex ,
168
bool
state
169
);
173
public
:
bool
GetAnnotationState
174
(
175
int
outputIndex
176
);
180
public
:
void
SetAnnotationState
181
(
182
int
outputIndex ,
183
bool
state
184
);
188
public
:
bool
GetApproximateState
189
(
190
int
outputIndex
191
);
195
public
:
void
SetApproximateState
196
(
197
int
outputIndex ,
198
bool
state
199
);
203
public
:
int
AlternateSolution
204
(
205
);
209
public
:
void
SetAlternateSolution
210
(
211
int
alternateSolution
212
);
216
public
:
NXOpen::Annotations::Annotation
*
CreateAnnotation
217
(
218
);
222
public
:
void
EditAnnotation
223
(
224
);
228
public
:
void
CreateGeometry
229
(
230
);
234
public
:
void
UpdateRequirements
235
(
236
NXOpen::Validate::RequirementCheck
* requirementCheck ,
237
int
outputIndex
238
);
242
public
:
NXOpen::Annotations::Annotation
*
ShowAnnotation
243
(
244
);
248
public
:
virtual
~MeasureElement
();
252
public
:
void
HideAnnotation
253
(
254
);
258
public
:
void
ShowGeometry
259
(
260
);
264
public
:
void
HideGeometry
265
(
266
);
270
public
:
void
SetAnnotationPosition
271
(
272
const
NXOpen::Point3d
& position
273
);
277
public
:
int
SelectionIntent1
278
(
279
);
283
public
:
void
SetSelectionIntent1
284
(
285
int
selectionIntent
286
);
290
public
:
int
SelectionIntent2
291
(
292
);
296
public
:
void
SetSelectionIntent2
297
(
298
int
selectionIntent
299
);
303
public
:
void
SetGwifPosition
304
(
305
const
NXOpen::Point3d
& position
306
);
310
public
:
void
GetMeasureElementExpressions
311
(
312
std::vector<NXOpen::Expression *> & expsTag
313
);
317
public
:
void
GetMeasureElementExpressionsType
318
(
319
std::vector<NXString> & expsType
320
);
324
public
:
NXOpen::ScCollector
*
GetMeasureElementCollector1
325
(
326
);
330
public
:
NXOpen::ScCollector
*
GetMeasureElementCollector2
331
(
332
);
336
public
:
void
GetExtraObjects1
337
(
338
std::vector<NXOpen::NXObject *> & extraObjects1
339
);
343
public
:
void
GetExtraObjects2
344
(
345
std::vector<NXOpen::NXObject *> & extraObjects2
346
);
350
public
:
void
SetMeasureElementAccuracy
351
(
352
double
accuracy
353
);
357
public
:
double
GetMeasureElementAccuracy
358
(
359
);
363
public
:
void
ClearCache
364
(
365
);
370
public
:
void
CreateIndividualPointExpressions
371
(
372
int
expIndex
373
);
378
public
:
void
CreateSpecialExpressions
379
(
380
NXOpen::NXObject
* expTag1 ,
381
NXOpen::NXObject
* expTag2 ,
382
NXOpen::NXObject
* unitTag
383
);
388
public
:
NXOpen::MeasureElement::Type
GetMeasureType
389
(
390
);
391
};
//lint !e1712 default constructor not defined for class
392
}
393
#ifdef _MSC_VER
394
#pragma warning(pop)
395
#endif
396
#ifdef __GNUC__
397
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
398
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
399
#endif
400
#endif
401
#undef EXPORTLIBRARY