NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Preferences_SessionSketch.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Preferences_SessionSketch.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/Preferences_SketchPreferences.hxx>
22#include <NXOpen/TaggedObject.hxx>
23#include <NXOpen/libnxopencpp_preferences_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{
33 namespace Preferences
34 {
35 class SessionSketch;
36 }
37 namespace Preferences
38 {
40 }
41 namespace Preferences
42 {
43 class SessionSketchImpl;
47 class NXOPENCPP_PREFERENCESEXPORT SessionSketch
48 {
55
58 public: enum NX_DEPRECATED("在NX1847.0.0版本中废弃。草图背景控制无替代方案,请使用NX通用背景工具。") BackgroundType
59 {
60 BackgroundTypeInherit,
61 BackgroundTypePlain
62 };
63
66 public: enum NX_DEPRECATED("在NX11.0.0版本中废弃。请改用Preferences::SessionSketch::GroupConstraintType。") RigidSetConstraintType
67 {
68 RigidSetConstraintTypePreventConflict,
69 RigidSetConstraintTypePreserveAll
70 };
77
84 private: SessionSketchImpl * m_sessionsketch_impl;
89 public:
91 tag_t Tag() const;
92 public: ~SessionSketch();
96 public: double SnapAngle
97 (
98 );
102 public: void SetSnapAngle
103 (
104 double snapAngle
105 );
110 (
111 );
116 (
117 bool changeViewOrientation
118 );
123 (
124 );
129 (
130 bool keepBlank
131 );
136 (
137 );
142 (
143 bool maintainLayerStatus
144 );
148 public: bool DisplayDOFArrows
149 (
150 );
155 (
156 bool displayDOFArrows
157 );
162 (
163 );
168 (
169 bool dynamicConstraintDisplay
170 );
174 public: bool TextSizeFixed
175 (
176 );
180 public: void SetTextSizeFixed
181 (
182 bool textSizeFixed
183 );
187 public: double FixedTextSize
188 (
189 );
193 public: void SetFixedTextSize
194 (
195 double fixedTextSize
196 );
200 public: double ConstraintSymbolSize
201 (
202 );
207 (
208 double constraintSymbolSize
209 );
214 (
215 );
220 (
221 bool displaySectionMappingWarning
222 );
227 public: NX_DEPRECATED("Deprecated in NX8.0.1. Use Annotations::AnnotationManager::MakePmi and Annotations::AnnotationManager::RemovePmi with individual dimensions instead.") bool RetainDimensions
228 (
229 );
234 public: NX_DEPRECATED("Deprecated in NX8.0.1. Use Annotations::AnnotationManager::MakePmi and Annotations::AnnotationManager::RemovePmi with individual dimensions instead.") void SetRetainDimensions
235 (
236 bool retainDimensions
237 );
242 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use SketchInPlaceBuilder::SetProjectWorkPartOrigin and SketchInPlaceBuilder::SetMakeOriginAssociative and SketchInPlaceBuilder::SetSketchOrigin instead.") NXOpen::Preferences::SessionSketch::OriginType OriginOption
243 (
244 );
249 public: NX_DEPRECATED("Deprecated in NX8.0.0. Use SketchInPlaceBuilder::SetProjectWorkPartOrigin and SketchInPlaceBuilder::SetMakeOriginAssociative and SketchInPlaceBuilder::SetSketchOrigin instead.") void SetOriginOption
250 (
252 );
257 public: NX_DEPRECATED("Deprecated in NX1847.0.0. No replacement for sketch background control. Use general NX background tools.") NXOpen::Preferences::SessionSketch::BackgroundType BackgroundOption
258 (
259 );
264 public: NX_DEPRECATED("Deprecated in NX1847.0.0. No replacement for sketch background control. Use general NX background tools.") void SetBackgroundOption
265 (
266 NXOpen::Preferences::SessionSketch::BackgroundType backgroundType
267 );
272 (
273 );
278 (
279 const NXString & defaultSketchNamePrefix
280 );
285 (
286 const char * defaultSketchNamePrefix
287 );
292 (
293 );
298 (
299 const NXString & defaultVertexNamePrefix
300 );
305 (
306 const char * defaultVertexNamePrefix
307 );
312 (
313 );
318 (
319 const NXString & defaultLineNamePrefix
320 );
325 (
326 const char * defaultLineNamePrefix
327 );
332 (
333 );
338 (
339 const NXString & defaultArcNamePrefix
340 );
345 (
346 const char * defaultArcNamePrefix
347 );
352 (
353 );
358 (
359 const NXString & defaultConicNamePrefix
360 );
365 (
366 const char * defaultConicNamePrefix
367 );
372 (
373 );
378 (
379 const NXString & defaultSplineNamePrefix
380 );
385 (
386 const char * defaultSplineNamePrefix
387 );
392 (
393 );
397 public: void SetDimensionLabel
398 (
399 NXOpen::Preferences::SketchPreferences::DimensionLabelType dimensionLabel
400 );
404 public: bool DelayEvaluation
405 (
406 );
411 (
412 bool delayEvaluation
413 );
418 (
419 );
424 (
425 bool displayObjColor
426 );
431 (
432 );
437 (
438 bool continAutoDim
439 );
444 (
445 );
450 (
451 bool createInferredConstraints
452 );
457 (
458 );
463 (
464 bool toArcCenter
465 );
469 public: bool UpdateSketchOnly
470 (
471 );
476 (
477 bool delayModelUpdate
478 );
483 (
484 );
489 (
490 bool displayConstraintSymbols
491 );
496 (
497 );
502 (
503 bool displayAutoDimensions
504 );
509 (
510 );
515 (
516 bool displayReferenceGeometry
517 );
522 (
523 );
528 (
529 bool useTolerance
530 );
534 public: double SolvingTolerance
535 (
536 );
541 (
542 double tolerance
543 );
548 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Preferences::SessionSketch::SetGroupConstraintOption instead.") NXOpen::Preferences::SessionSketch::RigidSetConstraintType RigidSetConstraintOption
549 (
550 );
555 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Preferences::SessionSketch::SetGroupConstraintOption instead.") void SetRigidSetConstraintOption
556 (
557 NXOpen::Preferences::SessionSketch::RigidSetConstraintType constraintType
558 );
562 public: bool DisplayObjectName
563 (
564 );
569 (
570 bool displayObjectName
571 );
576 (
577 );
582 (
584 );
588 public: bool DisplayVertices
589 (
590 );
595 (
596 bool displayVertices
597 );
602 (
603 );
608 (
609 bool displayShadedRegions
610 );
615 (
616 );
621 (
622 bool overrideConstraints
623 );
627 public: bool RelaxDimensions
628 (
629 );
634 (
635 bool relaxDimensions
636 );
641 (
642 );
647 (
648 bool displayParentheses
649 );
654 (
655 );
660 (
661 bool scaleOnFirstDrivingDimension
662 );
666 public: bool SectionView
667 (
668 );
672 public: void SetSectionView
673 (
674 bool sectionView
675 );
679 public: bool SliceOption
680 (
681 );
685 public: void SetSliceOption
686 (
687 bool sliceOption
688 );
692 public: bool AutoReverse
693 (
694 );
698 public: void SetAutoReverse
699 (
700 bool autoReverse
701 );
706 (
707 );
712 (
713 bool findMovableObjects
714 );
719 (
720 );
725 (
726 bool editDimensionOnCreation
727 );
732 (
733 bool createRelations
734 );
739 (
740 );
745 (
746 NXOpen::Preferences::SketchPreferences::DimensionTextSizeMode mode
747 );
752 (
753 );
758 (
759 );
764 (
765 bool createDimension
766 );
768
771 public: bool ChainCurves
772 (
773 );
776
779 public: void SetChainCurves
780 (
781 bool chainCurves
782 );
784
788 (
789 );
794 (
795 bool createReferenceGeometry
796 );
798
801 public: NXOpen::Preferences::SessionSketch::LineOutputType LineOutputOption
802 (
803 );
806
809 public: void SetLineOutputOption
810 (
812 );
814
818 (
819 );
824 (
825 bool addFinding
826 );
827 }; //lint !e1712 default constructor not defined for class
828 }
829}
830#ifdef _MSC_VER
831#pragma warning(pop)
832#endif
833#ifdef __GNUC__
834#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
835#pragma GCC diagnostic warning "-Wdeprecated-declarations"
836#endif
837#endif
838#undef EXPORTLIBRARY