NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Preferences_SketchPreferences.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口头文件:草图首选项API
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Preferences_SketchPreferences.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/TaggedObject.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
30
namespace
NXOpen
31
{
32
namespace
Preferences
33
{
34
class
SketchPreferences
;
35
}
36
class
Sketch
;
37
namespace
Preferences
38
{
39
class
SketchPreferencesImpl;
43
class
NXOPENCPP_PREFERENCESEXPORT
SketchPreferences
44
{
46
public
:
enum
DimensionLabelType
47
{
48
DimensionLabelTypeExpression
,
49
DimensionLabelTypeName
,
50
DimensionLabelTypeValue
51
};
52
53
public
:
enum
DimensionTextSizeMode
54
{
55
DimensionTextSizeModeDraftingStandard
,
56
DimensionTextSizeModeFixedOnScreen
,
57
DimensionTextSizeModeVariable
58
};
59
private
:
SketchPreferencesImpl
* m_sketchpreferences_impl;
60
private
:
NXOpen::Sketch
* m_owner;
62
public
:
explicit
SketchPreferences
(
NXOpen::Sketch
*owner);
64
public
:
66
tag_t
Tag
()
const
;
67
public
:
~SketchPreferences
();
71
public
:
double
ConstraintSymbolSize
72
(
73
);
77
public
:
void
SetConstraintSymbolSize
78
(
79
double
constraintSize
80
);
84
public
:
NXOpen::Preferences::SketchPreferences::DimensionLabelType
DimensionLabel
85
(
86
);
90
public
:
void
SetDimensionLabel
91
(
92
NXOpen::Preferences::SketchPreferences::DimensionLabelType
dimensionLabel
93
);
97
public
:
void
ApplySketchPreferences
98
(
99
int
dimDisplayFlag
101
);
105
public
:
bool
DisplayObjectColor
106
(
107
);
111
public
:
void
SetDisplayObjectColor
112
(
113
bool
displayObjectColor
114
);
118
public
:
bool
DisplayReferenceGeometry
119
(
120
);
124
public
:
void
SetDisplayReferenceGeometry
125
(
126
bool
displayReferenceGeometry
127
);
131
public
:
bool
CreateInferredConstraints
132
(
133
);
137
public
:
void
SetCreateInferredConstraints
138
(
139
bool
createInferredConstraints
140
);
145
public
:
NX_DEPRECATED
(
"Deprecated in NX1926.0.0. Use NXOpen::Preferences::SketchPreferences::TextSizeMode instead."
) bool TextSizeFixed
146
(
147
);
152
public:
NX_DEPRECATED
(
"Deprecated in NX1926.0.0. Use NXOpen::Preferences::SketchPreferences::SetTextSizeMode instead."
)
void
SetTextSizeFixed
153
(
154
bool
textSizeFixed
155
);
159
public:
double
FixedTextSize
160
(
161
);
165
public:
void
SetFixedTextSize
166
(
167
double
fixedTextSize
168
);
172
public:
double
DimensionTextScale
173
(
174
);
178
public:
void
SetDimensionTextScale
179
(
180
double
dimensionTextScale
181
);
185
public:
bool
ContinuousAutoDimensioningSetting
186
(
187
);
191
public:
void
SetContinuousAutoDimensioningSetting
192
(
193
bool
autoDim
194
);
198
public:
bool
UseSolvingTolerance
199
(
200
);
204
public:
void
SetUseSolvingTolerance
205
(
206
bool
useTolerance
207
);
211
public:
double
SolvingTolerance
212
(
213
);
217
public:
void
SetSolvingTolerance
218
(
219
double
tolerance
220
);
224
public:
bool
DisplayObjectName
225
(
226
);
230
public:
void
SetDisplayObjectName
231
(
232
bool
displayObjectName
233
);
237
public:
bool
DisplayVertices
238
(
239
);
243
public:
void
SetDisplayVertices
244
(
245
bool
displayVertices
246
);
250
public:
bool
DisplayShadedRegions
251
(
252
);
256
public:
void
SetDisplayShadedRegions
257
(
258
bool
displayShadedRegions
259
);
263
public:
bool
DisplayParenthesesOnReferenceDimensions
264
(
265
);
269
public:
void
SetDisplayParenthesesOnReferenceDimensions
270
(
271
bool
displayParentheses
272
);
276
public:
void
SetTextSizeMode
277
(
278
NXOpen
::
Preferences
::
SketchPreferences
::
DimensionTextSizeMode
mode
279
);
283
public:
NXOpen
::
Preferences
::
SketchPreferences
::
DimensionTextSizeMode
TextSizeMode
284
(
285
);
286
};
//lint !e1712 未为类定义默认构造函数
287
}
288
}
289
#ifdef _MSC_VER
290
#pragma warning(pop)
291
#endif
292
#ifdef __GNUC__
293
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
294
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
295
#endif
296
#endif
297
#undef EXPORTLIBRARY