NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
CAM_Preferences.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口访问 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// CAM_Preferences.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/Builder.hxx>
22#include <NXOpen/libnxopencpp_cam_exports.hxx>
23#ifdef _MSC_VER
24#pragma warning(push)
25#pragma warning(disable:4996)
26#endif
27#ifdef __GNUC__
28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29#endif
30namespace NXOpen
31{
32 namespace CAM
33 {
34 class Preferences;
35 }
36 class Builder;
37 class NXColor;
38 namespace CAM
39 {
40 class _PreferencesBuilder;
41 class PreferencesImpl;
45 class NXOPENCPP_CAMEXPORT Preferences : public NXOpen::Builder
46 {
50 public: enum NX_DEPRECATED("Deprecated in NX8.0.0. Use SelectionTypes instead.") PartSelectionTypes
51 {
52 PartSelectionTypesBodies,
53 PartSelectionTypesFaces,
54 PartSelectionTypesCurves,
55 PartSelectionTypesSurfaceRegion,
56 PartSelectionTypesFacetedBodies
57 };
58
61 public: enum NX_DEPRECATED("Deprecated in NX8.0.0. Use SelectionTypes instead.") BlankSelectionTypes
62 {
63 BlankSelectionTypesBodies,
64 BlankSelectionTypesFaces,
65 BlankSelectionTypesCurves,
66 BlankSelectionTypesSurfaceRegion,
67 BlankSelectionTypesFacetedBodies
68 };
72 public: enum NX_DEPRECATED("Deprecated in NX8.0.0. Use SelectionTypes instead.") CheckSelectionTypes
73 {
74 CheckSelectionTypesBodies,
75 CheckSelectionTypesFaces,
76 CheckSelectionTypesCurves
77 };
81 public: enum NX_DEPRECATED("Deprecated in NX8.0.0. Use SelectionTypes instead.") CutAreaSelectionTypes
82 {
83 CutAreaSelectionTypesBodies,
84 CutAreaSelectionTypesFaces,
85 CutAreaSelectionTypesSurfaceRegion
86 };
90 public: enum NX_DEPRECATED("Deprecated in NX8.0.0. Use SelectionTypes instead.") WallSelectionTypes
91 {
92 WallSelectionTypesBodies,
93 WallSelectionTypesFaces,
94 WallSelectionTypesSurfaceRegion
95 };
99 public: enum NX_DEPRECATED("Deprecated in NX8.0.0. Use SelectionTypes instead.") AuxiliaryFloorColorSelectionTypes
100 {
101 AuxiliaryFloorColorSelectionTypesBodies,
102 AuxiliaryFloorColorSelectionTypesFaces,
103 AuxiliaryFloorColorSelectionTypesSurfaceRegion
104 };
119
130
136
142
150
156 private: PreferencesImpl * m_preferences_impl;
157 private: friend class _PreferencesBuilder;
158 protected: Preferences();
159public: ~Preferences();
164 (
165 );
170 (
171 bool displaySelectedObjects
172 );
176 public: bool DisplayTurningIpw
177 (
178 );
183 (
184 bool displayTurningIpw
185 );
190 (
191 );
196 (
197 bool processAssistant
198 );
203 (
204 );
209 (
210 bool alwaysUpdateDialogs
211 );
215 public: bool ShowPictures
216 (
217 );
221 public: void SetShowPictures
222 (
223 bool showPictures
224 );
228 public: int ScrollAreaSize
229 (
230 );
234 public: void SetScrollAreaSize
235 (
236 int scrollableItems
237 );
242 (
243 );
248 (
249 bool refreshBeforeEachPath
250 );
255 (
256 );
261 (
262 bool updateInstances
263 );
268 (
269 );
274 (
275 bool pauseAfterEachPath
276 );
281 (
282 );
287 (
288 bool refreshBeforeEachPath
289 );
293 public: bool ForceRegenerate
294 (
295 );
300 (
301 bool isForceRegenerate
302 );
307 (
308 );
313 (
314 bool isAutomaticallyGenerate
315 );
319 public: bool LinkMcsRcs
320 (
321 );
325 public: void SetLinkMcsRcs
326 (
327 bool linkMcsRcs
328 );
333 (
334 );
339 (
340 bool relocateParameters
341 );
345 public: bool UnlinkInstances
346 (
347 );
352 (
353 bool unlinkInstances
354 );
358 public: bool IncludeInstances
359 (
360 );
365 (
366 bool includeInstances
367 );
371 public: bool GeneratePaths
372 (
373 );
377 public: void SetGeneratePaths
378 (
379 bool generatePaths
380 );
385 (
386 );
391 (
392 bool autoMachingData
393 );
398 (
399 );
404 (
405 double cuttingLength
406 );
411 (
412 );
416 public: void SetPartColor
417 (
418 NXOpen::NXColor * partColor
419 );
424 (
425 );
429 public: void SetBlankColor
430 (
431 NXOpen::NXColor * blankColor
432 );
437 (
438 );
442 public: void SetCheckColor
443 (
444 NXOpen::NXColor * checkColor
445 );
450 (
451 );
455 public: void SetDriveColor
456 (
457 NXOpen::NXColor * driveColor
458 );
463 (
464 );
468 public: void SetTrimColor
469 (
470 NXOpen::NXColor * trimColor
471 );
476 (
477 );
482 (
483 NXOpen::NXColor * uncutRegionColor
484 );
489 (
490 );
495 (
496 NXOpen::NXColor * previewRegionColor
497 );
502 (
503 );
507 public: void SetClearanceColor
508 (
509 NXOpen::NXColor * clearanceColor
510 );
515 (
516 );
520 public: void SetCutAreaColor
521 (
522 NXOpen::NXColor * cutAreaColor
523 );
528 (
529 );
534 (
535 NXOpen::NXColor * suspectBoundingBoxColor
536 );
541 (
542 );
546 public: void SetWallColor
547 (
548 NXOpen::NXColor * wallColor
549 );
554 (
555 );
560 (
561 NXOpen::NXColor * topOffLevel
562 );
567 (
568 );
573 (
574 NXOpen::NXColor * optimizedCutLevel
575 );
580 (
581 );
586 (
587 NXOpen::NXColor * auxiliaryFloor
588 );
593 (
594 );
598 public: void SetHubColor
599 (
600 NXOpen::NXColor * hub
601 );
606 (
607 );
611 public: void SetShroudColor
612 (
613 NXOpen::NXColor * shroud
614 );
619 (
620 );
624 public: void SetBladeColor
625 (
626 NXOpen::NXColor * blade
627 );
632 (
633 );
638 (
639 NXOpen::NXColor * bladeBlend
640 );
645 (
646 );
650 public: void SetSplitterColor
651 (
652 NXOpen::NXColor * splitter
653 );
658 (
659 );
664 (
665 NXOpen::NXColor * dockingColor
666 );
671 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") NXOpen::CAM::Preferences::PartSelectionTypes PartSelection
672 (
673 );
678 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") void SetPartSelection
679 (
680 NXOpen::CAM::Preferences::PartSelectionTypes partSelection
681 );
686 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") NXOpen::CAM::Preferences::BlankSelectionTypes BlankSelection
687 (
688 );
693 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") void SetBlankSelection
694 (
695 NXOpen::CAM::Preferences::BlankSelectionTypes blankSelection
696 );
701 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") NXOpen::CAM::Preferences::CheckSelectionTypes CheckSelection
702 (
703 );
708 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") void SetCheckSelection
709 (
710 NXOpen::CAM::Preferences::CheckSelectionTypes checkSelection
711 );
716 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") NXOpen::CAM::Preferences::CutAreaSelectionTypes CutAreaSelection
717 (
718 );
723 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") void SetCutAreaSelection
724 (
725 NXOpen::CAM::Preferences::CutAreaSelectionTypes cutAreaSelection
726 );
731 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") NXOpen::CAM::Preferences::WallSelectionTypes WallSelection
732 (
733 );
738 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") void SetWallSelection
739 (
740 NXOpen::CAM::Preferences::WallSelectionTypes wallSelection
741 );
746 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") NXOpen::CAM::Preferences::AuxiliaryFloorColorSelectionTypes AuxiliaryFloorColorSelection
747 (
748 );
753 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use CAM::Preferences::GetSelection and CAM::Preferences::SetSelection instead.") void SetAuxiliaryFloorColorSelection
754 (
755 NXOpen::CAM::Preferences::AuxiliaryFloorColorSelectionTypes auxiliaryFloorSelection
756 );
760 public: NXOpen::CAM::Preferences::SelectionTypes GetSelection
761 (
762 NXOpen::CAM::Preferences::GeometryTypes geomType
763 );
767 public: void SetSelection
768 (
769 NXOpen::CAM::Preferences::GeometryTypes geomType ,
770 NXOpen::CAM::Preferences::SelectionTypes selection
771 );
776 (
777 );
782 (
783 bool enableLevelBasedIpw
784 );
788 public: bool SaveIpwModel
789 (
790 );
794 public: void SetSaveIpwModel
795 (
796 bool ipwModel
797 );
801 public: bool SaveLevelBasedIpw
802 (
803 );
808 (
809 bool levelBasedIpw
810 );
815 (
816 );
821 (
822 bool useIpwDirectoryOfOriginalPart
823 );
828 (
829 );
833 public: void SetIpwPartsFolder
834 (
835 const NXString & foldername
836 );
841 (
842 const char * foldername
843 );
848 (
849 );
854 (
855 );
860 (
861 NXOpen::CAM::Preferences::CsysInformationListingTypes baseInfo
862 );
867 (
868 );
873 (
874 bool orientWcsToMcs
875 );
880 (
881 );
886 (
887 bool toolDisplayColor
888 );
893 (
894 );
899 (
900 bool dynToolAxis
901 );
906 (
907 );
912 (
913 NXOpen::NXColor * toolDisplayColor
914 );
919 (
920 );
925 (
926 NXOpen::NXColor * color
927 );
932 (
933 );
938 (
939 NXOpen::NXColor * gougesColor
940 );
945 (
946 );
951 (
952 NXOpen::NXColor * collisionsColor
953 );
958 (
959 );
964 (
965 NXOpen::NXColor * excessMaterialColor
966 );
971 public: NX_DEPRECATED("Deprecated in NX8.5.0. Use CAM::Preferences::BlankColor instead.") NXOpen::NXColor * VisualizeAutoBlockColor
972 (
973 );
978 public: NX_DEPRECATED("Deprecated in NX8.5.0. Use CAM::Preferences::SetBlankColor instead.") void SetVisualizeAutoBlockColor
979 (
980 NXOpen::NXColor * autoBlockColor
981 );
986 (
987 );
992 (
993 NXOpen::NXColor * ipwColor
994 );
999 (
1000 );
1005 (
1006 NXOpen::NXColor * temporaryContainmentCurveColor
1007 );
1012 (
1013 );
1018 (
1019 NXOpen::NXColor * safeToolColor
1020 );
1025 (
1026 );
1031 (
1032 NXOpen::NXColor * toolPathPreviewColor
1033 );
1038 (
1039 );
1044 (
1045 NXOpen::NXColor * backgroundColor
1046 );
1051 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::VisualizeIpwDmrColor1 instead.") NXOpen::NXColor * Visualize2dTool1Color
1052 (
1053 );
1058 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::SetVisualizeIpwDmrColor1 instead.") void SetVisualize2dTool1Color
1059 (
1060 NXOpen::NXColor * toolColor
1061 );
1066 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::VisualizeIpwDmrColor2 instead.") NXOpen::NXColor * Visualize2dTool2Color
1067 (
1068 );
1073 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::SetVisualizeIpwDmrColor2 instead.") void SetVisualize2dTool2Color
1074 (
1075 NXOpen::NXColor * toolColor
1076 );
1081 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::VisualizeIpwDmrColor3 instead.") NXOpen::NXColor * Visualize2dTool3Color
1082 (
1083 );
1088 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::SetVisualizeIpwDmrColor3 instead.") void SetVisualize2dTool3Color
1089 (
1090 NXOpen::NXColor * toolColor
1091 );
1096 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::VisualizeIpwDmrColor4 instead.") NXOpen::NXColor * Visualize2dTool4Color
1097 (
1098 );
1103 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::SetVisualizeIpwDmrColor4 instead.") void SetVisualize2dTool4Color
1104 (
1105 NXOpen::NXColor * toolColor
1106 );
1111 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::VisualizeIpwDmrColor5 instead.") NXOpen::NXColor * Visualize2dTool5Color
1112 (
1113 );
1118 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use CAM::Preferences::SetVisualizeIpwDmrColor5 instead.") void SetVisualize2dTool5Color
1119 (
1120 NXOpen::NXColor * toolColor
1121 );
1126 (
1127 );
1132 (
1133 NXOpen::CAM::Preferences::IpwDmrColoringTypes coloring
1134 );
1139 (
1140 );
1145 (
1146 NXOpen::NXColor * ipwColor
1147 );
1152 (
1153 );
1158 (
1159 NXOpen::NXColor * ipwColor
1160 );
1165 (
1166 );
1171 (
1172 NXOpen::NXColor * ipwColor
1173 );
1178 (
1179 );
1184 (
1185 NXOpen::NXColor * ipwColor
1186 );
1191 (
1192 );
1197 (
1198 NXOpen::NXColor * ipwColor
1199 );
1204 (
1205 );
1210 (
1211 NXOpen::NXColor * ipwColor
1212 );
1217 (
1218 );
1223 (
1224 NXOpen::NXColor * ipwColor
1225 );
1230 (
1231 );
1236 (
1237 NXOpen::NXColor * ipwColor
1238 );
1243 (
1244 );
1249 (
1250 NXOpen::NXColor * ipwColor
1251 );
1256 (
1257 );
1262 (
1263 NXOpen::NXColor * ipwColor
1264 );
1269 (
1270 );
1275 (
1276 NXOpen::NXColor * ipwColor
1277 );
1282 (
1283 );
1288 (
1289 NXOpen::NXColor * ipwColor
1290 );
1295 (
1296 );
1301 (
1302 NXOpen::NXColor * ipwColor
1303 );
1308 (
1309 );
1314 (
1315 int ipwTranslucency
1316 );
1321 (
1322 );
1327 (
1328 int ipwTurningTranslucency
1329 );
1334 (
1335 );
1340 (
1341 NXOpen::CAM::Preferences::AnimationAccuracyTypes animationAccuracy
1342 );
1347 (
1348 );
1353 (
1354 bool ipwFeatureRefinement
1355 );
1360 (
1361 );
1366 (
1367 bool ipwModelRefinement
1368 );
1373 (
1374 );
1379 (
1380 double chordalTolerance
1381 );
1386 (
1387 );
1392 (
1393 double tiltTolerance
1394 );
1399 (
1400 );
1405 (
1406 NXOpen::CAM::Preferences::IpwToleranceModeTypes mode
1407 );
1412 (
1413 );
1418 (
1419 double distance
1420 );
1425 (
1426 );
1431 (
1432 double distance
1433 );
1438 (
1439 );
1444 (
1445 double distance
1446 );
1451 (
1452 );
1457 (
1458 int count
1459 );
1464 (
1465 );
1470 (
1471 int count
1472 );
1477 (
1478 );
1483 (
1484 int count
1485 );
1489 public: int ClsfDecimals
1490 (
1491 );
1495 public: void SetClsfDecimals
1496 (
1497 int decimals
1498 );
1503 (
1504 );
1509 (
1510 bool forceLoadTurret
1511 );
1516 (
1517 );
1522 (
1523 const NXString & fileName
1524 );
1529 (
1530 const char * fileName
1531 );
1536 (
1537 );
1542 (
1543 );
1547 public: void SetTemplateFile
1548 (
1549 const NXString & fileName
1550 );
1555 (
1556 const char * fileName
1557 );
1562 (
1563 );
1568 (
1569 NXOpen::NXColor * shankColor
1570 );
1575 (
1576 );
1581 (
1582 NXOpen::NXColor * holderColor
1583 );
1588 (
1589 );
1594 (
1595 );
1600 (
1601 int toolTranslucency
1602 );
1607 public: NX_DEPRECATED("Deprecated in NX10.0.3. Use CAM::Preferences::GenerationSmartRegeneration instead.") bool GenerationFullRegeneration
1608 (
1609 );
1614 public: NX_DEPRECATED("Deprecated in NX10.0.3. Use CAM::Preferences::GenerationSmartRegeneration instead.") void SetGenerationFullRegeneration
1615 (
1616 bool fullRegeneration
1617 );
1622 (
1623 );
1628 (
1629 bool smartRegeneration
1630 );
1635 (
1636 );
1641 (
1642 bool bStepOverAsNCM
1643 );
1648 (
1649 );
1654 (
1655 double ldr
1656 );
1658
1661 public: void SetVisualizeToolAxisTraceColor
1662 (
1663 NXOpen::NXColor * holderColor
1664 );
1667
1670 public: NXOpen::NXColor * VisualizeToolAxisTraceColor
1671 (
1672 );
1675
1678 public: void SetVisualizeToolAxisTraceLength
1679 (
1680 double traceLength
1681 );
1684
1687 public: double VisualizeToolAxisTraceLength
1688 (
1689 );
1692
1695 public: double ProcessForceIntervalLength
1696 (
1697 );
1700
1703 public: void SetProcessForceIntervalLength
1704 (
1705 double processForceIntervalLength
1706 );
1709
1712 public: double ProcessForceTolerance
1713 (
1714 );
1717
1720 public: void SetProcessForceTolerance
1721 (
1722 double processForceTolerance
1723 );
1726
1729 public: double ProcessTorqueTolerance
1730 (
1731 );
1734
1737 public: void SetProcessTorqueTolerance
1738 (
1739 double processTorqueTolerance
1740 );
1743
1746 public: bool DetectAirCuttingTime
1747 (
1748 );
1751
1754 public: void SetDetectAirCuttingTime
1755 (
1756 bool detectAirCuttingTime
1757 );
1759
1763 (
1764 );
1769 (
1770 double spunOutlineTolerance
1771 );
1776 (
1777 );
1782 (
1783 bool isAllowDisplayToolInMachine
1784 );
1785 };
1786 }
1787}
1788#ifdef _MSC_VER
1789#pragma warning(pop)
1790#endif
1791#ifdef __GNUC__
1792#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1793#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1794#endif
1795#endif
1796#undef EXPORTLIBRARY