NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Annotations.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++ 接口到 JA API 的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Annotations.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/DisplayableObject.hxx>
22
#ifdef _MSC_VER
23
#pragma warning(push)
24
#pragma warning(disable:4996)
25
#endif
26
#ifdef __GNUC__
27
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
28
#endif
29
namespace
NXOpen
30
{
31
class
Expression
;
32
namespace
Annotations
33
{
35
enum
TextJustification
36
{
37
TextJustificationLeft
= 1,
38
TextJustificationCenter
,
39
TextJustificationRight
40
};
41
42
enum
VerticalTextJustification
43
{
44
VerticalTextJustificationTop
= 1,
45
VerticalTextJustificationMiddle
,
46
VerticalTextJustificationBottom
47
};
48
49
enum
AlignmentPosition
50
{
51
AlignmentPositionTopLeft
= 1,
52
AlignmentPositionTopCenter
,
53
AlignmentPositionTopRight
,
54
AlignmentPositionMidLeft
,
55
AlignmentPositionMidCenter
,
56
AlignmentPositionMidRight
,
57
AlignmentPositionBottomLeft
,
58
AlignmentPositionBottomCeneter
,
59
AlignmentPositionBottomCenter
= 8,
60
AlignmentPositionBottomRight
61
};
62
63
enum
StackAlignmentPosition
64
{
65
StackAlignmentPositionAbove
,
66
StackAlignmentPositionBelow
,
67
StackAlignmentPositionLeft
,
68
StackAlignmentPositionRight
69
};
70
71
enum
Constants
72
{
73
ConstantsMaxLeaders
= 7,
74
ConstantsMaxLeaderIntermediatePoints
= 7
75
};
76
77
enum
LeaderType
78
{
79
LeaderTypeNull
= -1,
80
LeaderTypePlain
,
81
LeaderTypeAround
,
82
LeaderTypePlainAligned
,
83
LeaderTypeAroundAligned
,
84
LeaderTypeExtension
,
85
LeaderTypeDatumArrow
,
86
LeaderTypeDatumExt
,
87
LeaderTypeDatumDim
,
88
LeaderTypeGbDatumArrow
,
89
LeaderTypeGbDatumExt
,
90
LeaderTypeGbDatumDim
,
91
LeaderTypeOnAnnotation
,
92
LeaderTypeOnStub
,
93
LeaderTypePlainNostub
,
94
LeaderTypeAlignedNostub
,
95
LeaderTypeOnCenterline
,
96
LeaderTypeDatumOnDotTerminatedLeader
,
97
LeaderTypeIdExtension
,
98
LeaderTypeLinearExtension
,
99
LeaderTypeLinearIdExtension
,
100
LeaderTypeAllOver
,
101
LeaderTypeLast
102
};
103
104
enum
LeaderAttachment
105
{
106
LeaderAttachmentNull
= -1,
107
LeaderAttachmentOnObject
,
108
LeaderAttachmentScreen
,
109
LeaderAttachmentLast
110
};
111
112
enum
LeaderSide
113
{
114
LeaderSideNull
= -1,
115
LeaderSideLeft
,
116
LeaderSideRight
,
117
LeaderSideInferred
,
119
LeaderSideLast
120
};
121
123
enum
LeaderAlignment
124
{
125
LeaderAlignmentNull
= -1,
126
LeaderAlignmentTop
,
127
LeaderAlignmentMiddle
,
128
LeaderAlignmentBottom
,
129
LeaderAlignmentTextBottomMax
,
130
LeaderAlignmentTextBottomMaxUnderline
,
131
LeaderAlignmentTextBottom
,
132
LeaderAlignmentTextBottomUnderline
,
133
LeaderAlignmentTextTopMax
,
134
LeaderAlignmentTextTopMaxUnderline
,
135
LeaderAlignmentTextTop
,
136
LeaderAlignmentTextTopUnderline
,
137
LeaderAlignmentLast
138
};
139
140
enum
LeaderOrientation
141
{
142
LeaderOrientationFromLeft
= 1,
143
LeaderOrientationFromRight
,
144
LeaderOrientationFromTop
,
145
LeaderOrientationFromBottom
,
146
LeaderOrientationInferred
147
};
148
149
enum
ArrowheadType
150
{
151
ArrowheadTypeFilledDatumArrow
= -2,
152
ArrowheadTypeFilledDot
,
153
ArrowheadTypeFilledArrow
,
154
ArrowheadTypeClosedArrow
,
155
ArrowheadTypeOpenArrow
,
156
ArrowheadTypeCrossArrow
,
157
ArrowheadTypeDotArrow
,
158
ArrowheadTypeOriginSymbolArrow
,
159
ArrowheadTypeNoArrow
,
160
ArrowheadTypeUnfilledDatumArrow
,
161
ArrowheadTypeClosedSolidArrow
,
162
ArrowheadTypeClosedDoubleArrow
,
163
ArrowheadTypeClosedDoubleSolidArrow
,
164
ArrowheadTypeOpenDoubleArrow
,
165
ArrowheadTypeIntegralArrow
,
166
ArrowheadTypeBoxArrow
,
167
ArrowheadTypeFilledBox
,
168
ArrowheadTypeFilledDoubleArrow
,
169
ArrowheadTypeTopOpenArrow
,
170
ArrowheadTypeBottomOpenArrow
,
171
ArrowheadTypeTopFilledArrow
,
172
ArrowheadTypeBottomFilledArrow
173
};
174
175
enum
AssociativeOriginType
176
{
177
AssociativeOriginTypeDrag
,
178
AssociativeOriginTypeRelativeToView
,
179
AssociativeOriginTypeRelativeToGeometry
,
180
AssociativeOriginTypeVerticallyAligned
,
181
AssociativeOriginTypeHorizontallyAligned
,
182
AssociativeOriginTypeAlignedWithArrows
,
183
AssociativeOriginTypeAtAPoint
,
184
AssociativeOriginTypeOffsetFromText
,
185
AssociativeOriginTypeAttachedToStack
186
};
187
196
enum
LineWidth
197
{
198
LineWidthNormal
= 1,
199
LineWidthThick
,
200
LineWidthThin
,
201
LineWidthOne
= 6,
202
LineWidthTwo
,
203
LineWidthThree
,
204
LineWidthFour
,
205
LineWidthFive
,
206
LineWidthSix
,
207
LineWidthSeven
,
208
LineWidthEight
,
209
LineWidthNine
210
};
211
212
enum
PmiDefaultPlane
213
{
214
PmiDefaultPlaneXyOfWcs
= 1,
215
PmiDefaultPlaneModelView
,
216
PmiDefaultPlaneXzOfWcs
,
217
PmiDefaultPlaneYzOfWcs
,
218
PmiDefaultPlaneLast
= 1000
219
};
220
221
enum
AssociativityPointOption
222
{
223
AssociativityPointOptionNone
,
224
AssociativityPointOptionControl
,
225
AssociativityPointOptionArcCenter
,
226
AssociativityPointOptionTangent
,
227
AssociativityPointOptionIntersection
,
228
AssociativityPointOptionScreenPosition
,
229
AssociativityPointOptionOnCurve
,
230
AssociativityPointOptionPole
,
231
AssociativityPointOptionAnchor
,
232
AssociativityPointOptionDefining
,
233
AssociativityPointOptionLast
234
};
235
236
enum
AssociativityLineOption
237
{
238
AssociativityLineOptionNone
,
239
AssociativityLineOptionExistingLine
,
240
AssociativityLineOptionPointVector
,
241
AssociativityLineOptionExtensionLine
,
242
AssociativityLineOptionCenterline
,
246
AssociativityLineOptionAngle
,
247
AssociativityLineOptionHorizontalRight
,
248
AssociativityLineOptionVerticalUp
,
249
AssociativityLineOptionHorizontalLeft
,
250
AssociativityLineOptionVerticalDown
,
251
AssociativityLineOptionBaseLine
,
252
AssociativityLineOptionLast
253
};
254
255
struct
LineCfw
256
{
257
public
:
int
Color
;
258
public
:
NXOpen::DisplayableObject::ObjectFont
Font
;
259
public
:
NXOpen::Annotations::LineWidth
Width
;
260
public
: LineCfw() :
261
Color
(),
262
Font
((
NXOpen
::
DisplayableObject
::ObjectFont)0),
263
Width
((
NXOpen
::
Annotations
::
LineWidth
)0)
264
{
265
}
267
public
:
LineCfw
(
int
colorInitial ,
268
NXOpen::DisplayableObject::ObjectFont
fontInitial ,
269
NXOpen::Annotations::LineWidth
widthInitial ) :
270
Color
(colorInitial),
271
Font
(fontInitial),
272
Width
(widthInitial)
273
{
274
}
275
};
276
277
struct
TextCfw
278
{
279
public
:
int
Color
;
280
public
:
int
Font
;
282
public
:
NXOpen::Annotations::LineWidth
Width
;
283
public
: TextCfw() :
284
Color
(),
285
Font
(),
286
Width
((
NXOpen
::
Annotations
::
LineWidth
)0)
287
{
288
}
290
public
:
TextCfw
(
int
colorInitial ,
291
int
fontInitial ,
293
NXOpen::Annotations::LineWidth
widthInitial ) :
294
Color
(colorInitial),
295
Font
(fontInitial),
296
Width
(widthInitial)
297
{
298
}
299
};
300
301
struct
Lettering
302
{
303
public
:
double
Size
;
304
public
:
double
CharacterSpaceFactor
;
305
public
:
double
AspectRatio
;
306
public
:
double
LineSpaceFactor
;
307
public
:
NXOpen::Annotations::TextCfw
Cfw
;
308
public
:
bool
Italic
;
309
public
:
double
SymbolAspectRatio
;
315
public
: Lettering() :
316
Size
(),
317
CharacterSpaceFactor
(),
318
AspectRatio
(),
319
LineSpaceFactor
(),
320
Cfw
(),
321
Italic
(),
322
SymbolAspectRatio
()
323
{
324
}
326
public
:
Lettering
(
double
sizeInitial ,
327
double
characterSpaceFactorInitial ,
328
double
aspectRatioInitial ,
329
double
lineSpaceFactorInitial ,
330
const
NXOpen::Annotations::TextCfw
&cfwInitial ,
331
bool
italicInitial ,
332
double
symbolAspectRatioInitial ) :
338
Size
(sizeInitial),
339
CharacterSpaceFactor
(characterSpaceFactorInitial),
340
AspectRatio
(aspectRatioInitial),
341
LineSpaceFactor
(lineSpaceFactorInitial),
342
Cfw
(cfwInitial),
343
Italic
(italicInitial),
344
SymbolAspectRatio
(symbolAspectRatioInitial)
345
{
346
}
347
};
348
349
struct
Value
350
{
351
public
:
double
ItemValue
;
352
public
:
NXOpen::Expression
*
ValueExpression
;
354
public
:
int
ValuePrecision
;
355
public
: Value() :
356
ItemValue
(),
357
ValueExpression
(),
358
ValuePrecision
()
359
{
360
}
362
public
:
Value
(
double
itemValueInitial ,
363
NXOpen::Expression
* valueExpressionInitial ,
364
int
valuePrecisionInitial ) :
365
ItemValue
(itemValueInitial),
366
ValueExpression
(valueExpressionInitial),
367
ValuePrecision
(valuePrecisionInitial)
368
{
369
}
370
};
371
372
enum
StackVerticalAlignment
373
{
374
StackVerticalAlignmentLeft
,
375
StackVerticalAlignmentCenter
,
376
StackVerticalAlignmentRight
377
};
378
379
enum
StackHorizontalAlignment
380
{
381
StackHorizontalAlignmentTop
,
382
StackHorizontalAlignmentMiddle
,
383
StackHorizontalAlignmentBottom
384
};
385
386
enum
AreaFillMaterial
387
{
388
AreaFillMaterialCorkFelt
,
389
AreaFillMaterialSoundInsulation
,
390
AreaFillMaterialConcrete
,
391
AreaFillMaterialEarth
,
392
AreaFillMaterialRock
,
393
AreaFillMaterialSand
,
394
AreaFillMaterialLiquids
,
395
AreaFillMaterialWoodAcrossGrain
,
396
AreaFillMaterialWoodAlongGrain
,
397
AreaFillMaterialSolidFill
398
};
399
400
enum
SurfaceFinishStandard
401
{
402
SurfaceFinishStandardAnsi
,
403
SurfaceFinishStandardIso
,
404
SurfaceFinishStandardJis
,
405
SurfaceFinishStandardDin
,
406
SurfaceFinishStandardIso2002
,
407
SurfaceFinishStandardDin2002
,
408
SurfaceFinishStandardGb
,
409
SurfaceFinishStandardEskd
410
};
411
412
struct
CharacterSpaceFactor
413
{
414
public
:
double
General
;
415
public
:
double
Dimension
;
416
public
:
double
Tolerance
;
417
public
:
double
Appended
;
418
public
: CharacterSpaceFactor() :
419
General
(),
420
Dimension
(),
421
Tolerance
(),
422
Appended
()
423
{
424
}
426
public
:
CharacterSpaceFactor
(
double
generalInitial ,
427
double
dimensionInitial ,
428
double
toleranceInitial ,
429
double
appendedInitial ) :
430
General
(generalInitial),
431
Dimension
(dimensionInitial),
432
Tolerance
(toleranceInitial),
433
Appended
(appendedInitial)
434
{
435
}
436
};
437
438
enum
PmiResizeMethod
439
{
440
PmiResizeMethodViewScale
= 1,
441
PmiResizeMethodZoomFactor
,
442
PmiResizeMethodIndependent
,
443
PmiResizeMethodPartPreferences
444
};
445
446
enum
FrameBarElements
447
{
448
FrameBarElementsAftPerpendicular
,
449
FrameBarElementsForwardPerpendicular
,
450
FrameBarElementsCenterlineY
,
451
FrameBarElementsBaseline
,
452
FrameBarElementsWaterline
,
453
FrameBarElementsTransversalInsertArea
,
454
FrameBarElementsBulkHeads
,
455
FrameBarElementsDecks
,
456
FrameBarElementsTransverseFrames
,
457
FrameBarElementsInterTransverseFrames
,
458
FrameBarElementsLongitudinalYFrames
,
459
FrameBarElementsLongitudinalZFrames
,
460
FrameBarElementsAlongHullBaseline
,
461
FrameBarElementsAlongHullWaterline
,
462
FrameBarElementsAlongHullDecks
,
463
FrameBarElementsAlongHullLongitudinalZFrames
,
464
FrameBarElementsLongitudinalBulkHeads
,
465
FrameBarElementsLongitudinalYInsertFrames
,
466
FrameBarElementsLongitudinalZInsertFrames
,
467
FrameBarElementsAlongHullLongitudinalZInsertFrames
,
468
FrameBarElementsMidship
,
469
FrameBarElementsNum
470
};
471
472
enum
DisplayPmiEffectivityMethod
473
{
474
DisplayPmiEffectivityMethodAllAssocOccLoaded
= 1,
475
DisplayPmiEffectivityMethodAnyAssocOccLoaded
476
};
477
478
enum
JogOrientation
479
{
480
JogOrientationJogIn
= 1,
481
JogOrientationJogOut
482
};
483
484
enum
LeaderVerticalAttachment
485
{
486
LeaderVerticalAttachmentNull
= -1,
487
LeaderVerticalAttachmentTop
,
488
LeaderVerticalAttachmentCenter
,
489
LeaderVerticalAttachmentBottom
,
490
LeaderVerticalAttachmentLegacy
,
491
LeaderVerticalAttachmentLast
492
};
493
494
enum
StubSymbolType
495
{
496
StubSymbolTypeNone
,
497
StubSymbolTypeAllAround
,
498
StubSymbolTypeAllOver
499
};
500
501
enum
BalloonTypes
502
{
503
BalloonTypesCircle
,
504
BalloonTypesDividedCircle
,
505
BalloonTypesTriangleDown
,
506
BalloonTypesTriangleUp
,
507
BalloonTypesSquare
,
508
BalloonTypesDividedSquare
,
509
BalloonTypesHexagon
,
510
BalloonTypesDividedHexagon
,
511
BalloonTypesQuadrantCircle
,
512
BalloonTypesRoundedBox
,
513
BalloonTypesUnderline
,
514
BalloonTypesNosymbol
515
};
516
}
517
}
518
#ifdef _MSC_VER
519
#pragma warning(pop)
520
#endif
521
#ifdef __GNUC__
522
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
523
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
524
#endif
525
#endif