NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Layer_LayerManager.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Layer_LayerManager.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/Layer.hxx>
22#include <NXOpen/Layer_StateCollection.hxx>
23#include <NXOpen/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_layer_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 namespace Layer
35 {
36 class LayerManager;
37 }
38 class BasePart;
40 namespace Layer
41 {
42 class StateCollection;
43 }
44 class NXObject;
45 class View;
46 namespace Layer
47 {
48 class LayerManagerImpl;
52 class NXOPENCPP_LAYEREXPORT LayerManager
53 {
54 private: LayerManagerImpl * m_layermanager_impl;
55 private: NXOpen::BasePart* m_owner;
57 public: explicit LayerManager(NXOpen::BasePart *owner);
59 public:
61 tag_t Tag() const;
62 public: ~LayerManager();
68 public: void SetWorkLayer
69 (
70 int newWorkLayer
71 );
77 public: int WorkLayer
78 (
79 );
87 public: void ChangeStates
88 (
89 const std::vector<NXOpen::Layer::StateInfo> & stateArray ,
91 bool fitAll
92 );
100 public: void ChangeStates
101 (
102 const std::vector<NXOpen::Layer::StateInfo> & stateArray
104 );
109 (
110 );
115 public: void SetStates
116 (
117 NXOpen::Layer::StateCollection * stateCollection ,
118 bool fitAll
119 );
124 public: void SetStates
125 (
126 NXOpen::Layer::StateCollection * stateCollection
127 );
135 public: void SetState
136 (
137 int layer ,
138 NXOpen::Layer::State state
139 );
147 public: void SetState
148 (
149 int layer ,
150 NXOpen::Layer::State state ,
151 bool fitAll
152 );
156 public: NXOpen::Layer::State GetState
157 (
158 int layer
159 );
175 (
176 int newLayer ,
177 const std::vector<NXOpen::DisplayableObject *> & objectArray
178 );
191 (
192 int newLayer ,
193 const std::vector<NXOpen::DisplayableObject *> & objectArray
194 );
200 public: std::vector<NXOpen::NXObject *> GetAllObjectsOnLayer
201 (
202 int layer
203 );
213 public: void CopyObjects
214 (
215 int newLayer ,
216 const std::vector<NXOpen::NXObject *> & objectArray
217 );
223 (
224 NXOpen::View * view ,
225 std::vector<NXOpen::Layer::StateInfo> & stateArray
230 );
236 (
237 NXOpen::View * view ,
238 const std::vector<NXOpen::Layer::StateInfo> & stateArray ,
242 bool doUpdate
243 );
249 (
250 NXOpen::View * view
251 );
252 }; //lint !e1712 default constructor not defined for class
253 }
254}
255#ifdef _MSC_VER
256#pragma warning(pop)
257#endif
258#ifdef __GNUC__
259#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
260#pragma GCC diagnostic warning "-Wdeprecated-declarations"
261#endif
262#endif
263#undef EXPORTLIBRARY