NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
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
32namespace NXOpen
33{
34 class View;
36 class IFitTo;
37 class INXObject;
38 class NXObject;
39 namespace Preferences
40 {
42 }
43 namespace Preferences
44 {
46 }
48 class _ViewBuilder;
49 class ViewImpl;
55 class NXOPENCPPEXPORT View : public NXOpen::NXObject
56 {
70
78
86
100
108
116
123
131 private: ViewImpl * m_view_impl;
132 private: friend class _ViewBuilder;
133 protected: View();
134public: ~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 );
223 (
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 );
254 (
255 );
264 (
265 );
270 (
271 );
278 public: double Scale
279 (
280 );
288 public: double GetExpandedScale
289 (
290 );
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 ,
326 );
333 public: void Orient
334 (
335 const NXString & viewName ,
337 );
345 (
346 const char * viewName ,
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 );
407 (
408 const NXOpen::Matrix3x3 & rotMatrix ,
410 const NXOpen::Point3d & translation ,
411 double scale
412 );
420 (
421 );
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 );
488 (
489 );
493 public: void SetRenderingStyle
494 (
496 );
505 public: std::vector<NXOpen::DisplayableObject *> AskVisibleObjects
506 (
507 );
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 );
573 (
574 bool triadVisibility
575 );
579 public: bool IsDisclosed
580 (
581 );
586 (
587 );
592 (
593 const NXString & disclosurePurpose
594 );
599 (
600 const char * disclosurePurpose
601 );
607 public: bool HasPreview
608 (
609 );
614 (
615 bool isEnable
617 );
624 (
625 );
630 (
631 );
636 (
637 );
642 (
643 const NXOpen::Point3d & startPoint ,
644 const NXOpen::Point3d & startEnd
645 );
650 (
651 double relativeScale
652 );
657 (
658 const NXString & replacementChar
659 );
664 (
665 const char * replacementChar
666 );
671 (
672 );
677 (
679 );
684 (
685 );
690 (
692 );
697 (
698 );
702 public: void SetDisplayStyle
703 (
705 );
710 (
711 );
716 (
717 NXOpen::View::ShadedDisplayModeType shadedDisplayType
718 );
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