NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Annotations_Dimension.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++ 接口访问 JA API 的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Annotations_Dimension.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/Annotations_AppendedText.hxx>
22
#include <NXOpen/Annotations_Associativity.hxx>
23
#include <NXOpen/Annotations_DimensionPreferences.hxx>
24
#include <NXOpen/Dimensions.hxx>
25
#include <NXOpen/Annotations_Annotation.hxx>
26
#include <NXOpen/Annotations_IAppendedText.hxx>
27
#include <NXOpen/INXObject.hxx>
28
#include <NXOpen/libnxopencpp_annotations_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
36
namespace
NXOpen
37
{
38
namespace
Annotations
39
{
40
class
Dimension
;
41
}
42
namespace
Annotations
43
{
44
class
Annotation
;
45
}
46
namespace
Annotations
47
{
48
class
AppendedText
;
49
}
50
namespace
Annotations
51
{
52
class
Associativity
;
53
}
54
namespace
Annotations
55
{
56
class
DimensionPreferences
;
57
}
58
namespace
Annotations
59
{
60
class
IAppendedText
;
61
}
62
namespace
Assemblies
63
{
64
class
Component
;
65
}
66
class
BasePart
;
67
class
Direction
;
68
class
INXObject
;
69
class
View
;
70
namespace
Annotations
71
{
72
class
_DimensionBuilder;
73
class
DimensionImpl;
77
class
NXOPENCPP_ANNOTATIONSEXPORT Dimension :
public
NXOpen::Annotations::Annotation
,
public
virtual
NXOpen::Annotations::IAppendedText
78
{
80
public
:
enum
MeasurementTypes
81
{
82
MeasurementTypesGeneral
,
83
MeasurementTypesDirected
,
84
MeasurementTypesFeatureOfSize
85
};
86
private
:
DimensionImpl
* m_dimension_impl;
87
private
:
friend
class
_DimensionBuilder;
88
protected
:
Dimension
();
89
public
:
~Dimension
();
93
public
:
NXOpen::Annotations::DimensionPreferences
*
GetDimensionPreferences
94
(
95
);
99
public
:
void
SetDimensionPreferences
100
(
101
NXOpen::Annotations::DimensionPreferences
* preferences
102
);
108
public
:
void
SetOriginCentered
109
(
110
bool
isOriginCentered
111
);
117
public
:
bool
IsOriginCentered
118
(
119
);
123
public
:
void
SetNarrowDimensionTextOffset
124
(
125
double
narrowTextOffset
126
);
130
public
:
double
GetNarrowDimensionTextOffset
131
(
132
);
136
public
:
void
SetNarrowDimensionPreferences
137
(
138
const
NXOpen::Annotations::NarrowDimensionData
& narrowDimensionData
139
);
143
public
:
NXOpen::Annotations::NarrowDimensionData
GetNarrowDimensionPreferences
144
(
145
);
149
public
:
NXOpen::Annotations::Associativity
*
GetFirstAssociativity
150
(
151
);
155
public
:
void
SetFirstAssociativity
156
(
157
NXOpen::Annotations::Associativity
* newAssociativity
158
);
162
public
:
NXOpen::Annotations::Associativity
*
GetSecondAssociativity
163
(
164
);
168
public
:
void
SetSecondAssociativity
169
(
170
NXOpen::Annotations::Associativity
* newAssociativity
171
);
177
public
:
void
SetToleranceType
178
(
179
NXOpen::Annotations::ToleranceType
toleranceType
180
);
186
public
:
NXOpen::Annotations::ToleranceType
ToleranceType
187
(
188
);
194
public
:
void
SetReferenceDimensionFlag
195
(
196
bool
referenceDimensionFlag
197
);
203
public
:
bool
ReferenceDimensionFlag
204
(
205
);
211
public
:
void
SetInspectionDimensionFlag
212
(
213
bool
inspectionDimensionFlag
214
);
220
public
:
bool
InspectionDimensionFlag
221
(
222
);
226
public
:
double
ComputedSize
227
(
228
);
233
public
:
NX_DEPRECATED
(
"Deprecated in NX8.0.0. Use NXOpen::Annotations::Dimension::SetDimensionText instead."
) void SetComputedSize
234
(
235
double
computedSize
236
);
242
public:
void
SetToleranceDecimalPlaces
243
(
244
int
decimalPlaces
245
);
251
public:
int
ToleranceDecimalPlaces
252
(
253
);
259
public:
void
SetMetricToleranceDecimalPlaces
260
(
261
int
decimalPlaces
262
);
268
public:
int
MetricToleranceDecimalPlaces
269
(
270
);
277
public:
void
SetUpperToleranceValue
278
(
279
double
upperToleranceValue
280
);
287
public:
double
UpperToleranceValue
288
(
289
);
296
public:
void
SetUpperMetricToleranceValue
297
(
298
double
toleranceValue
299
);
306
public:
double
UpperMetricToleranceValue
307
(
308
);
312
public:
double
ShaftUpperToleranceValue
313
(
314
);
318
public:
double
ShaftLowerToleranceValue
319
(
320
);
328
public:
void
SetLowerToleranceValue
329
(
330
double
upperToleranceValue
331
);
339
public:
double
LowerToleranceValue
340
(
341
);
349
public:
void
SetLowerMetricToleranceValue
350
(
351
double
toleranceValue
352
);
360
public:
double
LowerMetricToleranceValue
361
(
362
);
368
public:
void
SetNominalDecimalPlaces
369
(
370
int
decimalPlaces
371
);
377
public:
int
NominalDecimalPlaces
378
(
379
);
385
public:
void
SetMetricNominalDecimalPlaces
386
(
387
int
decimalPlaces
388
);
394
public:
int
MetricNominalDecimalPlaces
395
(
396
);
400
public:
bool
IsDriving
401
(
402
);
407
public:
void
SetDimensionText
408
(
409
std::vector<
NXString
> & mainTextLines
410
);
417
public:
void
GetDimensionText
418
(
419
std::vector<
NXString
> & mainTextLines ,
420
std::vector<
NXString
> & dualTextLines
421
);
427
public:
void
SetMeasurementDirection
428
(
429
NXOpen
::
Direction
* direction
430
);
436
public:
NXOpen
::
Direction
*
MeasurementDirection
437
(
438
);
444
public:
void
SetMeasurementDirectionView
445
(
446
NXOpen
::
View
* view
447
);
453
public:
NXOpen
::
View
*
MeasurementDirectionView
454
(
455
);
461
public:
NXString
LimitFitDeviation
462
(
463
);
469
public:
void
SetLimitFitDeviation
470
(
471
const
NXString
& fitDeviation
472
);
478
void
SetLimitFitDeviation
479
(
480
const
char
* fitDeviation
481
);
487
public:
int
LimitFitGrade
488
(
489
);
495
public:
void
SetLimitFitGrade
496
(
497
int
fitGrade
498
);
504
public:
NXString
LimitFitShaftDeviation
505
(
506
);
512
public:
void
SetLimitFitShaftDeviation
513
(
514
const
NXString
& fitShaftDeviation
515
);
521
void
SetLimitFitShaftDeviation
522
(
523
const
char
* fitShaftDeviation
524
);
530
public:
int
LimitFitShaftGrade
531
(
532
);
538
public:
void
SetLimitFitShaftGrade
539
(
540
int
fitShaftGrade
541
);
547
public:
NXOpen
::
Annotations
::
FitAnsiHoleType
LimitFitEnhancedDisplayType
548
(
549
);
555
public:
void
SetLimitFitEnhancedDisplayType
556
(
557
NXOpen
::
Annotations
::
FitAnsiHoleType
fitEnhancedDisplayType
558
);
564
public:
NXOpen
::
Annotations
::
FitDisplayStyle
LimitFitDisplayStyle
565
(
566
);
572
public:
void
SetLimitFitDisplayStyle
573
(
574
NXOpen
::
Annotations
::
FitDisplayStyle
fitDisplayStyle
575
);
581
public:
NXOpen
::
Annotations
::
FitAnsiHoleType
LimitFitAnsiHoleType
582
(
583
);
589
public:
void
SetLimitFitAnsiHoleType
590
(
591
NXOpen
::
Annotations
::
FitAnsiHoleType
fitHoleType
592
);
597
public:
bool
IsApproximate
598
(
599
);
603
public:
NXOpen
::
Annotations
::Dimension::
MeasurementTypes
GetMeasurementType
604
(
605
);
609
public:
void
UnretainForInconsistentSilhouette
610
(
611
int
index
612
);
616
public: virtual
NXOpen
::
Annotations
::
AppendedText
*
GetAppendedText
617
(
618
);
622
public: virtual
void
SetAppendedText
623
(
624
NXOpen
::
Annotations
::
AppendedText
* appendedText
625
);
626
};
627
}
628
}
629
#ifdef _MSC_VER
630
#pragma warning(pop)
631
#endif
632
#ifdef __GNUC__
633
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
634
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
635
#endif
636
#endif
637
#undef EXPORTLIBRARY