NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
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
36namespace 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 {
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 {
86 private: DimensionImpl * m_dimension_impl;
87 private: friend class _DimensionBuilder;
88 protected: Dimension();
89 public: ~Dimension();
94 (
95 );
100 (
102 );
108 public: void SetOriginCentered
109 (
110 bool isOriginCentered
111 );
117 public: bool IsOriginCentered
118 (
119 );
124 (
125 double narrowTextOffset
126 );
131 (
132 );
137 (
138 const NXOpen::Annotations::NarrowDimensionData & narrowDimensionData
139 );
144 (
145 );
150 (
151 );
156 (
157 NXOpen::Annotations::Associativity * newAssociativity
158 );
163 (
164 );
169 (
170 NXOpen::Annotations::Associativity * newAssociativity
171 );
177 public: void SetToleranceType
178 (
180 );
187 (
188 );
195 (
196 bool referenceDimensionFlag
197 );
204 (
205 );
212 (
213 bool inspectionDimensionFlag
214 );
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 );
243 (
244 int decimalPlaces
245 );
252 (
253 );
260 (
261 int decimalPlaces
262 );
269 (
270 );
278 (
279 double upperToleranceValue
280 );
287 public: double UpperToleranceValue
288 (
289 );
297 (
298 double toleranceValue
299 );
307 (
308 );
313 (
314 );
319 (
320 );
329 (
330 double upperToleranceValue
331 );
339 public: double LowerToleranceValue
340 (
341 );
350 (
351 double toleranceValue
352 );
361 (
362 );
369 (
370 int decimalPlaces
371 );
378 (
379 );
386 (
387 int decimalPlaces
388 );
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 );
428 (
429 NXOpen::Direction * direction
430 );
437 (
438 );
445 (
446 NXOpen::View * view
447 );
454 (
455 );
462 (
463 );
470 (
471 const NXString & fitDeviation
472 );
479 (
480 const char * fitDeviation
481 );
487 public: int LimitFitGrade
488 (
489 );
495 public: void SetLimitFitGrade
496 (
497 int fitGrade
498 );
505 (
506 );
513 (
514 const NXString & fitShaftDeviation
515 );
522 (
523 const char * fitShaftDeviation
524 );
531 (
532 );
539 (
540 int fitShaftGrade
541 );
548 (
549 );
556 (
557 NXOpen::Annotations::FitAnsiHoleType fitEnhancedDisplayType
558 );
565 (
566 );
573 (
574 NXOpen::Annotations::FitDisplayStyle fitDisplayStyle
575 );
582 (
583 );
590 (
591 NXOpen::Annotations::FitAnsiHoleType fitHoleType
592 );
597 public: bool IsApproximate
598 (
599 );
604 (
605 );
610 (
611 int index
612 );
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