NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Display_ImageBaseBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Display_ImageBaseBuilder.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/Builder.hxx>
23
#include <NXOpen/ugmath.hxx>
24
#include <NXOpen/libnxopencpp_display_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
namespace
Display
35
{
36
class
ImageBaseBuilder
;
37
}
38
class
Builder
;
39
class
Direction
;
40
class
Expression
;
41
class
Point
;
42
namespace
Display
43
{
44
class
_ImageBaseBuilderBuilder;
45
class
ImageBaseBuilderImpl;
53
class
NXOPENCPP_DISPLAYEXPORT ImageBaseBuilder :
public
NXOpen::Builder
54
{
56
public
:
enum
BasePointChoices
57
{
58
BasePointChoicesBottomLeft
,
59
BasePointChoicesBottomCenter
,
60
BasePointChoicesBottomRight
,
61
BasePointChoicesMiddleLeft
,
62
BasePointChoicesMiddleCenter
,
63
BasePointChoicesMiddleRight
,
64
BasePointChoicesTopLeft
,
65
BasePointChoicesTopCenter
,
66
BasePointChoicesTopRight
,
67
BasePointChoicesUserDefined
68
};
69
70
public
:
enum
ReferenceDirection
71
{
72
ReferenceDirectionHorizontal
,
73
ReferenceDirectionVertical
74
};
75
76
public
:
enum
InsertionPoint
77
{
78
InsertionPointDefault
,
79
InsertionPointUserDefined
80
};
81
82
public
:
enum
SizeOptions
83
{
84
SizeOptionsUserDefined
,
85
SizeOptionsImageSize
,
86
SizeOptionsReferenceScaling
87
};
88
89
public
:
enum
ImageColorModes
90
{
91
ImageColorModesRgb
,
92
ImageColorModesGreyscale
,
93
ImageColorModesMonochrome
94
};
95
96
public
:
enum
TransparencyColorFrom
97
{
98
TransparencyColorFromNone
,
99
TransparencyColorFromFromImage
,
100
TransparencyColorFromPixelColor
101
};
102
private
:
ImageBaseBuilderImpl
* m_imagebasebuilder_impl;
103
private
:
friend
class
_ImageBaseBuilderBuilder;
104
protected
:
ImageBaseBuilder
();
105
public
:
~ImageBaseBuilder
();
112
public
:
NXOpen::Display::ImageBaseBuilder::BasePointChoices
BasePointChoice
113
(
114
);
121
public
:
void
SetBasePointChoice
122
(
123
NXOpen::Display::ImageBaseBuilder::BasePointChoices
basePoint
124
);
130
public
:
NXOpen::Point
*
UserBasePoint
131
(
132
);
138
public
:
void
SetUserBasePoint
139
(
140
NXOpen::Point
* basePoint
141
);
145
public
:
NXOpen::Display::ImageBaseBuilder::InsertionPoint
InsertionPointOption
146
(
147
);
151
public
:
void
SetInsertionPointOption
152
(
153
NXOpen::Display::ImageBaseBuilder::InsertionPoint
insertPoint
154
);
158
public
:
NXOpen::Point
*
UserInsertionPoint
159
(
160
);
164
public
:
void
SetUserInsertionPoint
165
(
166
NXOpen::Point
* insertPoint
167
);
173
public
:
NXOpen::Display::ImageBaseBuilder::ReferenceDirection
ReferenceDirectionOption
174
(
175
);
181
public
:
void
SetReferenceDirectionOption
182
(
183
NXOpen::Display::ImageBaseBuilder::ReferenceDirection
referenceDirection
184
);
188
public
:
NXOpen::Direction
*
UserReferenceDirection
189
(
190
);
194
public
:
void
SetUserReferenceDirection
195
(
196
NXOpen::Direction
* userDirection
197
);
201
public
:
void
AlignImageToReferenceDirection
202
(
203
);
207
public
:
NXOpen::Expression
*
RotateAngleOfReferenceVector
208
(
209
);
213
public
:
void
RotateLeft
214
(
215
);
219
public
:
void
RotateRight
220
(
221
);
225
public
:
void
FlipHorizontal
226
(
227
);
231
public
:
void
FlipVertical
232
(
233
);
237
public
:
void
OrientViewToImage
238
(
239
);
243
public
:
NXString
ImageFile
244
(
245
);
249
public
:
void
SetImageFile
250
(
251
const
NXString
& filename
252
);
256
void
SetImageFile
257
(
258
const
char
* filename
259
);
264
public
: std::vector<NXString>
GetImagesInPart
265
(
266
);
270
public
:
void
SetImageFromPart
271
(
272
const
NXString
& imageName
273
);
277
void
SetImageFromPart
278
(
279
const
char
* imageName
280
);
284
public
:
void
GetCornerPoints
285
(
286
NXOpen::Point3d
* point1 ,
287
NXOpen::Point3d
* point2 ,
288
NXOpen::Point3d
* point3 ,
289
NXOpen::Point3d
* point4
290
);
294
public
:
void
SetCornerPoints
295
(
296
const
NXOpen::Point3d
& point1 ,
297
const
NXOpen::Point3d
& point2 ,
298
const
NXOpen::Point3d
& point3 ,
299
const
NXOpen::Point3d
& point4
300
);
304
public
:
NXOpen::Display::ImageBaseBuilder::TransparencyColorFrom
TransparencyColorOption
305
(
306
);
310
public
:
void
SetTransparencyColorOption
311
(
312
NXOpen::Display::ImageBaseBuilder::TransparencyColorFrom
transparencyColorOption
313
);
321
public
: std::vector<double>
GetTransparentPixelColor
322
(
323
);
330
public
:
void
SetTransparentPixelColor
331
(
332
const
std::vector<double> & transparencyColor
333
);
341
public
: std::vector<double>
GetForegroundColor
342
(
343
);
350
public
:
void
SetForegroundColor
351
(
352
const
std::vector<double> & foregroundColor
353
);
361
public
: std::vector<double>
GetBackgroundColor
362
(
363
);
370
public
:
void
SetBackgroundColor
371
(
372
const
std::vector<double> & backgroundColor
373
);
377
public
:
bool
LockAspectRatio
378
(
379
);
383
public
:
void
SetLockAspectRatio
384
(
385
bool
lockAspectRatio
386
);
390
public
:
NXOpen::Display::ImageBaseBuilder::SizeOptions
SizeOption
391
(
392
);
396
public
:
void
SetSizeOption
397
(
398
NXOpen::Display::ImageBaseBuilder::SizeOptions
sizeOption
399
);
406
public
:
NXOpen::Point
*
ImageReferencePoint1
407
(
408
);
415
public
:
void
SetImageReferencePoint1
416
(
417
NXOpen::Point
* imageReferencePoint1
418
);
425
public
:
NXOpen::Point
*
ModelReferencePoint1
426
(
427
);
434
public
:
void
SetModelReferencePoint1
435
(
436
NXOpen::Point
* modelReferencePoint1
437
);
444
public
:
NXOpen::Point
*
ImageReferencePoint2
445
(
446
);
453
public
:
void
SetImageReferencePoint2
454
(
455
NXOpen::Point
* imageReferencePoint2
456
);
463
public
:
NXOpen::Point
*
ModelReferencePoint2
464
(
465
);
472
public
:
void
SetModelReferencePoint2
473
(
474
NXOpen::Point
* modelReferencePoint2
475
);
484
public
:
NXOpen::Point
*
ImageReferencePoint3
485
(
486
);
495
public
:
void
SetImageReferencePoint3
496
(
497
NXOpen::Point
* imageReferencePoint3
498
);
507
public
:
NXOpen::Point
*
ModelReferencePoint3
508
(
509
);
518
public
:
void
SetModelReferencePoint3
519
(
520
NXOpen::Point
* modelReferencePoint3
521
);
529
public
:
NXOpen::Expression
*
Width
530
(
531
);
539
public
:
NXOpen::Expression
*
Height
540
(
541
);
545
public
:
void
ResetImageSize
546
(
547
);
551
public
:
int
PixelColorTolerance
552
(
553
);
557
public
:
void
SetPixelColorTolerance
558
(
559
int
colorTolerence
560
);
564
public
:
int
OverallTranslucency
565
(
566
);
570
public
:
void
SetOverallTranslucency
571
(
572
int
overallTranslucency
573
);
577
public
:
NXOpen::Display::ImageBaseBuilder::ImageColorModes
ColorMode
578
(
579
);
583
public
:
void
SetColorMode
584
(
585
NXOpen::Display::ImageBaseBuilder::ImageColorModes
colorMode
586
);
590
public
:
NXOpen::Point3d
InsertionPointLocation
591
(
592
);
596
public
:
void
SetInsertionPointLocation
597
(
598
const
NXOpen::Point3d
& insertPoint
599
);
600
};
601
}
602
}
603
#ifdef _MSC_VER
604
#pragma warning(pop)
605
#endif
606
#ifdef __GNUC__
607
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
608
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
609
#endif
610
#endif
611
#undef EXPORTLIBRARY