NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Expression.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++与JA API接口的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Expression.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/NXObject.hxx>
22#include <NXOpen/NXObject.hxx>
23#include <NXOpen/ugmath.hxx>
24#include <NXOpen/libnxopencpp_exports.hxx>
25#ifdef _MSC_VER
26#pragma warning(push)
27#pragma warning(disable:4996)
28#endif
29#ifdef __GNUC__
30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31#endif
32namespace NXOpen
33{
34 class Expression;
35 namespace Features
36 {
37 class Feature;
38 }
39 class NXObject;
40 class Unit;
41 class _ExpressionBuilder;
42 class ExpressionImpl;
46 class NXOPENCPPEXPORT Expression : public NXOpen::NXObject
47 {
56
66
72 private: ExpressionImpl * m_expression_impl;
73 private: friend class _ExpressionBuilder;
74 protected: Expression();
75 public: ~Expression();
82 (
83 );
108 (
109 );
116 (
117 );
122 public: void SetFormula
123 (
124 const NXString & rightHandSide
125 );
131 (
132 const char * rightHandSide
133 );
157 (
158 );
181 public: void SetRightHandSide
182 (
183 const NXString & rightHandSide
184 );
208 (
209 const char * rightHandSide
210 );
216 public: double NumberValue
217 (
218 );
224 public: void SetNumberValue
225 (
226 double expressionValue
227 );
237 public: double Value
238 (
239 );
249 public: void SetValue
250 (
251 double expressionValue
252 );
262 (
263 double numberValue ,
264 NXOpen::Unit * units
265 );
271 (
273 double* numberValue ,
274 NXOpen::Unit ** unit
275 );
280 (
281 );
285 public: bool BooleanValue
286 (
287 );
291 public: int IntegerValue
292 (
293 );
298 (
299 );
304 (
306 );
311 (
312 );
317 (
319 );
325 public: bool IsUserLocked
326 (
327 );
333 public: void SetUserLocked
334 (
335 bool isLocked
336 );
342 (
343 );
348 (
349 bool isLocked
350 );
354 public: void EditComment
355 (
356 const NXString & newComment
357 );
362 (
363 const char * newComment
364 );
369 (
370 );
374 public: std::vector<NXOpen::Features::Feature *> GetUsingFeatures
375 (
376 );
385 (
386 );
395 (
396 );
401 (
402 );
407 (
408 );
412 public: void SetUnits
413 (
414 NXOpen::Unit * unitType
415 );
421 (
422 );
427 (
428 );
434 (
435 );
439 public: std::vector<NXOpen::Expression *> GetReferencingExpressions
440 (
441 );
445 public: bool IsNoEdit
446 (
447 );
451 public: void SetNoEdit
452 (
453 bool isNoEdit
454 );
458 public: bool IsNoUpdate
459 (
460 );
464 public: void SetNoUpdate
465 (
466 bool isNoUpdate
467 );
472 (
473 );
478 (
479 NXString* partName ,
480 NXString* expName
481 );
486 (
487 );
501 public: double GetValueUsingUnits
502 (
504 );
509 (
510 );
514 public: void MakeConstant
515 (
516 );
522 public: bool IsUserSpecified
523 (
524 );
530 public: void SetUserSpecified
531 (
532 bool isUserSpecified
533 );
538 (
539 );
544 (
545 bool isMassManagementExp
546 );
551 (
552 );
557 (
558 );
563 (
564 );
569 (
570 );
575 (
576 NXOpen::Expression::AttributeSourceType attributeSourceType ,
578 );
583 (
584 NXOpen::Expression::AttributeSourceType* attributeSourceType ,
586 );
587 };
588}
589#ifdef _MSC_VER
590#pragma warning(pop)
591#endif
592#ifdef __GNUC__
593#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
594#pragma GCC diagnostic warning "-Wdeprecated-declarations"
595#endif
596#endif
597#undef EXPORTLIBRARY