NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Display_TransientText.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// JA API的C++接口头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Display_TransientText.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/TransientObject.hxx>
22
#include <NXOpen/ugmath.hxx>
23
#include <NXOpen/libnxopencpp_display_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
Display
34
{
35
class
TransientText
;
36
}
37
class
DisplayableObject
;
38
class
View
;
39
namespace
Display
40
{
41
}
42
namespace
Display
43
{
44
class
TransientTextImpl;
48
class
NXOPENCPP_DISPLAYEXPORT
TransientText
:
public
NXOpen::TransientObject
49
{
51
public
:
enum
ViewType
52
{
53
ViewTypeWorkViewOnly
,
54
ViewTypeAllActiveViews
,
55
ViewTypeViewOfLastCursor
,
56
ViewTypeAllViewsButDrawing
,
57
ViewTypeAllActiveMemberViews
,
58
ViewTypeFirstViewFound
59
};
60
61
public
:
enum
StandardTextRef
62
{
63
StandardTextRefSystemDefault
,
64
StandardTextRefBaselineStart
= 0,
65
StandardTextRefBaselineCenter
,
66
StandardTextRefBaselineEnd
,
67
StandardTextRefTopLeft
,
68
StandardTextRefTopCenter
,
69
StandardTextRefTopRight
,
70
StandardTextRefMiddleLeft
,
71
StandardTextRefMiddleCenter
,
72
StandardTextRefMiddleRight
,
73
StandardTextRefBottomLeft
,
74
StandardTextRefBottomCenter
,
75
StandardTextRefBottomRight
76
};
77
78
public
:
enum
TextSize
79
{
80
TextSizeSmall
,
81
TextSizeNormal
,
82
TextSizeMedium
= 1,
83
TextSizeLarge
,
84
TextSizeNumSizes
85
};
86
private
:
TransientTextImpl
* m_transienttext_impl;
88
public
:
explicit
TransientText
(
void
*ptr);
90
93
public
:
virtual
~TransientText
();
98
public
:
void
DisplayTemporaryAbsoluteGeometry
99
(
100
int
fontIndex ,
101
NXOpen::View
* view ,
103
NXOpen::Display::TransientText::ViewType
viewType ,
104
NXOpen::DisplayableObject
*
object
,
106
const
NXOpen::Point3d
& position
107
);
113
public
:
void
DisplayTemporaryScreenGeometry
114
(
115
int
fontIndex ,
116
NXOpen::View
* view ,
118
NXOpen::Display::TransientText::ViewType
viewType ,
119
NXOpen::DisplayableObject
*
object
,
121
const
NXOpen::Point3d
& position
122
);
129
public
:
void
DisplayTemporaryAbsRotScreenSizeGeometry
130
(
131
int
fontIndex ,
132
NXOpen::View
* view ,
134
NXOpen::Display::TransientText::ViewType
viewType ,
135
NXOpen::DisplayableObject
*
object
,
137
const
NXOpen::Point3d
& position
138
);
143
public
:
void
AddTextString
144
(
145
const
NXString
& textString
146
);
151
void
AddTextString
152
(
153
const
char
* textString
154
);
159
public
:
NXString
FontStyle
160
(
161
);
166
public
:
void
SetFontStyle
167
(
168
const
NXString
& fontStyle
169
);
174
void
SetFontStyle
175
(
176
const
char
* fontStyle
177
);
181
public
:
int
Color
182
(
183
);
187
public
:
void
SetColor
188
(
189
int
colorIndex
190
);
194
public
:
NXOpen::Display::TransientText::StandardTextRef
ReferencePositionType
195
(
196
);
200
public
:
void
SetReferencePositionType
201
(
202
NXOpen::Display::TransientText::StandardTextRef
referencePositionType
203
);
208
public
:
NXOpen::Display::TransientText::TextSize
ScreenTextSize
209
(
210
);
215
public
:
void
SetScreenTextSize
216
(
217
NXOpen::Display::TransientText::TextSize
textSize
218
);
223
public
:
void
GetAbsoluteTextSize
224
(
225
double
* glyphWidth ,
226
double
* glyphHeight
227
);
232
public
:
void
SetAbsoluteTextSize
233
(
234
double
glyphWidth ,
235
double
glyphHeight
236
);
237
};
//lint !e1712 default constructor not defined for class
238
}
239
}
240
#ifdef _MSC_VER
241
#pragma warning(pop)
242
#endif
243
#ifdef __GNUC__
244
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
245
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
246
#endif
247
#endif
248
#undef EXPORTLIBRARY