NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Tooling_InsertTextBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口到JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Tooling_InsertTextBuilder.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_TextBuilder.hxx>
23
#include <NXOpen/Builder.hxx>
24
#include <NXOpen/ScCollector.hxx>
25
#include <NXOpen/ugmath.hxx>
26
#include <NXOpen/libnxopencpp_tooling_exports.hxx>
27
#ifdef _MSC_VER
28
#pragma warning(push)
29
#pragma warning(disable:4996)
30
#endif
31
#ifdef __GNUC__
32
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33
#endif
34
namespace
NXOpen
35
{
36
namespace
Tooling
37
{
38
class
InsertTextBuilder
;
39
}
40
class
Builder
;
41
class
Edge
;
42
class
Expression
;
43
class
Face
;
44
class
Group
;
45
class
NXColor
;
46
class
NXObject
;
47
class
ScCollector
;
48
namespace
Tooling
49
{
50
class
_InsertTextBuilderBuilder;
51
class
InsertTextBuilderImpl;
64
class
NXOPENCPP_TOOLINGEXPORT InsertTextBuilder :
public
NXOpen::Builder
65
{
67
public
:
enum
InsertType
68
{
69
InsertTypeThroughPoint
,
70
InsertTypeThroughHole
71
};
72
73
public
:
enum
TextBoundaryType
74
{
75
TextBoundaryTypeNone
,
76
TextBoundaryTypeSlot
,
77
TextBoundaryTypeRectangle
78
};
79
80
public
:
enum
NumberDirectionOption
81
{
82
NumberDirectionOptionAlongXAxis
,
83
NumberDirectionOptionAlongYAxis
84
};
85
86
public
:
enum
TextPositionOption
87
{
88
TextPositionOptionTopLeft
,
89
TextPositionOptionTopCenter
,
90
TextPositionOptionTopRight
,
91
TextPositionOptionMiddleLeft
,
92
TextPositionOptionMiddleRight
,
93
TextPositionOptionBottomLeft
,
94
TextPositionOptionBottomCenter
,
95
TextPositionOptionBottomRight
96
};
97
private
:
InsertTextBuilderImpl
* m_inserttextbuilder_impl;
98
private
:
friend
class
_InsertTextBuilderBuilder;
99
protected
:
InsertTextBuilder
();
100
public
:
~InsertTextBuilder
();
104
public
:
NXOpen::Tooling::InsertTextBuilder::InsertType
InsertTextType
105
(
106
);
110
public
:
void
SetInsertTextType
111
(
112
NXOpen::Tooling::InsertTextBuilder::InsertType
insertType
113
);
117
public
:
NXOpen::ScCollector
*
SelectFace
118
(
119
);
123
public
:
NXOpen::ScCollector
*
SelectHoleEdges
124
(
125
);
129
public
:
NXString
TextRule
130
(
131
);
135
public
:
void
SetTextRule
136
(
137
const
NXString
& textRule
138
);
142
void
SetTextRule
143
(
144
const
char
* textRule
145
);
149
public
:
NXString
FontName
150
(
151
);
155
public
:
void
SetFontName
156
(
157
const
NXString
& fontName
158
);
162
void
SetFontName
163
(
164
const
char
* fontName
165
);
169
public
:
NXOpen::Features::TextBuilder::ScriptOptions
GetScript
170
(
171
);
175
public
:
void
SetScript
176
(
177
NXOpen::Features::TextBuilder::ScriptOptions
script
178
);
182
public
:
NXOpen::Tooling::InsertTextBuilder::TextPositionOption
TextPosition
183
(
184
);
188
public
:
void
SetTextPosition
189
(
190
NXOpen::Tooling::InsertTextBuilder::TextPositionOption
plateTextPosition
191
);
195
public
:
NXOpen::Tooling::InsertTextBuilder::NumberDirectionOption
NumberingDirection
196
(
197
);
201
public
:
void
SetNumberingDirection
202
(
203
NXOpen::Tooling::InsertTextBuilder::NumberDirectionOption
numberingDirection
204
);
208
public
:
NXOpen::Expression
*
FontHeight
209
(
210
);
214
public
:
NXOpen::Expression
*
TextLength
215
(
216
);
220
public
:
double
TextWScale
221
(
222
);
226
public
:
void
SetTextWScale
227
(
228
double
wScale
229
);
233
public
:
bool
LockAspectRatio
234
(
235
);
239
public
:
void
SetLockAspectRatio
240
(
241
bool
lockAspectRatio
242
);
246
public
:
NXOpen::Expression
*
TextShear
247
(
248
);
252
public
:
NXOpen::Expression
*
Offset
253
(
254
);
258
public
:
NXOpen::Expression
*
NumberingWidth
259
(
260
);
264
public
:
NXOpen::NXColor
*
TextColor
265
(
266
);
270
public
:
void
SetTextColor
271
(
272
NXOpen::NXColor
* textColor
273
);
277
public
:
NXOpen::Tooling::InsertTextBuilder::TextBoundaryType
BoundaryType
278
(
279
);
283
public
:
void
SetBoundaryType
284
(
285
NXOpen::Tooling::InsertTextBuilder::TextBoundaryType
boundaryType
286
);
290
public
:
NXOpen::Expression
*
BoundingDepth
291
(
292
);
296
public
:
NXOpen::Expression
*
LetteringDepth
297
(
298
);
302
public
:
NXOpen::NXColor
*
BoundaryColor
303
(
304
);
308
public
:
void
SetBoundaryColor
309
(
310
NXOpen::NXColor
* boundaryColor
311
);
315
public
:
int
TextLayer
316
(
317
);
321
public
:
void
SetTextLayer
322
(
323
int
textLayer
324
);
328
public
:
bool
CreateEmbossedText
329
(
330
);
334
public
:
void
SetCreateEmbossedText
335
(
336
bool
createEmbossedText
337
);
341
public
:
bool
CreateVShapeText
342
(
343
);
347
public
:
void
SetCreateVShapeText
348
(
349
bool
createVShapeText
350
);
354
public
:
bool
CreateComponentText
355
(
356
);
360
public
:
void
SetCreateComponentText
361
(
362
bool
createComponentText
363
);
367
public
:
NXOpen::Expression
*
ComponentTextHeight
368
(
369
);
373
public
:
NXOpen::Point3d
CsysOrigin
374
(
375
);
379
public
:
void
SetCsysOrigin
380
(
381
const
NXOpen::Point3d
& origin
382
);
386
public
:
NXOpen::Matrix3x3
CsysMatrix
387
(
388
);
392
public
:
void
SetCsysMatrix
393
(
394
const
NXOpen::Matrix3x3
& matrix
395
);
399
public
:
void
UpdateTextPreview
400
(
401
NXOpen::NXObject
* udoTag
402
);
406
public
:
NXOpen::Group
*
UpdateTextLocation
407
(
408
NXOpen::NXObject
* objectTag ,
409
const
NXOpen::Vector3d
& moveVector ,
410
int
currentHandle ,
411
double
angle
412
);
416
public
:
NXString
CreateNewTextUDO
417
(
418
NXOpen::Face
* faceTag ,
419
const
NXString
& attribute ,
420
NXOpen::NXObject
** udoTag
421
);
425
NXString
CreateNewTextUDO
426
(
427
NXOpen::Face
* faceTag ,
428
const
char
* attribute ,
429
NXOpen::NXObject
** udoTag
430
);
434
public
:
void
SetTextUDOAttributeName
435
(
436
NXOpen::NXObject
* udoTag ,
437
const
NXString
& attributeNmae
438
);
442
void
SetTextUDOAttributeName
443
(
444
NXOpen::NXObject
* udoTag ,
445
const
char
* attributeNmae
446
);
450
public
:
void
SetTextUDODefaultText
451
(
452
NXOpen::NXObject
* udoTag ,
453
const
NXString
& text ,
454
bool
previewText
455
);
459
void
SetTextUDODefaultText
460
(
461
NXOpen::NXObject
* udoTag ,
462
const
char
* text ,
463
bool
previewText
464
);
468
public
:
void
SetTextUDOStartNumber
469
(
470
NXOpen::NXObject
* udoTag ,
471
const
NXString
& numberStr ,
472
bool
previewText
473
);
477
void
SetTextUDOStartNumber
478
(
479
NXOpen::NXObject
* udoTag ,
480
const
char
* numberStr ,
481
bool
previewText
482
);
487
public
:
NX_DEPRECATED
(
"在NX2007.0.0中已弃用。 请使用 JA_TOOLING_INSERT_TEXT_BUILDER_UpdateTextUDOClientData 代替。"
) void UpdateTextUDOClientUIData
488
(
489
NXOpen
::
NXObject
* udoTag ,
490
int
index
491
);
495
public:
void
UpdateTextUDOClientData
496
(
497
int
index ,
498
bool
previewText
499
);
503
public:
void
AddOrRemoveUDOSelectedHole
504
(
505
NXOpen
::
NXObject
* udoTag ,
506
NXOpen
::
Edge
* holeEdge ,
507
bool
isAdding
508
);
512
public:
void
SetSelectedAttributesTreeNodes
513
(
514
const std::vector<
NXOpen
::
NXObject
*> & nodeTags
515
);
519
public:
NXOpen
::
Matrix3x3
GetTextAnchorPointMatrix
520
(
521
NXOpen
::
NXObject
* objectTag ,
522
NXOpen
::
Point3d
* origin
523
);
527
public:
void
DeleteTexts
528
(
529
const std::vector<
NXOpen
::
Edge
*> & holeEdges
530
);
534
public:
void
SetLastSelectedFace
535
(
536
NXOpen
::
Face
* faceTag
537
);
541
public:
void
RecordFaceHolesData
542
(
543
NXOpen
::
Face
* faceTag ,
544
bool
recordAllHoles ,
545
NXOpen
::
Edge
* holeEdge ,
546
bool
isAdding
547
);
551
public:
void
SetEditFeatureGroup
552
(
553
NXOpen
::
NXObject
* featureGroup
554
);
558
public:
void
ImplementInitFromUDO
559
(
560
);
564
public:
void
SetSingleTextUDO
565
(
566
NXOpen
::
NXObject
* udoTag
567
);
571
public:
void
CleanUpRedundantData
572
(
573
);
577
public:
void
DeleteUselessTextUDOs
578
(
579
);
580
};
581
}
582
}
583
#ifdef _MSC_VER
584
#pragma warning(pop)
585
#endif
586
#ifdef __GNUC__
587
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
588
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
589
#endif
590
#endif
591
#undef EXPORTLIBRARY