NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
DisplayManager.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// DisplayManager.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/DisplayModification.hxx>
22#include <NXOpen/TaggedObject.hxx>
23#include <NXOpen/WindowHandle.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 DisplayManager;
35 class Session;
38 class View;
39 class WindowHandle;
40 class DisplayManagerImpl;
44 class NXOPENCPPEXPORT DisplayManager
45 {
56
57 public:
58 struct J3dColor
59 {
60 public: double Red;
61 public: double Green;
62 public: double Blue;
63 public: J3dColor() :
64 Red(),
65 Green(),
66 Blue()
67 {
68 }
70 public: J3dColor(double redInitial ,
71 double greenInitial ,
72 double blueInitial ) :
73 Red(redInitial),
74 Green(greenInitial),
75 Blue(blueInitial)
76 {
77 }
78 };
79
80 public:
81 struct J3dMaterial
82 {
85 public: double Roughness;
86 public: double SpecularFactor;
87 public: double DiffuseFactor;
88 public: double AmbientFactor;
89 public: double Transparency;
90 public: J3dMaterial() :
91 Color(),
93 Roughness(),
98{
99 }
101 public: J3dMaterial(const NXOpen::DisplayManager::J3dColor &colorInitial ,
102 const NXOpen::DisplayManager::J3dColor &highlightColorInitial ,
103 double roughnessInitial ,
104 double specularFactorInitial ,
105 double diffuseFactorInitial ,
106 double ambientFactorInitial ,
107 double transparencyInitial ) :
108 Color(colorInitial),
109 HighlightColor(highlightColorInitial),
110 Roughness(roughnessInitial),
111 SpecularFactor(specularFactorInitial),
112 DiffuseFactor(diffuseFactorInitial),
113 AmbientFactor(ambientFactorInitial),
114 Transparency(transparencyInitial)
115 {
116 }
117 };
118
119 public:
120 struct J3dData
121 {
123 public: bool HasTransform;
124 public: bool Sheet;
125 public: NXString Name;
127 public: J3dData() :
128 Eid(),
129 HasTransform(),
130 Sheet(),
131 Name(),
132 Material()
133 {
134 }
136 public: J3dData(NXOpen::DisplayableObject * eidInitial ,
137 bool hasTransformInitial ,
138 bool sheetInitial ,
139 const NXString &nameInitial ,
140 const NXOpen::DisplayManager::J3dMaterial &materialInitial ) :
141 Eid(eidInitial),
142 HasTransform(hasTransformInitial),
143 Sheet(sheetInitial),
144 Name(nameInitial),
145 Material(materialInitial)
146 {
147 }
148 };
149
151 public: enum ShowHideType
152 {
336 };
337
344
351 private: DisplayManagerImpl * m_displaymanager_impl;
352 private: NXOpen::Session* m_owner;
354 public: explicit DisplayManager(NXOpen::Session *owner);
356 public:
358 tag_t Tag() const;
359 public: ~DisplayManager();
366 (
367 );
372 public: void BlankObjects
373 (
374 const std::vector<NXOpen::DisplayableObject *> & objects
375 );
380 public: void UnblankObjects
381 (
382 const std::vector<NXOpen::DisplayableObject *> & objects
383 );
389 public: NX_DEPRECATED("在 NX9.0.0 版本中已废弃。请使用接受字符串类型参数的 NXOpen::DisplayManager::ShowByType。要查找所有已注册的 ShowHideType 字符串,请使用 NXOpen::DisplayManager::GetShowableHideableTypes") int ShowByType
390 (
393 );
397 public: int ShowByType
398 (
399 const NXString & type ,
401 );
406 (
407 const char * type ,
409 );
415 public: NX_DEPRECATED("在 NX9.0.0 版本中已废弃。请使用接受字符串类型参数的 NXOpen::DisplayManager::HideByType。要查找所有已注册的 ShowHideType 字符串,请使用 NXOpen::DisplayManager::GetShowableHideableTypes") int HideByType
416 (
419 );
423 public: int HideByType
424 (
425 const NXString & type ,
427 );
432 (
433 const char * type ,
435 );
443 public: void ShowOnly
444 (
445 const std::vector<NXOpen::DisplayableObject *> & objects
446 );
453 public: void ShowAdjacent
454 (
455 const std::vector<NXOpen::DisplayableObject *> & objects
456 );
461 (
462 bool includeInteriorNodes
463 );
467 public: void MakeUpToDate
468 (
469 );
474 (
475 );
479 public: bool GetJ3dGeometry
480 (
482 double tolerance ,
483 bool wireframe ,
484 std::vector<double> & points ,
485 std::vector<double> & normals ,
486 std::vector<int> & pointsPerStrip
487 );
495 public: void ShowObjects
496 (
497 const std::vector<NXOpen::DisplayableObject *> & objects ,
498 NXOpen::DisplayManager::LayerSetting layerSetting
499 );
504 (
505 );
518 (
519 );
532 (
534 );
539 (
540 NXOpen::View * view
541 );
542}; //lint !e1712 类未定义默认构造函数
543}
544#ifdef _MSC_VER
545#pragma warning(pop)
546#endif
547#ifdef __GNUC__
548#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
549#pragma GCC diagnostic warning "-Wdeprecated-declarations"
550#endif
551#endif
552#undef EXPORTLIBRARY