NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_CameraCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 用于JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_CameraCollection.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <iterator>
19#include <vector>
20#include <NXOpen/NXString.hxx>
21#include <NXOpen/Callback.hxx>
22#include <NXOpen/BasePart.hxx>
23#include <NXOpen/Display_Camera.hxx>
24#include <NXOpen/Display_CameraBuilder.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/libnxopencpp_display_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 namespace Display
38 {
39 class CameraCollection;
40 }
41 class BasePart;
42 namespace Display
43 {
44 class Camera;
45 }
46 namespace Display
47 {
48 class CameraBuilder;
49 }
50 class Layout;
51 class View;
52 namespace Display
53 {
54 class CameraCollectionImpl;
60 class NXOPENCPP_DISPLAYEXPORT CameraCollection : public NXOpen::TaggedObjectCollection
61 {
62 private: CameraCollectionImpl * m_cameracollection_impl;
63 private: NXOpen::BasePart* m_owner;
65 public: explicit CameraCollection(NXOpen::BasePart *owner);
67 public:
69 tag_t Tag() const;
70 public: ~CameraCollection();
72 //lint -sem(NXOpen::Display::CameraCollection::iterator::copy,initializer)
73 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Display::Camera *>
74 {
75 public:
77 iterator() : m_context(nullptr), m_current(NULL_TAG)
78 {
79 // coverity[uninit_member]
80 } //lint !e1401 m_state is not initialized
81
82 explicit iterator(NXOpen::Display::CameraCollection *context) : m_context(context), m_current(NULL_TAG)
83 {
84 // coverity[uninit_member]
85 }//lint !e1401 m_state is not initialized
87
88 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
89 {
90 copy(other);
91 }
92
93 iterator &operator =(const iterator &other)
94 {
95 if (&other != this)
96copy(other);
97 return *this;
98 }
99
100 bool operator ==(const iterator &other) const
101 {
102 return m_current == other.m_current && m_context == other.m_context;
103 }
104
105 bool operator !=(const iterator &other) const
106 {
107 return !operator == (other);
108 }
109
110 NXOPENCPP_DISPLAYEXPORT value_type operator * () const;
112 iterator & operator ++()
113 {
114 next();
115 return *this;
116 }
117
118 iterator operator ++(int)
119 {
120 iterator tmp(*this);
121 ++*this;
122 return tmp;
123 }
124 private:
125 void copy(const iterator &other)
126 {
127 m_context = other.m_context;
128 m_current = other.m_current;
129 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
130 m_state[i] = other.m_state[i];
131 }
132 NXOPENCPP_DISPLAYEXPORT void next();
134 tag_t m_current;
135 unsigned int m_state[8];
136 };
137
141 {
142 return iterator(this);
143 }
144
146 (
148 );
151 (
152 NXOpen::Display::Camera * camera ,
153 bool applyCameraToView
154 );
157 (
158 NXOpen::View * view ,
159 NXOpen::Layout * layout ,
161 );
164 (
165 NXOpen::View * view ,
166 NXOpen::Layout * layout ,
167 NXOpen::Display::Camera * camera ,
168 bool applyCameraToView
169 );
172 (
173 const NXString & journalIdentifier
174 );
182 (
183 const char * journalIdentifier
184 );
185 }; //lint !e1712 default constructor not defined for class
186 }
187}
188#ifdef _MSC_VER
189#pragma warning(pop)
190#endif
191#ifdef __GNUC__
192#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
193#pragma GCC diagnostic warning "-Wdeprecated-declarations"
194#endif
195#endif
196#undef EXPORTLIBRARY