NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Drawings_SectionLineCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Drawings_SectionLineCollection.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/Drawings_SectionLineBuilder.hxx>
23#include <NXOpen/Drawings_SectionLineSegmentBuilder.hxx>
24#include <NXOpen/Drawings_SectionLineStyleBuilder.hxx>
25#include <NXOpen/Drawings_SketchSectionLineBuilder.hxx>
26#include <NXOpen/TaggedObjectCollection.hxx>
27#include <NXOpen/TaggedObject.hxx>
28#include <NXOpen/libnxopencpp_drawings_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 namespace Drawings
39 {
41 }
42 class DraftingManager;
43 namespace Drawings
44 {
45 class SectionLine;
46 }
47 namespace Annotations
48 {
49 class BaseNote;
50 }
51 namespace Drawings
52 {
53 class SectionLineBuilder;
54 }
55 namespace Drawings
56 {
58 }
59 namespace Drawings
60 {
61 class SectionLineStyleBuilder;
62 }
63 namespace Drawings
64 {
66 }
67 namespace Drawings
68 {
69 class SectionLineCollectionImpl;
73 class NXOPENCPP_DRAWINGSEXPORT SectionLineCollection : public NXOpen::TaggedObjectCollection
74 {
75 private: SectionLineCollectionImpl * m_sectionlinecollection_impl;
76 private: NXOpen::DraftingManager* m_owner;
78 public: explicit SectionLineCollection(NXOpen::DraftingManager *owner);
80 public:
82 tag_t Tag() const;
83 public: ~SectionLineCollection();
85 //lint -sem(NXOpen::Drawings::SectionLineCollection::iterator::copy,initializer)
86 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Drawings::SectionLine *>
87 {
88 public:
90 iterator() : m_context(nullptr), m_current(NULL_TAG)
91 {
92 // coverity[uninit_member]
93 } //lint !e1401 m_state未初始化
94
95 explicit iterator(NXOpen::Drawings::SectionLineCollection *context) : m_context(context), m_current(NULL_TAG)
96{
97 // coverity[uninit_member]
98 }//lint !e1401 m_state is not initialized
100
101 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
102 {
103 copy(other);
104 }
105
106 iterator &operator =(const iterator &other)
107 {
108 if (&other != this)
109 copy(other);
110 return *this;
111 }
112
113 bool operator ==(const iterator &other) const
114 {
115 return m_current == other.m_current && m_context == other.m_context;
116 }
117
118 bool operator !=(const iterator &other) const
119 {
120 return !operator == (other);
121 }
122
123 NXOPENCPP_DRAWINGSEXPORT value_type operator * () const;
125 iterator & operator ++()
126 {
127 next();
128 return *this;
129 }
130
131 iterator operator ++(int)
132 {
133 iterator tmp(*this);
134 ++*this;
135 return tmp;
136 }
137 private:
138 void copy(const iterator &other)
139 {
140 m_context = other.m_context;
141 m_current = other.m_current;
142 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
143 m_state[i] = other.m_state[i];
144 }
145 NXOPENCPP_DRAWINGSEXPORT void next();
147 tag_t m_current;
148 unsigned int m_state[8];
149 };
150
154 {
155 return iterator(this);
156 }
157
161 public: NX_DEPRECATED("在 NX10.0.0 中已过时。请改用 Drawings::SectionViewBuilder::SectionLineSegments。") NXOpen::Drawings::SectionLineBuilder * CreateSectionLineBuilder
162 (
163 NXOpen::Drawings::SectionLine * sectionLine
164 );
169 public: NX_DEPRECATED("在 NX10.0.0 中已过时。请改用 Drawings::SectionViewBuilder::SectionLineSegments。") NXOpen::Drawings::SectionLineSegmentBuilder * CreateSectionLineSegmentBuilder
170 (
171 );
176 public: NX_DEPRECATED("在 NX10.0.0 中已过时。请改用 NXOpen::Drawings::ViewSectionLineBuilder。") NXOpen::Drawings::SectionLineStyleBuilder * CreateSectionLineStyleBuilder
177 (
178 NXOpen::Drawings::SectionLine * sectionline
179 );
184 (
185 NXOpen::Drawings::SectionLine * sectionLine
186 );
192 (
193 NXOpen::Annotations::BaseNote * note
194 );
195}; //lint !e1712 类未定义默认构造函数
196 }
197}
198#ifdef _MSC_VER
199#pragma warning(pop)
200#endif
201#ifdef __GNUC__
202#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
203#pragma GCC diagnostic warning "-Wdeprecated-declarations"
204#endif
205#endif
206#undef EXPORTLIBRARY