NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Display_CameraBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Display_CameraBuilder.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/Builder.hxx>
22
#include <NXOpen/ugmath.hxx>
23
#include <NXOpen/libnxopencpp_display_exports.hxx>
24
#ifdef _MSC_VER
25
#pragma warning(push)
26
#pragma warning(disable:4996)
27
#endif
28
#ifdef __GNUC__
29
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30
#endif
31
namespace
NXOpen
32
{
33
namespace
Display
34
{
35
class
CameraBuilder
;
36
}
37
class
Builder
;
38
namespace
Display
39
{
40
class
_CameraBuilderBuilder;
41
class
CameraBuilderImpl;
47
class
NXOPENCPP_DISPLAYEXPORT CameraBuilder :
public
NXOpen::Builder
48
{
50
public
:
enum
Types
51
{
52
TypesParallel
,
53
TypesPerspective
54
};
55
56
public
:
enum
LensAngle
57
{
58
LensAngleStock
,
59
LensAngleFov
,
60
LensAngleMagnification
61
};
62
63
public
:
enum
StockLens
64
{
65
StockLensS28
,
66
StockLensS35
,
67
StockLensS50
,
68
StockLensS70
,
69
StockLensS105
,
70
StockLensS135
,
71
StockLensS210
,
72
StockLensS300
73
};
74
75
public
:
enum
FovMeasured
76
{
77
FovMeasuredHorizontally
,
78
FovMeasuredVertically
79
};
80
82
public
:
enum
LensFlare
83
{
84
LensFlareStandard
,
85
LensFlareS35
,
86
LensFlareS50
,
87
LensFlareS105
,
88
LensFlarePolygonal
,
89
LensFlareP35
,
90
LensFlareP50
,
91
LensFlareP105
,
92
LensFlareSpark
,
93
LensFlareStar
94
};
95
96
public
:
enum
Aperture
97
{
98
ApertureF28
,
99
ApertureF56
,
100
ApertureF8
,
101
ApertureF11
,
102
ApertureF16
,
103
ApertureF22
104
};
105
107
public
:
enum
AspectRatio
108
{
109
AspectRatioGraphicsWindow
,
110
AspectRatioImageBasedBackground
,
111
AspectRatioSquareFormat
,
112
AspectRatioStandardPhotoPrintFormat
,
113
AspectRatioStandardVideoFormat
,
114
AspectRatioHdtvFormat
,
115
AspectRatioUserDefined
116
};
117
private
:
CameraBuilderImpl
* m_camerabuilder_impl;
118
private
:
friend
class
_CameraBuilderBuilder;
119
protected
:
CameraBuilder
();
120
public
:
~CameraBuilder
();
124
public
:
NXOpen::Display::CameraBuilder::Types
Type
125
(
126
);
130
public
:
void
SetType
131
(
132
NXOpen::Display::CameraBuilder::Types
type
133
);
139
public
:
NXString
CameraName
140
(
141
);
147
public
:
void
SetCameraName
148
(
149
const
NXString
& cameraName
150
);
156
void
SetCameraName
157
(
158
const
char
* cameraName
159
);
164
public
:
NXString
CameraNameChar
165
(
166
);
171
public
:
void
SetCameraNameChar
172
(
173
const
NXString
& cameraName
174
);
179
void
SetCameraNameChar
180
(
181
const
char
* cameraName
182
);
186
public
:
NXOpen::Point3d
CameraPosition
187
(
188
);
192
public
:
void
SetCameraPosition
193
(
194
const
NXOpen::Point3d
& position
195
);
199
public
:
NXOpen::Matrix3x3
CameraMatrix
200
(
201
);
205
public
:
void
SetCameraMatrix
206
(
207
const
NXOpen::Matrix3x3
& cameraMatrix
208
);
213
public
:
double
PerspectiveDistance
214
(
215
);
219
public
:
void
SetPerspectiveDistance
220
(
221
double
perspectiveDistance
222
);
226
public
:
bool
UseTargetPoint
227
(
228
);
232
public
:
void
SetUseTargetPoint
233
(
234
bool
useTargetPoint
235
);
239
public
:
NXOpen::Point3d
TargetPosition
240
(
241
);
245
public
:
void
SetTargetPosition
246
(
247
const
NXOpen::Point3d
& position
248
);
252
public
:
NXOpen::Matrix3x3
TargetMatrix
253
(
254
);
258
public
:
void
SetTargetMatrix
259
(
260
const
NXOpen::Matrix3x3
& matrix
261
);
265
public
:
NXOpen::Display::CameraBuilder::LensAngle
LensAngleType
266
(
267
);
271
public
:
void
SetLensAngleType
272
(
273
NXOpen::Display::CameraBuilder::LensAngle
lensAngleType
274
);
278
public
:
NXOpen::Display::CameraBuilder::StockLens
StockLensType
279
(
280
);
284
public
:
void
SetStockLensType
285
(
286
NXOpen::Display::CameraBuilder::StockLens
stockLensType
287
);
291
public
:
NXOpen::Display::CameraBuilder::FovMeasured
FieldOfViewMeasured
292
(
293
);
297
public
:
void
SetFieldOfViewMeasured
298
(
299
NXOpen::Display::CameraBuilder::FovMeasured
fovMeasuredType
300
);
305
public
:
double
FieldOfViewAngle
306
(
307
);
312
public
:
void
SetFieldOfViewAngle
313
(
314
double
fieldOfViewAngle
315
);
319
public
:
double
Magnification
320
(
321
);
325
public
:
void
SetMagnification
326
(
327
double
magnification
328
);
332
public
:
double
FrontClippingDistance
333
(
334
);
338
public
:
void
SetFrontClippingDistance
339
(
340
double
frontClippingDistance
341
);
345
public
:
double
BackClippingDistance
346
(
347
);
351
public
:
void
SetBackClippingDistance
352
(
353
double
backClippingDistance
354
);
358
public
:
bool
LensFlareToggle
359
(
360
);
364
public
:
void
SetLensFlareToggle
365
(
366
bool
lensFlareToggle
367
);
371
public
:
bool
HiddenLensFlareToggle
372
(
373
);
377
public
:
void
SetHiddenLensFlareToggle
378
(
379
bool
hiddenLensFlareToggle
380
);
384
public
:
NXOpen::Display::CameraBuilder::LensFlare
LensFlareType
385
(
386
);
390
public
:
void
SetLensFlareType
391
(
392
NXOpen::Display::CameraBuilder::LensFlare
lensFlareType
393
);
397
public
:
double
LensFlareIntensity
398
(
399
);
403
public
:
void
SetLensFlareIntensity
404
(
405
double
lensFlareIntensity
406
);
410
public
:
bool
DepthOfFieldToggle
411
(
412
);
416
public
:
void
SetDepthOfFieldToggle
417
(
418
bool
depthOfFieldToggle
419
);
423
public
:
NXOpen::Display::CameraBuilder::Aperture
ApertureType
424
(
425
);
429
public
:
void
SetApertureType
430
(
431
NXOpen::Display::CameraBuilder::Aperture
apertureType
432
);
436
public
:
double
FocalDistance
437
(
438
);
442
public
:
void
SetFocalDistance
443
(
444
double
focalDistance
445
);
449
public
:
NXOpen::Display::CameraBuilder::AspectRatio
AspectRatioType
450
(
451
);
455
public
:
void
SetAspectRatioType
456
(
457
NXOpen::Display::CameraBuilder::AspectRatio
aspectRatioType
458
);
462
public
:
double
AspectRatioWidth
463
(
464
);
468
public
:
void
SetAspectRatioWidth
469
(
470
double
aspectRatioWidth
471
);
475
public
:
double
AspectRatioHeight
476
(
477
);
481
public
:
void
SetAspectRatioHeight
482
(
483
double
aspectRatioHeight
484
);
485
};
486
}
487
}
488
#ifdef _MSC_VER
489
#pragma warning(pop)
490
#endif
491
#ifdef __GNUC__
492
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
493
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
494
#endif
495
#endif
496
#undef EXPORTLIBRARY