NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Preferences_PartObject.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口头文件:JA API
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Preferences_PartObject.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/Preferences_ViewVisualizationSpecialEffects.hxx>
22
#include <NXOpen/TaggedObject.hxx>
23
#include <NXOpen/libnxopencpp_preferences_exports.hxx>
24
#ifdef _MSC_VER
25
#pragma warning(push)
26
#pragma warning(disable:4996)
27
#endif
28
#ifdef __GNUC__
29
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30
#endif
31
namespace
NXOpen
32
{
33
namespace
Preferences
34
{
35
class
PartObject
;
36
}
37
namespace
Preferences
38
{
39
class
PartPreferences
;
40
}
41
namespace
Preferences
42
{
43
class
PartObjectImpl;
49
class
NXOPENCPP_PREFERENCESEXPORT
PartObject
50
{
52
public
:
enum
ColorSelection
53
{
54
ColorSelectionNoChange
,
55
ColorSelectionDefaultColor
,
56
ColorSelectionColor
57
};
58
59
public
:
enum
ObjectType
60
{
61
ObjectTypeGeneral
,
62
ObjectTypeLine
,
63
ObjectTypeArc
,
64
ObjectTypeConic
,
65
ObjectTypeSpline
,
66
ObjectTypeSolidbody
,
67
ObjectTypeSheetbody
,
68
ObjectTypeDatum
,
69
ObjectTypePoint
,
70
ObjectTypeCoordinateSystem
,
71
ObjectTypeAllButDefault
,
72
ObjectTypeDatumCsys
,
73
ObjectTypeTraceline
,
74
ObjectTypeInfiniteLine
,
75
ObjectTypePointCloud
76
};
77
78
public
:
enum
LineFontType
79
{
80
LineFontTypePartDefault
= 1,
81
LineFontTypeSolid
,
82
LineFontTypeDashed
,
83
LineFontTypePhantom
,
84
LineFontTypeCenterline
,
85
LineFontTypeDotted
,
86
LineFontTypeLongDashed
,
87
LineFontTypeDottedDashed
,
88
LineFontTypeEight
,
89
LineFontTypeNine
,
90
LineFontTypeTen
,
91
LineFontTypeEleven
92
};
93
94
public
:
enum
WidthType
95
{
96
WidthTypePartDefault
= 1,
97
WidthTypeThinWidth
,
98
WidthTypeNormalWidth
,
99
WidthTypeThickWidth
,
100
WidthTypeWidthOne
,
101
WidthTypeWidthTwo
,
102
WidthTypeWidthThree
,
103
WidthTypeWidthFour
,
104
WidthTypeWidthFive
,
105
WidthTypeWidthSix
,
106
WidthTypeWidthSeven
,
107
WidthTypeWidthEight
,
108
WidthTypeWidthNine
109
};
110
private
:
PartObjectImpl
* m_partobject_impl;
111
private
:
NXOpen::Preferences::PartPreferences
* m_owner;
113
public
:
explicit
PartObject
(
NXOpen::Preferences::PartPreferences
*owner);
115
public
:
117
tag_t
Tag
()
const
;
118
public
:
~PartObject
();
132
public
:
NX_DEPRECATED
(
"Deprecated in NX2312.0.0. Using NXOpen::Preferences::PartObject::GetObjectColor"
) int GetColor
133
(
134
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type
135
);
146
public:
NX_DEPRECATED
(
"Deprecated in NX2312.0.0. Using NXOpen::Preferences::PartObject::SetObjectColor"
)
void
SetColor
147
(
148
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type ,
149
int
color
150
);
163
public:
int
GetObjectColor
164
(
165
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type ,
166
NXOpen
::
Preferences
::
PartObject
::
ColorSelection
* colorSelection
167
);
179
public:
void
SetObjectColor
180
(
181
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type ,
182
NXOpen
::
Preferences
::
PartObject
::
ColorSelection
colorSelection ,
183
int
color
184
);
188
public:
NXOpen
::
Preferences
::
PartObject
::
LineFontType
GetLineFont
189
(
190
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type
191
);
195
public:
void
SetLineFont
196
(
197
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type ,
198
NXOpen
::
Preferences
::
PartObject
::
LineFontType
lineFont
199
);
203
public:
NXOpen
::
Preferences
::
PartObject
::
WidthType
GetWidth
204
(
205
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type
206
);
210
public:
void
SetWidth
211
(
212
NXOpen
::
Preferences
::
PartObject
::
ObjectType
type ,
213
NXOpen
::
Preferences
::
PartObject
::
WidthType
width
214
);
218
public:
bool
PartiallyShaded
219
(
220
);
224
public:
void
SetPartiallyShaded
225
(
226
bool
partiallyShaded
227
);
231
public:
bool
FaceAnalysis
232
(
233
);
237
public:
void
SetFaceAnalysis
238
(
239
bool
faceAnalysis
240
);
244
public:
int
Translucency
245
(
246
);
250
public:
void
SetTranslucency
251
(
252
int
translucency
253
);
257
public:
NXOpen
::
Preferences
::
ViewVisualizationSpecialEffects
::ColorRGB
ConvertColorNumberToRGBValue
258
(
259
int
colorNumber
260
);
264
public:
int
ConvertRGBValueToColorNumber
265
(
266
const
NXOpen
::
Preferences
::
ViewVisualizationSpecialEffects
::ColorRGB & fogColorRgbValue
267
);
277
public:
void
GetLegacyLineWidthMap
278
(
279
std::vector<
NXOpen
::
Preferences
::
PartObject
::
WidthType
> & newLineWidths
284
);
294
public:
void
SetLegacyLineWidthMap
295
(
296
const std::vector<
NXOpen
::
Preferences
::
PartObject
::
WidthType
> & newLineWidths
301
);
310
public:
bool
MigrateLegacyLineWidths
311
(
312
);
316
public:
int
PointSymbol
317
(
318
);
322
public:
void
SetPointSymbol
323
(
324
int
pointSymbol
325
);
326
};
//lint !e1712 default constructor not defined for class
327
}
328
}
329
#ifdef _MSC_VER
330
#pragma warning(pop)
331
#endif
332
#ifdef __GNUC__
333
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
334
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
335
#endif
336
#endif
337
#undef EXPORTLIBRARY