NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
PropertyContainer.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// PropertyContainer.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_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
31namespace NXOpen
32{
34 class TaggedObject;
35 class PropertyContainerImpl;
39 class NXOPENCPPEXPORT PropertyContainer : public NXOpen::TransientObject
40 {
66
72 private: PropertyContainerImpl * m_propertycontainer_impl;
74 public: explicit PropertyContainer(void *ptr);
76
79 public: virtual ~PropertyContainer();
84 (
85 );
89 public: int Length
90 (
91 );
95 public: std::vector<NXString> GetPropertyNames
96 (
97 );
102 (
103 const NXString & propertyName
104 );
109 (
110 const char * propertyName
111 );
116 (
117 int propertyIndex
118 );
123 public: void SetInteger
124 (
125 const NXString & propertyName ,
126 int value
127 );
133 (
134 const char * propertyName ,
135 int value
136 );
140 public: int GetInteger
141 (
142 const NXString & propertyName
143 );
148 (
149 const char * propertyName
150 );
154 public: int GetInteger
155 (
156 int propertyIndex
157 );
161 public: void SetLogical
162 (
163 const NXString & propertyName ,
164 bool value
165 );
170 (
171 const char * propertyName ,
172 bool value
173 );
177 public: bool GetLogical
178 (
179 const NXString & propertyName
180 );
185 (
186 const char * propertyName
187 );
191 public: bool GetLogical
192 (
193 int propertyIndex
194 );
198 public: void SetDouble
199 (
200 const NXString & propertyName ,
201 double value
202 );
207 (
208 const char * propertyName ,
209 double value
210 );
214 public: double GetDouble
215 (
216 const NXString & propertyName
217 );
222 (
223 const char * propertyName
224 );
228 public: double GetDouble
229 (
230 int propertyIndex
231 );
235 public: void SetString
236 (
237 const NXString & propertyName ,
238 const NXString & value
239 );
244 (
245 const char * propertyName ,
246 const char * value
247 );
252 (
253 const NXString & propertyName
254 );
259 (
260 const char * propertyName
261 );
266 (
267 int propertyIndex
268 );
272 public: void SetEnumAsString
273 (
274 const NXString & propertyName ,
275 const NXString & value
276 );
281 (
282 const char * propertyName ,
283 const char * value
284 );
289 (
290 const NXString & propertyName
291 );
296 (
297 const char * propertyName
298 );
303 (
304 int propertyIndex
305 );
309 public: void SetEnum
310 (
311 const NXString & propertyName ,
312 int value
313 );
318 (
319 const char * propertyName ,
320 int value
321 );
325 public: int GetEnum
326 (
327 const NXString & propertyName
328 );
333 (
334 const char * propertyName
335 );
339 public: int GetEnum
340 (
341 int propertyIndex
342 );
346 public: void SetEnumMembers
347 (
348 const NXString & propertyName ,
349 std::vector<NXString> & stringArray
350 );
355 (
356 const char * propertyName ,
357 std::vector<NXString> & stringArray
358 );
362 public: std::vector<NXString> GetEnumMembers
363 (
364 const NXString & propertyName
365 );
369 std::vector<NXString> GetEnumMembers
370 (
371 const char * propertyName
372 );
376 public: std::vector<NXString> GetEnumMembers
377 (
378 int propertyIndex
379 );
383 public: void SetStrings
384 (
385 const NXString & propertyName ,
386 std::vector<NXString> & stringArray
387 );
392 (
393 const char * propertyName ,
394 std::vector<NXString> & stringArray
395 );
399 public: std::vector<NXString> GetStrings
400 (
401 const NXString & propertyName
402 );
406 std::vector<NXString> GetStrings
407 (
408 const char * propertyName
409 );
413 public: std::vector<NXString> GetStrings
414 (
415 int propertyIndex
416 );
420 public: void SetPoint
421 (
422 const NXString & propertyName ,
423 const NXOpen::Point3d & pointSc
424 );
429 (
430 const char * propertyName ,
431 const NXOpen::Point3d & pointSc
432 );
437 (
438 const NXString & propertyName
439 );
444 (
445 const char * propertyName
446 );
451 (
452 int propertyIndex
453 );
457 public: void SetVector
458 (
459 const NXString & propertyName ,
460 const NXOpen::Vector3d & vector
461 );
466 (
467 const char * propertyName ,
468 const NXOpen::Vector3d & vector
469 );
474 (
475 const NXString & propertyName
476 );
481 (
482 const char * propertyName
483 );
488 (
489 int propertyIndex
490 );
494 public: void SetBits
495 (
496 const NXString & propertyName ,
497 int bitsSc
498 );
503 (
504 const char * propertyName ,
505 int bitsSc
506 );
510 public: int GetBits
511 (
512 const NXString & propertyName
513 );
518 (
519 const char * propertyName
520 );
524 public: int GetBits
525 (
526 int propertyIndex
527 );
531 public: void SetTaggedObject
532 (
533 const NXString & propertyName ,
534 NXOpen::TaggedObject * taggedSc
535 );
540 (
541 const char * propertyName ,
542 NXOpen::TaggedObject * taggedSc
543 );
548 (
549 const NXString & propertyName
550 );
555 (
556 const char * propertyName
557 );
562 (
563 int propertyIndex
564 );
568 public: std::vector<int> GetIntegerVector
569 (
570 const NXString & propertyName
571 );
575 std::vector<int> GetIntegerVector
576 (
577 const char * propertyName
578 );
582 public: void SetIntegerVector
583 (
584 const NXString & propertyName ,
585 const std::vector<int> & intVector
586 );
591 (
592 const char * propertyName ,
593 const std::vector<int> & intVector
594 );
598 public: std::vector<int> GetIntegerVector
599 (
600 int propertyIndex
601 );
605 public: std::vector<double> GetDoubleVector
606 (
607 const NXString & propertyName
608 );
612 std::vector<double> GetDoubleVector
613 (
614 const char * propertyName
615 );
619 public: void SetDoubleVector
620 (
621 const NXString & propertyName ,
622 const std::vector<double> & doubleVector
623 );
628 (
629 const char * propertyName ,
630 const std::vector<double> & doubleVector
631 );
635 public: std::vector<double> GetDoubleVector
636 (
637 int propertyIndex
638 );
642 public: std::vector<NXOpen::TaggedObject *> GetTaggedObjectVector
643 (
644 const NXString & propertyName
645 );
649 std::vector<NXOpen::TaggedObject *> GetTaggedObjectVector
650 (
651 const char * propertyName
652 );
657 (
658 const NXString & propertyName ,
659 const std::vector<NXOpen::TaggedObject *> & tagVector
660 );
665 (
666 const char * propertyName ,
667 const std::vector<NXOpen::TaggedObject *> & tagVector
668 );
672 public: std::vector<NXOpen::TaggedObject *> GetTaggedObjectVector
673 (
674 int propertyIndex
675 );
680 public: std::vector<int> GetIntegerMatrix
681 (
682 const NXString & propertyName ,
683 int* nRows ,
684 int* nColumns
685 );
690 std::vector<int> GetIntegerMatrix
691 (
692 const char * propertyName ,
693 int* nRows ,
694 int* nColumns
695 );
700 public: void SetIntegerMatrix
701 (
702 const NXString & propertyName ,
703 int nRows ,
704 int nColumns ,
705 const std::vector<int> & matrixValue
706 );
712 (
713 const char * propertyName ,
714 int nRows ,
715 int nColumns ,
716 const std::vector<int> & matrixValue
717 );
722 public: std::vector<int> GetIntegerMatrix
723 (
724 int propertyIndex ,
725 int* nRows ,
726 int* nColumns
727 );
732 public: std::vector<double> GetDoubleMatrix
733 (
734 const NXString & propertyName ,
735 int* nRows ,
736 int* nColumns
737 );
742 std::vector<double> GetDoubleMatrix
743 (
744 const char * propertyName ,
745 int* nRows ,
746 int* nColumns
747 );
752 public: void SetDoubleMatrix
753 (
754 const NXString & propertyName ,
755 int nRows ,
756 int nColumns ,
757 const std::vector<double> & matrixValue
758 );
764 (
765 const char * propertyName ,
766 int nRows ,
767 int nColumns ,
768 const std::vector<double> & matrixValue
769 );
774 public: std::vector<double> GetDoubleMatrix
775 (
776 int propertyIndex ,
777 int* nRows ,
778 int* nColumns
779 );
784 (
785 const NXString & propertyName
786 );
791 (
792 const char * propertyName
793 );
797 public: void SetFile
798 (
799 const NXString & propertyName ,
800 const NXString & value
801 );
806 (
807 const char * propertyName ,
808 const char * value
809 );
814 (
815 int propertyIndex
816 );
821 (
822 const NXString & propertyName
823 );
828 (
829 const char * propertyName
830 );
835 (
836 int propertyIndex
837 );
838 }; //lint !e1712 default constructor not defined for class
839}
840#ifdef _MSC_VER
841#pragma warning(pop)
842#endif
843#ifdef __GNUC__
844#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
845#pragma GCC diagnostic warning "-Wdeprecated-declarations"
846#endif
847#endif
848#undef EXPORTLIBRARY