NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Preferences_WorkPlane.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Preferences_WorkPlane.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/NXObject.hxx>
22#include <NXOpen/libnxopencpp_preferences_exports.hxx>
23#ifdef _MSC_VER
24#pragma warning(push)
25#pragma warning(disable:4996)
26#endif
27#ifdef __GNUC__
28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29#endif
30namespace NXOpen
31{
32 namespace Preferences
33 {
34 class WorkPlane;
35 }
36 class NXObject;
37 namespace Preferences
38 {
39 class _WorkPlaneBuilder;
40 class WorkPlaneImpl;
45 class NXOPENCPP_PREFERENCESEXPORT WorkPlane : public NXOpen::NXObject
46 {
48 public: enum Grid
49 {
52 };
53
54 public:
55 struct GridSize
56 {
57 public: double MajorGridSpacing;
58 public: int MinorLinesPerMajor;
59 public: int SnapPointsPerMinor;
60 public: GridSize() :
64 {
65 }
67 public: GridSize(double majorGridSpacingInitial ,
68 int minorLinesPerMajorInitial ,
69 int snapPointsPerMinorInitial ) :
70 MajorGridSpacing(majorGridSpacingInitial),
71 MinorLinesPerMajor(minorLinesPerMajorInitial),
72 SnapPointsPerMinor(snapPointsPerMinorInitial)
73 {
74 }
75 };
76
77 public:
78 struct NonuniformGridSize
79 {
82 public: NonuniformGridSize() :
83 XcGridSize(),
85 {
86 }
89 const NXOpen::Preferences::WorkPlane::GridSize &ycGridSizeInitial ) :
90 XcGridSize(xcGridSizeInitial),
91 YcGridSize(ycGridSizeInitial)
92 {
93 }
94 };
95
96 public:
97 struct PolarGridSize
98 {
101 public: PolarGridSize() :
104{
105 }
107 public: PolarGridSize(const NXOpen::Preferences::WorkPlane::GridSize &radialGridSizeInitial ,
108 const NXOpen::Preferences::WorkPlane::GridSize &angularGridSizeInitial ) :
109 RadialGridSize(radialGridSizeInitial),
110 AngularGridSize(angularGridSizeInitial)
111 {
112 }
113 };
114 private: WorkPlaneImpl * m_workplane_impl;
115 private: friend class _WorkPlaneBuilder;
116 protected: WorkPlane();
117 public: ~WorkPlane();
121 public: bool ShowGrid
122 (
123 );
127 public: void SetShowGrid
128 (
129 bool showGrid
130 );
134 public: bool ShowLabels
135 (
136 );
140 public: void SetShowLabels
141 (
142 bool showLabels
143 );
147 public: bool GridOnTop
148 (
149 );
153 public: void SetGridOnTop
154 (
155 bool gridOnTop
156 );
160 public: bool SnapToGrid
161 (
162 );
166 public: void SetSnapToGrid
167 (
168 bool snapToGrid
169 );
173 public: bool GridIsNonUniform
174 (
175 );
180 (
181 bool gridIsNonUniform
182 );
187 (
188 );
193 (
194 bool rectangularShowMajorLines
195 );
200 (
201 );
206 (
207 bool polarShowMajorLines
208 );
212 public: int GridColor
213 (
214 );
218 public: void SetGridColor
219 (
220 int gridColor
221 );
226 (
227 );
231 public: void SetGridType
232 (
234 );
239 (
240 );
245 (
247 );
252 (
253 );
258 (
260 );
265 (
266 );
270 public: void SetPolarGridSize
271 (
273 );
274 };
275 }
276}
277#ifdef _MSC_VER
278#pragma warning(pop)
279#endif
280#ifdef __GNUC__
281#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
282#pragma GCC diagnostic warning "-Wdeprecated-declarations"
283#endif
284#endif
285#undef EXPORTLIBRARY