NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
View.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// View.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/NXObject.hxx>
22
#include <NXOpen/type.hxx>
23
#include <NXOpen/ugmath.hxx>
24
#include <NXOpen/libnxopencpp_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
class
View
;
35
class
DisplayableObject
;
36
class
IFitTo
;
37
class
INXObject
;
38
class
NXObject
;
39
namespace
Preferences
40
{
41
class
ViewVisualizationSpecialEffects
;
42
}
43
namespace
Preferences
44
{
45
class
ViewVisualizationVisual
;
46
}
47
class
ViewDependentDisplayManager
;
48
class
_ViewBuilder;
49
class
ViewImpl;
55
class
NXOPENCPPEXPORT View :
public
NXOpen::NXObject
56
{
59
public
:
enum
Canned
60
{
61
CannedTop
,
62
CannedFront
,
63
CannedRight
,
64
CannedBack
,
65
CannedBottom
,
66
CannedLeft
,
67
CannedIsometric
,
68
CannedTrimetric
69
};
70
71
public
:
enum
ScaleFactor
72
{
73
ScaleFactorHalfScale
,
74
ScaleFactorDoubleScale
,
75
ScaleFactorReduceScale
,
76
ScaleFactorIncreaseScale
77
};
78
80
public
:
enum
ScaleAdjustment
81
{
82
ScaleAdjustmentFit
,
83
ScaleAdjustmentCurrent
,
84
ScaleAdjustmentSaved
85
};
86
87
public
:
enum
RenderingStyleType
88
{
89
RenderingStyleTypeShadedWithEdges
,
90
RenderingStyleTypeShadedWithBodyColorEdges
,
91
RenderingStyleTypeShaded
,
92
RenderingStyleTypeWireframeWithDimEdges
,
93
RenderingStyleTypeWireframeWithHiddenEdges
,
94
RenderingStyleTypeWireframeWithDashedEdges
,
95
RenderingStyleTypeStudio
,
96
RenderingStyleTypeFaceAnalysis
,
97
RenderingStyleTypePartiallyShaded
,
98
RenderingStyleTypeStaticWireframe
99
};
100
101
public
:
enum
ShowOrHideType
102
{
103
ShowOrHideTypeShowOnly
,
104
ShowOrHideTypeHideOnly
,
105
ShowOrHideTypeBothShowAndHide
,
106
ShowOrHideTypeInvertShownAndHidden
107
};
108
109
public
:
enum
DisplayStyleType
110
{
111
DisplayStyleTypeShaded
,
112
DisplayStyleTypeWireframe
,
113
DisplayStyleTypeStudio
,
114
DisplayStyleTypeStaticWireframe
115
};
116
117
public
:
enum
ShadedDisplayModeType
118
{
119
ShadedDisplayModeTypeFullyShaded
,
120
ShadedDisplayModeTypePartiallyShaded
,
121
ShadedDisplayModeTypeFaceAnalysis
122
};
123
124
public
:
enum
HiddenEdgesType
125
{
126
HiddenEdgesTypeInvisible
,
127
HiddenEdgesTypeVisible
,
128
HiddenEdgesTypeDashed
,
129
HiddenEdgesTypeGrayThin
130
};
131
private
:
ViewImpl
* m_view_impl;
132
private
:
friend
class
_ViewBuilder;
133
protected
:
View
();
134
public
:
~View
();
139
public
:
void
Concatenate
140
(
141
const
NXOpen::Point3d
& translation
142
);
147
public
:
void
Concatenate
148
(
149
double
scale
150
);
155
public
:
void
Concatenate
156
(
157
const
NXOpen::Point3d
& translation ,
158
double
scale
159
);
164
public
:
void
Concatenate
165
(
166
const
NXOpen::Point3d
& centerOfRotation ,
167
const
NXOpen::Vector3d
& rotationAxis ,
168
double
angle
169
);
174
public
:
void
Concatenate
175
(
176
const
NXOpen::Point3d
& translation ,
177
const
NXOpen::Point3d
& centerOfRotation ,
178
const
NXOpen::Vector3d
& rotationAxis ,
179
double
angle
180
);
185
public
:
void
Concatenate
186
(
187
double
scale ,
188
const
NXOpen::Point3d
& centerOfRotation ,
189
const
NXOpen::Vector3d
& rotationAxis ,
190
double
angle
191
);
196
public
:
void
Concatenate
197
(
198
const
NXOpen::Point3d
& translation ,
199
double
scale ,
200
const
NXOpen::Point3d
& centerOfRotation ,
201
const
NXOpen::Vector3d
& rotationAxis ,
202
double
angle
203
);
208
public
:
void
Expand
209
(
210
);
215
public
:
void
Fit
216
(
217
);
222
public
:
void
FitAfterShowOrHide
223
(
224
NXOpen::View::ShowOrHideType
type
225
);
230
public
:
void
FitToObjects
231
(
232
const
std::vector<NXOpen::IFitTo *> & objects
233
);
238
public
:
void
PanToObjects
239
(
240
const
std::vector<NXOpen::INXObject *> & objects
241
);
246
public
:
void
FlyToObjects
247
(
248
const
std::vector<NXOpen::INXObject *> & objects
249
);
253
public
:
NXOpen::Matrix3x3
Matrix
254
(
255
);
263
public
:
NXOpen::Point3d
Origin
264
(
265
);
269
public
:
NXOpen::Point3d
AbsoluteOrigin
270
(
271
);
278
public
:
double
Scale
279
(
280
);
288
public
:
double
GetExpandedScale
289
(
290
);
294
public
:
NXOpen::Vector3d
GetAxis
295
(
296
NXOpen::XYZAxis
xYZAxis
297
);
302
public
:
void
MakeWork
303
(
304
);
311
public
:
void
Orient
312
(
313
const
NXOpen::Matrix3x3
& matrix
315
);
322
public
:
void
Orient
323
(
324
NXOpen::View::Canned
viewName ,
325
NXOpen::View::ScaleAdjustment
viewScale
326
);
333
public
:
void
Orient
334
(
335
const
NXString
& viewName ,
336
NXOpen::View::ScaleAdjustment
viewScale
337
);
344
void
Orient
345
(
346
const
char
* viewName ,
347
NXOpen::View::ScaleAdjustment
viewScale
348
);
353
public
:
void
Regenerate
354
(
355
);
364
public
:
bool
Restore
365
(
366
);
371
public
:
void
Rotate
372
(
373
const
NXOpen::Matrix3x3
& matrix
375
);
380
public
:
void
Rotate
381
(
382
const
NXOpen::Point3d
& origin ,
383
const
NXOpen::Vector3d
& vector ,
384
double
angle
385
);
390
public
:
void
SetOrigin
391
(
392
const
NXOpen::Point3d
& origin
393
);
398
public
:
void
SetScale
399
(
400
double
scale
401
);
406
public
:
void
SetRotationTranslationScale
407
(
408
const
NXOpen::Matrix3x3
& rotMatrix ,
410
const
NXOpen::Point3d
& translation ,
411
double
scale
412
);
419
public
:
void
SnapToClosestCannedOrientation
420
(
421
);
428
public
:
void
SnapToVariantCannedOrientation
429
(
430
);
435
public
:
void
UpdateDisplay
436
(
437
);
442
public
:
void
Zoom
443
(
444
NXOpen::View::ScaleFactor
scaleFactor
445
);
454
public
:
void
ZoomAboutPoint
455
(
456
double
relativeScale ,
457
const
NXOpen::Point3d
& scaleAboutPoint ,
458
const
NXOpen::Point3d
& viewCenter
460
);
470
public
:
void
ZoomByRectangle
471
(
472
const
NXOpen::Point3d
& corner1 ,
473
const
NXOpen::Point3d
& corner2
474
);
480
public
:
void
ChangePerspective
481
(
482
bool
changeViewToPerspective
483
);
487
public
:
NXOpen::View::RenderingStyleType
RenderingStyle
488
(
489
);
493
public
:
void
SetRenderingStyle
494
(
495
NXOpen::View::RenderingStyleType
renderingStyle
496
);
505
public
: std::vector<NXOpen::DisplayableObject *>
AskVisibleObjects
506
(
507
);
511
public
:
void
UpdateCustomSymbols
512
(
513
);
518
public
:
bool
LockRotations
519
(
520
);
525
public
:
void
SetLockRotations
526
(
527
bool
newToggleState
531
);
536
public
:
bool
SyncViews
537
(
538
);
543
public
:
void
SetSyncViews
544
(
545
bool
newToggleState
549
);
553
public
:
bool
WcsVisibility
554
(
555
);
559
public
:
void
SetWcsVisibility
560
(
561
bool
isVisible
562
);
566
public
:
bool
TriadVisibility
567
(
568
);
572
public
:
void
SetTriadVisibility
573
(
574
bool
triadVisibility
575
);
579
public
:
bool
IsDisclosed
580
(
581
);
585
public
:
NXString
DisclosurePurpose
586
(
587
);
591
public
:
void
SetDisclosurePurpose
592
(
593
const
NXString
& disclosurePurpose
594
);
598
void
SetDisclosurePurpose
599
(
600
const
char
* disclosurePurpose
601
);
607
public
:
bool
HasPreview
608
(
609
);
613
public
:
void
EnableNavigationFlyThrough
614
(
615
bool
isEnable
617
);
623
public
:
bool
IsNavigationFlyThroughEnabled
624
(
625
);
629
public
:
void
SaveNavigationHomeView
630
(
631
);
635
public
:
void
RestoreNavigationHomeView
636
(
637
);
641
public
:
void
NavigationFlyThrough
642
(
643
const
NXOpen::Point3d
& startPoint ,
644
const
NXOpen::Point3d
& startEnd
645
);
649
public
:
void
NavigationFlyThroughWithScale
650
(
651
double
relativeScale
652
);
656
public
:
NXOpen::View
*
SaveViewWithViewName
657
(
658
const
NXString
& replacementChar
659
);
663
NXOpen::View
*
SaveViewWithViewName
664
(
665
const
char
* replacementChar
666
);
670
public
:
NXOpen::View::HiddenEdgesType
DynamicHiddenEdges
671
(
672
);
676
public
:
void
SetDynamicHiddenEdges
677
(
678
NXOpen::View::HiddenEdgesType
hiddenEdges
679
);
683
public
:
NXOpen::View::HiddenEdgesType
StaticHiddenEdges
684
(
685
);
689
public
:
void
SetStaticHiddenEdges
690
(
691
NXOpen::View::HiddenEdgesType
hiddenEdges
692
);
696
public
:
NXOpen::View::DisplayStyleType
DisplayStyle
697
(
698
);
702
public
:
void
SetDisplayStyle
703
(
704
NXOpen::View::DisplayStyleType
displayStyle
705
);
709
public
:
NXOpen::View::ShadedDisplayModeType
ShadedDisplayType
710
(
711
);
715
public
:
void
SetShadedDisplayType
716
(
717
NXOpen::View::ShadedDisplayModeType
shadedDisplayType
718
);
722
public
:
NXOpen::Preferences::ViewVisualizationVisual
*
VisualizationVisualPreferences
();
726
public
:
NXOpen::Preferences::ViewVisualizationSpecialEffects
*
VisualizationSpecialEffectsPreferences
();
730
public
:
NXOpen::ViewDependentDisplayManager
*
DependentDisplay
();
731
};
732
}
733
#ifdef _MSC_VER
734
#pragma warning(pop)
735
#endif
736
#ifdef __GNUC__
737
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
738
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
739
#endif
740
#endif
741
#undef EXPORTLIBRARY