NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Features_TextBuilder.hxx
1
//--------------------------------------------------------------------------
2
// 版权所有 2024 Siemens
3
//--------------------------------------------------------------------------
4
// JA API C++接口的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Features_TextBuilder.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/GeometricUtilities_FrameOnPathBuilder.hxx>
23
#include <NXOpen/GeometricUtilities_RectangularFrameBuilder.hxx>
24
#include <NXOpen/Features_FeatureBuilder.hxx>
25
#include <NXOpen/ScCollector.hxx>
26
#include <NXOpen/Section.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
TextBuilder
;
40
}
41
class
Direction
;
42
class
Expression
;
43
namespace
Features
44
{
45
class
FeatureBuilder
;
46
}
47
namespace
GeometricUtilities
48
{
49
class
FrameOnPathBuilder
;
50
}
51
namespace
GeometricUtilities
52
{
53
class
RectangularFrameBuilder
;
54
}
55
class
Plane
;
56
class
ScCollector
;
57
class
Section
;
58
namespace
Features
59
{
60
class
_TextBuilderBuilder;
61
class
TextBuilderImpl;
130
class
NXOPENCPP_FEATURESEXPORT TextBuilder :
public
NXOpen::Features::FeatureBuilder
131
{
133
public
:
enum
Types
134
{
135
TypesPlanar
,
136
TypesOnCurve
,
137
TypesOnFace
138
};
139
140
public
:
enum
OnFacePlacementMethodOptions
141
{
142
OnFacePlacementMethodOptionsCurvesOnFaces
,
143
OnFacePlacementMethodOptionsSectionPlane
144
};
145
146
public
:
enum
OrientationMethodOptions
147
{
148
OrientationMethodOptionsNatural
,
149
OrientationMethodOptionsVector
150
};
151
152
public
:
enum
ScriptOptions
153
{
154
ScriptOptionsOther
,
155
ScriptOptionsWestern
,
156
ScriptOptionsBaltic
,
157
ScriptOptionsChineseBig5
,
158
ScriptOptionsCentralEuropean
,
159
ScriptOptionsGb2312
,
160
ScriptOptionsGreek
,
161
ScriptOptionsHangul
,
162
ScriptOptionsMac
,
163
ScriptOptionsOem
,
164
ScriptOptionsCyrillic
,
165
ScriptOptionsShiftJIS
,
166
ScriptOptionsSymbol
,
167
ScriptOptionsTurkish
,
168
ScriptOptionsVietnamese
,
169
ScriptOptionsJohab
,
170
ScriptOptionsArabic
,
171
ScriptOptionsHebrew
,
172
ScriptOptionsThai
173
};
174
175
public
:
enum
FontStyleOptions
176
{
177
FontStyleOptionsRegular
,
178
FontStyleOptionsItalic
,
179
FontStyleOptionsBold
,
180
FontStyleOptionsBoldItalic
181
};
182
private
:
TextBuilderImpl
* m_textbuilder_impl;
183
private
:
friend
class
_TextBuilderBuilder;
184
protected
:
TextBuilder
();
185
public
:
~TextBuilder
();
189
public
:
NXOpen::Section
*
OnCurvePlacementProfile
190
(
191
);
195
public
:
NXOpen::ScCollector
*
PlacementFaces
196
(
197
);
201
public
:
NXOpen::Features::TextBuilder::OnFacePlacementMethodOptions
OnFacePlacementMethod
202
(
203
);
207
public
:
void
SetOnFacePlacementMethod
208
(
209
NXOpen::Features::TextBuilder::OnFacePlacementMethodOptions
placementMethod
210
);
214
public
:
NXOpen::Section
*
OnFacePlacementProfile
215
(
216
);
220
public
:
NXOpen::Plane
*
SectionPlane
221
(
222
);
226
public
:
void
SetSectionPlane
227
(
228
NXOpen::Plane
* sectionPlane
229
);
233
public
:
bool
CanReverseIntersectionCurve
234
(
235
);
239
public
:
void
SetCanReverseIntersectionCurve
240
(
241
bool
canReverse
242
);
246
public
:
NXOpen::Features::TextBuilder::OrientationMethodOptions
OrientationMethod
247
(
248
);
252
public
:
void
SetOrientationMethod
253
(
254
NXOpen::Features::TextBuilder::OrientationMethodOptions
orientationMethod
255
);
259
public
:
NXOpen::Direction
*
OrientationVector
260
(
261
);
265
public
:
void
SetOrientationVector
266
(
267
NXOpen::Direction
* orientationVector
268
);
272
public
:
NXOpen::Expression
*
Text
273
(
274
);
278
public
:
bool
CanReferenceText
279
(
280
);
284
public
:
void
SetCanReferenceText
285
(
286
bool
canReferenceText
287
);
291
public
:
NXString
Font
292
(
293
);
297
public
:
void
SelectFont
298
(
299
const
NXString
& fontName ,
300
NXOpen::Features::TextBuilder::ScriptOptions
script
301
);
305
void
SelectFont
306
(
307
const
char
* fontName ,
308
NXOpen::Features::TextBuilder::ScriptOptions
script
309
);
313
public
:
NXOpen::Features::TextBuilder::ScriptOptions
Script
314
(
315
);
319
public
:
void
SetScript
320
(
321
NXOpen::Features::TextBuilder::ScriptOptions
script
322
);
326
public
:
NXOpen::Features::TextBuilder::FontStyleOptions
FontStyle
327
(
328
);
332
public
:
void
SetFontStyle
333
(
334
NXOpen::Features::TextBuilder::FontStyleOptions
fontStyle
335
);
339
public
:
bool
CanUseKerningSpaces
340
(
341
);
345
public
:
void
SetCanUseKerningSpaces
346
(
347
bool
canUseKerningSpaces
348
);
352
public
:
bool
CanCreateBoundingBox
353
(
354
);
358
public
:
void
SetCanCreateBoundingBox
359
(
360
bool
canCreateBoundingBox
361
);
365
public
:
NXOpen::GeometricUtilities::RectangularFrameBuilder
*
PlanarFrame
366
(
367
);
371
public
:
NXOpen::GeometricUtilities::FrameOnPathBuilder
*
FrameOnPath
372
(
373
);
377
public
:
bool
IsAssociative
378
(
379
);
383
public
:
void
SetAssociative
384
(
385
bool
isAssociative
386
);
390
public
:
bool
CanJoinCurves
391
(
392
);
396
public
:
void
SetCanJoinCurves
397
(
398
bool
canJoinCurves
399
);
403
public
:
bool
CanProjectCurves
404
(
405
);
409
public
:
void
SetCanProjectCurves
410
(
411
bool
canProjectCurves
412
);
416
public
:
NXOpen::Features::TextBuilder::Types
Type
417
(
418
);
422
public
:
void
SetType
423
(
424
NXOpen::Features::TextBuilder::Types
type
425
);
429
public
:
void
UpdateOnSectionPlane
430
(
431
);
435
public
:
void
UpdateOnOrientationVectorReversal
436
(
437
);
441
public
:
NXString
TextString
442
(
443
);
447
public
:
void
SetTextString
448
(
449
const
NXString
& textString
450
);
454
void
SetTextString
455
(
456
const
char
* textString
457
);
461
public
:
bool
IsPrintMark
462
(
463
);
467
public
:
void
SetPrintMark
468
(
469
bool
isPrintMark
470
);
474
public
:
NXOpen::Expression
*
PrintMarkThickness
475
(
476
);
480
public
:
NXString
PrintMarkUsageLabel
481
(
482
);
486
public
:
void
SetPrintMarkUsageLabel
487
(
488
const
NXString
& printMarkUsageLabel
489
);
493
void
SetPrintMarkUsageLabel
494
(
495
const
char
* printMarkUsageLabel
496
);
500
public
:
bool
EnableCharacterSpacing
501
(
502
);
506
public
:
void
SetEnableCharacterSpacing
507
(
508
bool
enable
509
);
513
public
:
double
FontGapFactor
514
(
515
);
519
public
:
void
SetFontGapFactor
520
(
521
double
gapFactor
522
);
526
public
:
bool
EnableCaretPositioning
527
(
528
);
532
public
:
void
SetEnableCaretPositioning
533
(
534
bool
enable
535
);
539
public
:
int
CaretPosition
540
(
541
);
545
public
:
void
SetCaretPosition
546
(
547
int
position
548
);
549
};
550
}
551
}
552
#ifdef _MSC_VER
553
#pragma warning(pop)
554
#endif
555
#ifdef __GNUC__
556
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
557
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
558
#endif
559
#endif
560
#undef EXPORTLIBRARY