NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
BasePart.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// BasePart.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/Display_DynamicSectionBuilder.hxx>
22#include <NXOpen/EffectivityConditionBuilder.hxx>
23#include <NXOpen/NXObject.hxx>
24#include <NXOpen/PartCloseResponses.hxx>
25#include <NXOpen/PartLoadStatus.hxx>
26#include <NXOpen/PartReopenReport.hxx>
27#include <NXOpen/PartSaveStatus.hxx>
28#include <NXOpen/PartTypes.hxx>
29#include <NXOpen/libnxopencpp_exports.hxx>
30#ifdef _MSC_VER
31#pragma warning(push)
32#pragma warning(disable:4996)
33#endif
34#ifdef __GNUC__
35#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
36#endif
37namespace NXOpen
38{
39 class BasePart;
40 namespace Annotations
41 {
43 }
44 class ArcCollection;
45 namespace Assemblies
46 {
47 class Arrangement;
48 }
49 namespace Assemblies
50 {
51 class AssemblyManager;
52 }
53 namespace Assemblies
54 {
56 }
57 namespace Assemblies
58 {
60 }
61 namespace Assemblies
62 {
64 }
65 class AxisCollection;
66 namespace CAE
67 {
69 }
70 namespace CAE
71 {
72 class FunctionCollection;
73 }
74 namespace CAE
75 {
76 class LayoutStateCollection;
77 }
78 namespace CAE
79 {
81 }
82 namespace CAE
83 {
85 }
86 namespace CAE
87 {
89 }
90 namespace CAM
91 {
93 }
95 class ColorManager;
96 class ConfiguredPart;
98 class CurveCollection;
99 class DatumCollection;
101 {
102 class PostManager;
103 }
105namespace Display
106{
107 class AnimationCameraCollection;
108}
109namespace Display
110{
111 class CameraCollection;
112}
113namespace Display
114{
115 class CgfxAttrCollection;
116}
117namespace Display
118{
119 class CgfxMattexCollection;
120}
121namespace Display
122{
123 class DecalCollection;
124}
125namespace Display
126{
128}
129namespace Display
130{
132}
133namespace Display
134{
136}
137namespace Display
138{
139 class GridCollection;
140}
141namespace Display
142{
143 class ImageCollection;
144}
145namespace Display
146{
148}
149namespace Display
150{
152}
153namespace Display
154{
156}
157namespace Display
158{
159 class SelPrefCollection;
160}
161namespace Display
162{
164}
165namespace Display
166{
168}
169namespace Display
170{
171 class UVMapCollection;
172}
173namespace Display
174{
176}
177namespace Drawings
178{
180}
186namespace Features
187{
189}
190namespace Features
191{
192 class FeatureCollection;
193}
194namespace Features
195{
197}
198namespace Fields
199{
200 class FieldManager;
201}
202class FontCollection;
203namespace Gateway
204{
205 class ImageCaptureManager;
206}
208 {
209 class AnalysisManager;
210 }
211 namespace GeometricAnalysis
212 {
213 class AnalysisResultCollection;
214 }
215 class Group;
216 class GroupBuilder;
217 class HyperbolaCollection;
218 namespace Implicit
219 {
221 }
223 namespace Layer
224 {
225 class CategoryCollection;
226 }
227 namespace Layer
228 {
229 class LayerManager;
230 }
231 class LayoutCollection;
232 class LightCollection;
233 class LineCollection;
234 namespace Markup
235 {
236 class MarkupCollection;
237 }
238 class MaterialManager;
239 class MeasureManager;
240 namespace MendixReporting
241 {
242 class CadInfoManager;
243 }
244 namespace MendixReporting
245 {
246 class CheckerData;
247 }
249 class NXMatrixCollection;
250 class NXObject;
251 class OffsetCollection;
252 namespace Optimization
253 {
255 }
256 namespace Optimization
257 {
259 }
260 namespace PDM
261 {
262 class PdmPart;
263 }
264 class ParabolaCollection;
267 class PartCloseResponses;
268 class PartLoadStatus;
269 class PartReopenReport;
270 class PartSaveOptions;
271 class PartSaveStatus;
272 class PlaneCollection;
273 class PlotManager;
274 class PointCollection;
275 class PolylineCollection;
276 namespace Preferences
277 {
278 class PartPreferences;
279 }
280 class PropertiesManager;
281 class ReferenceSet;
282 class RuleManager;
284 class ScRuleFactory;
285 class ScalarCollection;
286 class SectionCollection;
287 class SplineCollection;
288 class StrokeCollection;
289 class UnitCollection;
291 {
293 }
295 {
297 }
298 namespace Validate
299 {
300 class AnalysisResultCollection;
301 }
302 namespace Validate
303 {
304 class PersistentResultCollection;
305 }
306 namespace Validate
307 {
309 }
310namespace Validate
311 {
313 }
315 class ViewCollection;
316 class ViewSetCollection;
317 class WCS;
318 class XformCollection;
319 class _BasePartBuilder;
320 class BasePartImpl;
324 class NXOPENCPPEXPORT BasePart : public NXOpen::NXObject
325 {
349
358
364
370
376
377 public:
378 struct HistoryEventInformation
379 {
381 public: NXString User;
383 public: NXString Time;
384 public: int Version;
385 public: HistoryEventInformation() :
386 Program(),
387 User(),
388 Machine(),
389 Time(),
390 Version()
391 {
392 }
394 public: HistoryEventInformation(const NXString &programInitial ,
395 const NXString &userInitial ,
396 const NXString &machineInitial ,
397 const NXString &timeInitial ,
398 int versionInitial ) :
399 Program(programInitial),
400 User(userInitial),
401 Machine(machineInitial),
402 Time(timeInitial),
403 Version(versionInitial)
404{
405 }
406 };
407
414
423
430
431 public:
432 struct TransientStatus
433 {
434 public: bool Trans;
435 public: bool InitiallyTransient;
436 public: bool Locked;
437 public: bool TransientChildren;
438 public: TransientStatus() :
439 Trans(),
441 Locked(),
443 {
444 }
446 public: TransientStatus(bool transInitial ,
447 bool initiallyTransientInitial ,
448 bool lockedInitial ,
449 bool transientChildrenInitial ) :
450 Trans(transInitial),
451 InitiallyTransient(initiallyTransientInitial),
452 Locked(lockedInitial),
453 TransientChildren(transientChildrenInitial)
454 {
455 }
456 };
457
458 public:
459 struct IncompleteStatus
460 {
461 public: bool StructIncomplete;
462 public: bool PendIncomplete;
463 public: bool IncompleteChildren;
464 public: IncompleteStatus() :
468 {
469 }
471 public: IncompleteStatus(bool structIncompleteInitial ,
472 bool pendIncompleteInitial ,
473 bool incompleteChildrenInitial ) :
474 StructIncomplete(structIncompleteInitial),
475 PendIncomplete(pendIncompleteInitial),
476 IncompleteChildren(incompleteChildrenInitial)
477 {
478 }
479 };
480 private: BasePartImpl * m_basepart_impl;
481 private: friend class _BasePartBuilder;
482 protected: BasePart();
483 public: ~BasePart();
488 (
489 );
494 (
495 );
500 (
501 );
506 (
507 NXOpen::BasePart::SaveComponents saveComponentParts ,
509 );
519 (
520 const NXString & newFileName
521 );
531 (
532 const char * newFileName
533 );
538 (
539 const NXString & newFileName
540 );
545 (
546 const char * newFileName
547 );
552 (
555 NXOpen::BasePart::CloseModified closeModified ,
556 NXOpen::PartCloseResponses * responses ,
557 NXOpen::PartReopenReport ** reopenReport
558 );
563 (
564 const NXString & fileName ,
565 NXOpen::BasePart::CloseModified closeModified ,
566 NXOpen::PartCloseResponses * responses ,
567 NXOpen::PartReopenReport ** reopenReport
568 );
573 (
574 const char * fileName ,
575 NXOpen::BasePart::CloseModified closeModified ,
576 NXOpen::PartCloseResponses * responses ,
577 NXOpen::PartReopenReport ** reopenReport
578 );
582 public: void Close
583 (
586 NXOpen::BasePart::CloseModified closeModified ,
587 NXOpen::PartCloseResponses * responses
593 );
595
598 public: void CloseAllConfigurations
599 (
602 NXOpen::BasePart::CloseModified closeModified ,
603 NXOpen::PartCloseResponses * responses
609 );
611
617 (
620 NXOpen::BasePart::CloseModified closeModified ,
621 NXOpen::PartCloseResponses * responses
627 );
632 public: bool IsFullyLoaded
633 (
634 );
639 public: bool IsReadOnly
640 (
641 );
645 public: bool IsModified
646 (
647 );
651 public: bool HasWriteAccess
652 (
653 );
660 (
661 );
669 (
670 );
678 (
679 );
684 (
685 );
689 public: void ReverseBlankAll
690 (
691 );
695 public: std::vector<NXOpen::BasePart::HistoryEventInformation> GetHistoryInformation
696 (
697 );
702 (
703 );
708 (
710 );
719 public: void GetPreviewImage
720 (
721 int* width ,
722 int* height ,
723 std::vector<int> & pixels
724 );
729 (
730 );
734 public: void RemoveTransience
735 (
736 );
741 (
742 );
747 (
748 );
753 (
754 );
759 (
760 );
764 public: void CompleteStructure
765 (
766 );
771 (
772 );
776 public: void SaveBookmark
777 (
778 const NXString & fileName ,
780 );
785 (
786 const char * fileName ,
788 );
798 public: NX_DEPRECATED("Deprecated in NX6.0.0. Use NXOpen::BasePart::DynamicSections instead.") NXOpen::Display::DynamicSectionBuilder * CreateDynamicSectionBuilder
799 (
800 bool loadFromView
801 );
806 (
807 NXOpen::Group * group
808 );
812 public: NXOpen::Display::PerspectiveOptionsBuilder * CreatePerspectiveOptionsBuilder
813 (
814 );
818 public: NXOpen::Display::FacetSettingsBuilder * CreateFacetSettingsBuilder
819 (
820 );
824 public: bool SaveDisplayFacets
825 (
826 );
831 (
832 bool saveDisplayFacets
833 );
838 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::BasePart::RegenerateDisplayFacets overload instead.") void RegenerateDisplayFacets
839 (
840 bool regenerateChildren
841 );
849 (
850 bool deleteSavedDisplayFacets ,
851 bool regenerateChildren
852 );
857 (
858 );
863 (
864 NXOpen::ReferenceSet * referenceSetObject
865 );
870 (
871 );
876 (
877 );
882 (
883 const NXString & identifier
884 );
889 (
890 const char * identifier
891 );
896 (
897 );
901 public: void SetMakeUniqueName
902 (
903 const NXString & newUniqueName
904 );
909 (
910 const char * newUniqueName
911 );
916 (
918 const NXString & effectivityFormula
919 );
924 (
926 const char * effectivityFormula
927 );
932 (
934 const NXString & validationBasisFormula ,
935 const NXString & effectivityFormula
936 );
941 (
943 const char * validationBasisFormula ,
944 const char * effectivityFormula
945 );
950 (
951 );
958 public: bool CanBeDisplayPart
959 (
960 );
964 public: bool Displayed
965 (
966 );
975 public: void Undisplay
976 (
977 );
982 public: void GetArrangements
983 (
984 std::vector<NXOpen::Assemblies::Arrangement *> & arrangements
985 );
990 (
991 );
996 (
997 );
1003 (
1004 std::vector<NXOpen::BasePart *> & minimallyLoadedParts
1005 );
1010 (
1011 bool deleteSavedDisplayFacets ,
1012 bool processChildren
1013 );
1018 (
1019 );
1024 (
1025 );
1027
1030 public: std::vector<NXOpen::ConfiguredPart *> GetConfiguredParts
1031 (
1032 );
1034
1037 public: NXOpen::WCS *WCS();
1057 public: NXOpen::Layer::LayerManager *Layers();
1149 public: NXOpen::Layer::CategoryCollection *LayerCategories();
1157 public: NXOpen::Preferences::PartPreferences *Preferences();
1189 public: NXOpen::PDM::PdmPart *PDMPart();
1193 public: NXOpen::Display::CameraCollection *Cameras();
1197 public: NXOpen::Display::AnimationCameraCollection *AnimationCameras();
1201 public: NXOpen::Display::DynamicSectionCollection *DynamicSections();
1205 public: NXOpen::Display::DecalCollection *Decals();
1213 public: NXOpen::CAE::FunctionCollection *Functions();
1217 public: NXOpen::CAE::ViewLayoutManager *CaeViewLayoutManager();
1221 public: NXOpen::CAE::PostScenarioManager *PostScenarioMgr();
1225 public: NXOpen::Display::SelPrefCollection *SelPref();
1237 public: NXOpen::Features::BaseFeatureCollection *BaseFeatures();
1241 public: NXOpen::Features::FeatureCollection *Features();
1249 public: NXOpen::Optimization::OptimizationCollection *Optimization();
1257 public: NXOpen::Optimization::DesignStudyCollection *DesignStudy();
1269 public: NXOpen::Assemblies::ProductOutlineManager *Assemblies();
1277 public: NXOpen::Display::TrueShadingCollection *SHEDObjs();
1281 public: NXOpen::Display::TrueStudioCollection *TrueStudioObjs();
1285 public: NXOpen::Display::GridCollection *Grids();
1293 public: NXOpen::CAM::CAMFeatureCollection *CAMFeatures();
1297 public: NXOpen::Validate::RequirementCheckCollection *RequirementChecks();
1301 public: NXOpen::Validate::RequirementCollection *Requirements();
1305 public: NXOpen::Display::ImageCollection *Images();
1309 public: NXOpen::Display::ImageDataCollection *ImagesData();
1317 public: NXOpen::Display::PointCloudCollection *PointClouds();
1321 public: NXOpen::Annotations::AnnotationManager *Annotations();
1333 public: NXOpen::Validate::AnalysisResultCollection *AnalysisResults();
1337 public: NXOpen::Validate::PersistentResultCollection *PersistentResults();
1339
1342 public: NXOpen::Markup::MarkupCollection *Markups();
1344
1351 public: NXOpen::Implicit::ImplicitOperationCollection *ImplictOperations();
1357
1360 public: NXOpen::MendixReporting::CheckerData *CheckerData();
1363
1366 public: NXOpen::MendixReporting::CadInfoManager *CadInfoManager();
1368
1371 public: NXOpen::Display::UVMapCollection *UVMaps();
1379 public: NXOpen::Features::SelectionProgramCollection *SelectionProgramCollections();
1383 public: NXOpen::CAE::LayoutStateCollection *LayoutStates();
1391 public: NXOpen::CAE::CurveOperationExpressionRecordCollection *CurveOperationExpRecords();
1404 };
1405}
1406#ifdef _MSC_VER
1407#pragma warning(pop)
1408#endif
1409#ifdef __GNUC__
1410#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1411#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1412#endif
1413#endif
1414#undef EXPORTLIBRARY