NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
SelectObjectList.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// SelectObjectList.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/CaeObjectType.hxx>
22#include <NXOpen/InferSnapType.hxx>
23#include <NXOpen/GeometricUtilities_IComponentBuilder.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/SelectObject.hxx>
26#include <NXOpen/SelectionMethod.hxx>
27#include <NXOpen/ugmath.hxx>
28#include <NXOpen/libnxopencpp_exports.hxx>
29#ifdef _MSC_VER
30#pragma warning(push)
31#pragma warning(disable:4996)
32#endif
33#ifdef __GNUC__
34#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35#endif
36namespace NXOpen
37{
38 class SelectObjectList;
39 namespace GeometricUtilities
40 {
42 }
43 class SelectObject;
44 class SelectionMethod;
45 class TaggedObject;
46 class View;
47 class _SelectObjectListBuilder;
48 class SelectObjectListImpl;
52 class NXOPENCPPEXPORT SelectObjectList : public NXOpen::TaggedObject, public virtual NXOpen::GeometricUtilities::IComponentBuilder
53 {
54 private: SelectObjectListImpl * m_selectobjectlist_impl;
55 private: friend class _SelectObjectListBuilder;
56 protected: SelectObjectList();
57 public: ~SelectObjectList();
63 public: bool Add
64 (
65 NXOpen::TaggedObject * object
66 );
72 public: bool Add
73 (
74 const std::vector<NXOpen::TaggedObject *> & objects
75 );
81 public: bool AddWithViews
82 (
83 const std::vector<NXOpen::TaggedObject *> & objects ,
84 const std::vector<NXOpen::View *> & views
85 );
91 public: bool Add
92 (
93 NXOpen::SelectionMethod * inputSelectionMethod
94 );
100 public: bool Add
101 (
102 NXOpen::TaggedObject * selection ,
103 NXOpen::View * view ,
104 const NXOpen::Point3d & point
105 );
111 public: bool Remove
112 (
113 NXOpen::TaggedObject * object
114 );
120 public: bool Remove
121 (
122 NXOpen::TaggedObject * object ,
123 NXOpen::View * view
124 );
130 public: bool Remove
131 (
133 NXOpen::TaggedObject * selection1 ,
134 NXOpen::View * view1 ,
135 const NXOpen::Point3d & point1 ,
136 NXOpen::TaggedObject * selection2 ,
137 NXOpen::View * view2 ,
138 const NXOpen::Point3d & point2
139 );
145 public: bool RemoveArray
146 (
147 const std::vector<NXOpen::TaggedObject *> & objects
148 );
154 public: bool Remove
155 (
156 NXOpen::SelectionMethod * inputSelectionMethod
157 );
161 public: void Clear
162 (
163 );
168 public: bool Contains
169 (
170 NXOpen::TaggedObject * object
171 );
175 public: int Size
176 (
177 );
181 public: bool DuplicatesAllowed
182 (
183 );
187 public: void SetArray
188 (
189 const std::vector<NXOpen::TaggedObject *> & objects
190 );
195 public: std::vector<NXOpen::TaggedObject *> GetArray
196 (
197 );
202 public: std::vector<NXOpen::SelectObject *> GetSelectObjectArray
203 (
204 );
210 public: bool Add
211 (
213 NXOpen::TaggedObject * selection1 ,
214 NXOpen::View * view1 ,
215 const NXOpen::Point3d & point1 ,
216 NXOpen::TaggedObject * selection2 ,
217 NXOpen::View * view2 ,
218 const NXOpen::Point3d & point2
219 );
226 public: NX_DEPRECATED("Deprecated in NX10.0.0. Use other versions of NXOpen::SelectObjectList::Add.") bool Add
227 (
228 NXOpen::TaggedObject * selection ,
229 NXOpen::CaeObjectType::CaeSubType caeSubType ,
230 int caeSubId
231 );
236 public: virtual bool Validate
237 (
238 );
239 };
240}
241#ifdef _MSC_VER
242#pragma warning(pop)
243#endif
244#ifdef __GNUC__
245#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
246#pragma GCC diagnostic warning "-Wdeprecated-declarations"
247#endif
248#endif
249#undef EXPORTLIBRARY