CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxUserIO.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxPragmaPush.h"
20
21#include "DDKERNEL.h"
22#include "FxSelectionSet.h"
23#include "FxString.h"
24#include "FxPlatformSettings.h"
25#include "FxViewDrawInfo.h"
26#include "FxNoteEditorConfig.h"
27
28#include <DbUserIO.h>
29#include <Gi/GiDrawableImpl.h>
30
31class CFxTracker;
32class CFxKeywordArray;
35
42 public OdStaticRxObject< OdEdInputTracker >,
43 public OdStaticRxObject< OdGiDrawableImpl<OdGiDrawable> >
44{
45public:
47
51 virtual bool IsDrawInAllViewports() const;
52
59
66 FX_VIRTUAL bool subWorldDraw( OdGiWorldDraw* pWorldDraw ) const override;
67
68
72 virtual const OdGiDrawable* drawable() const;
73
78 virtual void setValue( const OdGePoint3d& value ) = 0;
79
84 virtual void setValueFinal( const OdGePoint3d& value );
85
91 virtual bool IsSuitableForContext( const CFxView* pFxView ) const;
92
96 virtual const CFxDocument* GetFxDocument() const;
97
101 virtual OdGePlane GetWorkingPlane() const;
102
106 virtual void EnablePreview( bool bVal );
107
108 virtual bool IsPreviewEnabled() const;
109
113 virtual const CFxString& GetName() const;
114
120
121protected:
122 /* {secret} */
123 FX_VIRTUAL int addDrawables(OdGsView* pView) override;
124 FX_VIRTUAL void removeDrawables(OdGsView* pView) override;
125
128};
129
130
131typedef std::vector<CFxTracker*> TRACKER_VECTOR;
132
138class DDKERNEL_API CFxUserIO : public OdStaticRxObject<OdDbUserIO>
139{
140 friend class CFxCommandParser;
141
142public:
143 /* {secret} */
145
146 /* {secret} */
147 ~CFxUserIO() override;
148
154 virtual void Write( const CFxString& prompt );
155
159 typedef enum _SelectMode
160 {
161 eNormal = 1,
176 eSingleMode = 0x100,
177 eSubobjects = 0x200,
178 eEverythingInAperture = 0x400,
179 } SelectMode;
180
184 typedef enum _Keywords
185 {
186 eKwNone = 0x0,
187 eKwWindow = 0x1,
188 eKwLast = 0x2,
189 eKwCrossing = 0x4,
190 eKwALL = 0x8,
191 eKwBOX = 0x10,
192 eKwFence = 0x20,
193 eKwWPolygon = 0x40,
194 eKwCPolygon = 0x80,
195 eKwGroup = 0x100,
196 eKwEntSel = eKwLast,
197 eKwNEntSel = eKwNone
198 } Keywords;
199
203 typedef enum _KeywordsEx
204 {
205 eKwAdd = 0x1000,
206 eKwRemove = 0x2000,
207 eKwMultiple = 0x4000,
208 eKwPrevious = 0x8000,
209 eKwUndo = 0x10000,
210 eKwAUto = 0x20000,
211 eKwSIngle = 0x40000,
212 eKwSUbobject = 0x80000,
213 eKwObject = 0x100000,
214 eKwSSGet = eKwWindow | eKwLast | eKwCrossing | eKwALL | eKwBOX | eKwFence | eKwWPolygon | eKwCPolygon | eKwGroup |
215 eKwAdd | eKwRemove | eKwMultiple | eKwPrevious | eKwUndo | eKwAUto | eKwSIngle
216 } KeywordsEx;
217
233 virtual int DoSSGet(
234 SelectMode eMode,
235 CFxSelectionSet* pSelectionSet,
236 int keywords = eKwSSGet,
237 const CFxString& sSelectPrompt = CFxString(),
238 const CFxString& sRemovePrompt = CFxString(),
239 const fdt_resbufW* pFilter = 0,
240 OdGePoint3dArray* pickPointsWCS = 0,
241 bool bSingleMode = false,
243 TRACKER_VECTOR* pTrackers = 0 ) = 0;
244
258 virtual int DoEntsel(
259 const CFxString& sPrompt,
260 CFxSelectionSet* pSelectionSet,
261 const fdt_resbufW* pFilter,
262 OdGePoint3d& pickPointWCS,
263 bool& bPointInput,
264 int keywords = eKwEntSel,
266 TRACKER_VECTOR* pTrackers = 0 ) = 0;
267
287 virtual int DoNentsel(
288 const CFxString& sPrompt,
289 CFxSelectionSet* pSelectionSet,
290 const fdt_resbufW* pFilter,
291 OdGePoint3d& pickPointWCS,
292 int pickflag,
293 OdGeMatrix3d& modelToWorld,
294 OdDbObjectIdArray& containerBlocks,
295 int keywords = eKwNEntSel,
297 TRACKER_VECTOR* pTrackers = 0 ) = 0;
298
305 virtual int GetUserInput(
306 CFxString* pInput) = 0;
307
312 virtual const CFxString& GetUserInput() const = 0;
313
328 virtual int GetPoint(
329 const CFxString& sPrompt,
330 const OdGePoint3d* pDefaultValue,
331 const OdGePoint3d* pBasePointWCS,
332 OdGePoint3d* pReturnValueWCS,
333 CFxEdInputTracker* pTracker = 0,
334 const CFxString& errorPrompt = CFxString(),
335 bool bDoNotShowBasePointLine = false,
336 TRACKER_VECTOR* pTrackers = 0,
337 const OdGePlane* pPlane = 0) = 0;
338
350 virtual int GetString(
351 bool bIgnoreSpaces,
352 const CFxString& sPrompt,
353 const CFxString& sDefaultVal,
354 CFxString* pResult,
355 CFxEdInputTracker* pTracker = 0,
356 TRACKER_VECTOR* pTrackers = 0 ) = 0;
357
368 virtual int GetKeyword(
369 const CFxString& sPrompt,
370 const CFxString& sDefault,
371 CFxString* pResult,
372 CFxEdInputTracker* pTracker = 0,
373 TRACKER_VECTOR* pTrackers = 0 ) = 0;
374
378 template< class T >
379 struct CFxRange
380 {
381 public:
384 };
385
398 virtual int GetDouble(
399 const CFxString& sPrompt,
400 const double* pDefaultVal,
401 double* pResult,
402 CFxRange<double>* pRange = 0,
403 CFxEdInputTracker* pTracker = 0,
404 const CFxString& errorPrompt = CFxString(),
405 TRACKER_VECTOR* pTrackers = 0 ) = 0;
406
419 virtual int GetInt(
420 const CFxString& prompt,
421 const int* pDefaultVal,
422 int* pResult,
423 CFxRange<int>* pRange = 0,
424 CFxEdInputTracker* pTracker = 0,
425 const CFxString& errorPrompt = CFxString(),
426 TRACKER_VECTOR* pTrackers = 0 ) = 0;
427
443 virtual int GetAngle(
444 const CFxString& prompt,
445 const double* pDefaultValue,
446 const OdGePoint3d* pBasePointWCS,
447 double* pResult,
448 CFxRange<double>* pRange = 0,
449 CFxEdInputTracker* pTracker = 0,
450 const CFxString& errorPrompt = CFxString(),
451 bool bDoNotShowBasePointLine = false,
452 TRACKER_VECTOR* pTrackers = 0,
453 const OdGePlane* pPlane = 0) = 0;
454
469 virtual int GetDirection(
470 const CFxString& prompt,
471 const double* pDefaultValue,
472 const OdGePoint3d* pBasePointWCS,
473 double* pResult,
474 CFxRange<double>* pRange = 0,
475 CFxEdInputTracker* pTracker = 0,
476 const CFxString& errorPrompt = CFxString(),
477 bool bDoNotShowBasePointLine = false,
478 TRACKER_VECTOR* pTrackers = 0,
479 const OdGePlane* pPlane = 0) = 0;
480
496 virtual int GetOrient(
497 const CFxString& prompt,
498 const double* pDefaultValue,
499 const OdGePoint3d* pBasePtWCS,
500 double* pResult,
501 CFxRange<double>* pRange = 0,
502 CFxEdInputTracker* pTracker = 0,
503 const CFxString& errorPrompt = CFxString(),
504 bool bDoNotShowBasePointLine = false,
505 TRACKER_VECTOR* pTrackers = 0,
506 const OdGePlane* pPlane = 0) = 0;
507
522 virtual int GetCorner(
523 const CFxString& prompt,
524 const OdGePoint3d* pDefaultValue,
525 const OdGePoint3d* pBasePtWCS,
526 OdGePoint3d* pResult,
527 CFxEdInputTracker* pTracker = 0,
528 const CFxString& errorPrompt = CFxString(),
529 TRACKER_VECTOR* pTrackers = 0,
530 const OdGePlane* pPlane = 0) = 0;
531
547 virtual int GetDist(
548 const CFxString& prompt,
549 const double* pDefaultValue,
550 const OdGePoint3d* pBasePtWCS,
551 double* pResult,
552 CFxRange<double>* pRange = 0,
553 CFxEdInputTracker* pTracker = 0,
554 const CFxString& errorPrompt = CFxString(),
555 bool bDoNotShowBasePointLine = false,
556 TRACKER_VECTOR* pTrackers = 0,
557 const OdGePlane* pPlane = 0) = 0;
558
588 virtual int GetNoteEditor(
589 OdDbEntityPtr & EntType,
591 int iHelpID,
592 const CFxString & errorPrompt = CFxString(),
593 TRACKER_VECTOR * pTrackers = nullptr,
594 const OdGePlane * pPlane = nullptr,
595 bool bPinToOldLocation = false ) = 0;
596
636 virtual int GetNoteEditor(
637 OdDbEntityPtr& EntType,
638 int nFlag,
639 int iHelpID,
640 const CFxString& errorPrompt = CFxString(),
641 TRACKER_VECTOR* pTrackers = nullptr,
642 const OdGePlane* pPlane = nullptr,
643 bool bPinToOldLocation = false ) = 0;
644
647 typedef enum _FileNameFlags
648 {
649 eFileNameNoFlags = 0,
650 eFileNameHaveMenu = 1
651 } FileNameFlags;
652
655 typedef enum _FileNameType
656 {
657 eTypeFilter = 0x000000FF,
658 eNew = 0x00000001,
659 eOpen = 0x00000002,
660 eSave = 0x00000004,
661
662 eOpenFilter = 0x0000FF00,
663 eOpenNoPreview = 0x00000100,
664 eOpenNoReadOnly = 0x00000200,
665 eOpenNoTemplateHandling = 0x00000400,
666
667 eOpenNotExist = 0x00000800,
668 } FileNameType;
669
672 typedef enum _FileNameRetVal
673 {
674 eFileNew = 0x000001,
675 eFileNewNoTemplateImperial = 0x000002,
676 eFileNewNoTemplateMetric = 0x000003,
677
678 eFileOpen = 0x000100,
679 eFileOpenReadOnly = 0x000300,
680
681 eFileSave = 0x010000,
682 } FileNameRetVal;
683
684 typedef std::vector<CFxUserIO::FileNameRetVal> FileNameRetValArray;
685
703 FileNameRetVal* pResultMode,
704 CFxString* pResultStr,
705 FxWId parent,
707 const CFxString& dialogCaption,
708 const CFxString& defaultExtension,
709 const CFxString& filter,
710 const CFxString& initialDir,
711 int* filterIndex = 0, // filterIndex is zero-based
712 CFxString* templateName = 0,
713 FileNameFlags flags = eFileNameNoFlags,
714 OdCodePageId** pCodepage = 0);
715
733 FileNameRetVal* pResultMode,
734 CFxStringArray* pResultStrs,
735 FxWId parent,
737 const CFxString& dialogCaption,
738 const CFxString& defaultExtension,
739 const CFxString& filter,
740 const CFxString& initialDir,
741 int* filterIndex = 0, // filterIndex is zero-based
742 CFxString* templateName = 0,
743 FileNameFlags flags = eFileNameNoFlags,
744 OdCodePageId** pCodepage = 0);
745
766 virtual int GetFileName(
767 bool &bFILEDIA,
768 const CFxString& prompt,
769 const CFxString& defaultFileName,
770 CFxUserIO::FileNameRetVal* pResultMode,
771 CFxString* pResultStr,
772 FxWId parent,
774 const CFxString& dialogCaption,
775 const CFxString& defaultExtension,
776 const CFxString& filter,
777 const CFxString& initialDir,
778 int* filterIndex = 0, // filterIndex is zero-based
779 CFxString* templateName = 0,
780 FileNameFlags flags = eFileNameNoFlags,
781 OdCodePageId** codepage = 0 ) = 0;
782
801 virtual int GetFileNames(
802 bool &bFILEDIA,
803 const CFxString& prompt,
804 const CFxString& defaultFileName,
805 CFxUserIO::FileNameRetVal* pResultMode,
806 CFxStringArray* pResultStrs,
807 FxWId parent,
809 const CFxString& dialogCaption,
810 const CFxString& defaultExtension,
811 const CFxString& filter,
812 const CFxString& initialDir,
813 int* filterIndex = 0, // filterIndex is zero-based
814 CFxString* templateName = 0,
815 FileNameFlags flags = eFileNameNoFlags,
816 OdCodePageId** codepage = 0 ) = 0;
817
826 virtual int MessageBox(
827 bool bFILEDIA,
828 const CFxString& prompt,
829 const CFxString& caption,
830 unsigned int uType ) = 0;
831
836 virtual void Initget( int iFlags ) = 0;
837
844 virtual void Initget (
845 int iFlags,
846 const CFxStringArray& keywordsGlobal,
847 const CFxStringArray& keywordsLocal ) = 0;
848
854 virtual void Initget(
855 int iFlags,
856 const CFxKeywordArray& keywords ) = 0;
857
863 virtual void SetIsPrintSelectResults( bool value ) = 0;
864
869 virtual const CFxUnitsFormatter* GetUnitsFormatter() const = 0;
870
876 virtual void SetPromptExplanation( const CFxString& explanation ) = 0;
877
883 virtual CFxString GetPrompt( const CFxString& prompt ) const = 0;
884
891 virtual CFxString GetPrompt( const CFxString& prompt, const CFxString& range ) const = 0;
892
900 virtual CFxString GetPromptPoint( const CFxString& prompt, const OdGePoint2d* pDefaultValue ) const = 0;
901
909 virtual CFxString GetPromptPoint( const CFxString& prompt, const OdGePoint3d* pDefaultValue ) const = 0;
910
918 virtual CFxString GetPromptString( const CFxString& prompt, const CFxString* pDefaultValue ) const = 0;
919
927 virtual CFxString GetPromptString( const CFxString& prompt, const CFxString* pDefaultValue, const CFxString& range ) const = 0;
928
936 virtual CFxString GetPromptDist( const CFxString& prompt, const double* pDefaultValue ) const = 0;
937
945 virtual CFxString GetPromptReal( const CFxString& prompt, const double* pDefaultValue ) const = 0;
946
955 virtual CFxString GetPromptAngle( const CFxString& prompt, const double* pDefaultValue, bool ignoreANGBASE = false ) const = 0;
956
964 virtual CFxString GetPromptInt( const CFxString& prompt, const int* pDefaultValue ) const = 0;
965
973 virtual CFxString GetPromptInt( const CFxString& prompt, const int* pDefaultValue, const CFxString& range ) const = 0;
974
982 virtual CFxString GetPromptKeyword( const CFxString* pDefaultValue = 0, const CFxString* pOptionDescription = 0 ) const = 0;
983
990 virtual CFxString GetPromptKeyword( const CFxString& prompt, const CFxString* pDefaultValue = 0 ) const = 0;
991
1002 bool bClickAllowed,
1003 bool bIgnoreWhiteSpaces,
1004 CFxTracker* pInputTracker,
1005 OdResBufPtr& pInput,
1006 TRACKER_VECTOR* pTrackers ) = 0;
1007
1013 virtual const OdDbObjectIdArray& GetPreviousSelectionSet() const = 0;
1014
1020 virtual void SetPreviousSelectionSet(const OdDbObjectIdArray& ids) = 0;
1021
1030 virtual int GetZoomScale( double* pScale, const CFxString& userInput, const CFxView* pView ) const = 0;
1031
1038
1043 virtual bool IsPending() const = 0;
1044
1049 virtual int InitgetFlags() const = 0;
1050
1057 virtual const CFxString& GetActivePrompt() const = 0;
1058
1066 virtual void SetCurrentPrompt( const CFxString& prompt, bool bWrite = false ) = 0;
1067
1074 virtual const CFxStringArray& GetActiveGlobalKeywords( CFxStringArray& activeGlobalAbbreviations ) const = 0;
1075
1082 virtual const CFxStringArray& GetActiveLocalKeywords( CFxStringArray& activeLocalAbbreviations ) const = 0;
1083
1084protected:
1085
1086 //DWGDirect overridden functions
1087 /* {secret} */
1089 int options = OdEd::kGptDefault,
1090 const OdGePoint3d* pDefaultValue = 0,
1091 const OdString& keywords = OdString::kEmpty,
1092 OdEdPointTracker* pTracker = 0) override = 0;
1093
1094 /* {secret} */
1095 double getAngle(const OdString& prompt,
1096 int options = OdEd::kInpDefault,
1097 double defaultValue = 0.0,
1098 const OdString& keywords = OdString::kEmpty,
1099 OdEdRealTracker* pTracker = 0) override = 0;
1100
1101 /* {secret} */
1102 double getDist(const OdString& prompt,
1103 int options = OdEd::kInpDefault,
1104 double defaultValue = 0.0,
1105 const OdString& keywords = OdString::kEmpty,
1106 OdEdRealTracker* pTracker = 0) override = 0;
1107
1108 /* {secret} */
1110 int options = OdEd::kInpDefault,
1111 const OdCmColor* pDefaultValue = 0,
1112 const OdString& keywords = OdString::kEmpty,
1113 OdEdColorTracker* pTracker = 0) override = 0;
1114
1115 /* {secret} */
1116#if TD_VERSION >= 40301
1117 OdSelectionSetPtr select( const OdString& prompt = OdString::kEmpty,
1118 int options = OdEd::kSelDefault,
1119 const OdSelectionSet* pDefaultValue = 0,
1120 const OdString& keywords = OdString::kEmpty,
1121 OdSSetTracker* pTracker = 0,
1122 OdGePoint3dArray* ptsPointer = 0 ) override = 0;
1123#else
1125 int options = OdEd::kSelDefault,
1126 const OdSelectionSet* pDefaultValue = 0,
1127 const OdString& keywords = OdString::kEmpty,
1128 OdSSetTracker* pTracker = 0) = 0;
1129#endif
1130
1131 /* {secret} */
1133
1134 /* {secret} */
1136 const OdString& prompt,
1137 const OdString& keywords,
1138 int defVal = 0,
1139 int options = OdEd::kInpDefault,
1140 OdEdIntegerTracker* pTracker = 0) override = 0;
1141
1142 /* {secret} */
1144 const OdString& prompt,
1145 int options = OdEd::kInpDefault,
1146 int defVal = 0,
1147 const OdString& keywords = OdString::kEmpty,
1148 OdEdIntegerTracker* pTracker = 0) override = 0;
1149
1150 /* {secret} */
1151 double getReal(
1152 const OdString& prompt,
1153 int options = OdEd::kInpDefault,
1154 double defVal = 0.0,
1155 const OdString& keywords = OdString::kEmpty,
1156 OdEdRealTracker* pTracker = 0) override = 0;
1157
1158 /* {secret} */
1160 const OdString& prompt,
1161 int options = OdEd::kInpDefault,
1162 const OdString& defValue = OdString::kEmpty,
1163 const OdString& keywords = OdString::kEmpty,
1164 OdEdStringTracker* pTracker = 0) override = 0;
1165
1166 /* {secret} */
1167 void putString(const OdString& string) override = 0;
1168
1169 /* {secret} */
1171 const OdString& prompt,
1172 int options = OdEd::kGfpForOpen,
1173 const OdString& dialogCaption = OdString::kEmpty,
1174 const OdString& defExt = OdString::kEmpty,
1175 const OdString& fileName = OdString::kEmpty,
1176 const OdString& filter = OdString::kEmpty,
1177 const OdString& keywords = OdString::kEmpty,
1178 OdEdStringTracker* pTracker = 0) override = 0;
1179
1180 /* {secret} */
1181 OdGePoint3d getLASTPOINT() const override = 0;
1182
1183 /* {secret} */
1184 void setLASTPOINT(const OdGePoint3d& pt) override = 0;
1185
1186 /* {secret} */
1187 void setPickfirst(OdSelectionSet* pSSet) override = 0;
1189 OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d& base, OdGsModel* pModel = NULL) const override = 0;
1190 OdEdPointDefTrackerPtr createRectFrame(const OdGePoint3d& base, OdGsModel* pModel = NULL) const override = 0;
1191};
1192
1194
1195#include "FxPragmaPop.h"
#define FX_VIRTUAL
Definition: DDKERNEL.h:48
#define DDKERNEL_API
Definition: DDKERNEL.h:32
std::shared_ptr< CFxNoteEditorConfig > CFxNoteEditorConfigPtr
int FxWId
std::vector< CFxString > CFxStringArray
Definition: FxString.h:35
DDKERNEL_API CFxUserIO * GetFxUserIO(OdEdCommandContext *pCmdCtx)
std::vector< CFxTracker * > TRACKER_VECTOR
Definition: FxUserIO.h:131
OdCodePageId
Definition: OdCodePage.h:31
unsigned int OdUInt32
virtual void EnablePreview(bool bVal)
virtual bool IsSuitableForContext(const CFxView *pFxView) const
virtual const OdGiDrawable * drawable() const
virtual CFxViewDrawInfo::DrawDecoration GetDrawDecoration() const
FX_VIRTUAL OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const override
virtual void setValue(const OdGePoint3d &value)=0
virtual bool IsPreviewEnabled() const
FX_VIRTUAL void removeDrawables(OdGsView *pView) override
virtual const CFxString & GetName() const
virtual const CFxDocument * GetFxDocument() const
CFxString m_strName
Definition: FxUserIO.h:127
FX_VIRTUAL int addDrawables(OdGsView *pView) override
virtual void setValueFinal(const OdGePoint3d &value)
FX_VIRTUAL bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const override
virtual bool IsDrawInAllViewports() const
virtual OdGePlane GetWorkingPlane() const
OdString getFilePath(const OdString &prompt, int options=OdEd::kGfpForOpen, const OdString &dialogCaption=OdString::kEmpty, const OdString &defExt=OdString::kEmpty, const OdString &fileName=OdString::kEmpty, const OdString &filter=OdString::kEmpty, const OdString &keywords=OdString::kEmpty, OdEdStringTracker *pTracker=0) override=0
virtual CFxString GetPromptString(const CFxString &prompt, const CFxString *pDefaultValue, const CFxString &range) const =0
virtual int GetNoteEditor(OdDbEntityPtr &EntType, CFxNoteEditorConfigPtr config, int iHelpID, const CFxString &errorPrompt=CFxString(), TRACKER_VECTOR *pTrackers=nullptr, const OdGePlane *pPlane=nullptr, bool bPinToOldLocation=false)=0
virtual void Initget(int iFlags)=0
enum CFxUserIO::_FileNameType FileNameType
virtual int GetNoteEditor(OdDbEntityPtr &EntType, int nFlag, int iHelpID, const CFxString &errorPrompt=CFxString(), TRACKER_VECTOR *pTrackers=nullptr, const OdGePlane *pPlane=nullptr, bool bPinToOldLocation=false)=0
void setPickfirst(OdSelectionSet *pSSet) override=0
virtual const OdDbObjectIdArray & GetPreviousSelectionSet() const =0
int getKeyword(const OdString &prompt, const OdString &keywords, int defVal=0, int options=OdEd::kInpDefault, OdEdIntegerTracker *pTracker=0) override=0
virtual int GetPoint(const CFxString &sPrompt, const OdGePoint3d *pDefaultValue, const OdGePoint3d *pBasePointWCS, OdGePoint3d *pReturnValueWCS, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), bool bDoNotShowBasePointLine=false, TRACKER_VECTOR *pTrackers=0, const OdGePlane *pPlane=0)=0
OdEdPointDefTrackerPtr createRectFrame(const OdGePoint3d &base, OdGsModel *pModel=NULL) const override=0
virtual const CFxStringArray & GetActiveGlobalKeywords(CFxStringArray &activeGlobalAbbreviations) const =0
std::vector< CFxUserIO::FileNameRetVal > FileNameRetValArray
Definition: FxUserIO.h:684
OdGePoint3d getPoint(const OdString &prompt, int options=OdEd::kGptDefault, const OdGePoint3d *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdPointTracker *pTracker=0) override=0
OdString getString(const OdString &prompt, int options=OdEd::kInpDefault, const OdString &defValue=OdString::kEmpty, const OdString &keywords=OdString::kEmpty, OdEdStringTracker *pTracker=0) override=0
virtual CFxString GetPromptPoint(const CFxString &prompt, const OdGePoint2d *pDefaultValue) const =0
_FileNameFlags
Definition: FxUserIO.h:648
virtual CFxString GetPromptInt(const CFxString &prompt, const int *pDefaultValue) const =0
virtual void Initget(int iFlags, const CFxKeywordArray &keywords)=0
double getAngle(const OdString &prompt, int options=OdEd::kInpDefault, double defaultValue=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0) override=0
virtual const CFxUnitsFormatter * GetUnitsFormatter() const =0
virtual int GetKeyword(const CFxString &sPrompt, const CFxString &sDefault, CFxString *pResult, CFxEdInputTracker *pTracker=0, TRACKER_VECTOR *pTrackers=0)=0
virtual void Initget(int iFlags, const CFxStringArray &keywordsGlobal, const CFxStringArray &keywordsLocal)=0
virtual const CFxStringArray & GetActiveLocalKeywords(CFxStringArray &activeLocalAbbreviations) const =0
virtual int GetDirection(const CFxString &prompt, const double *pDefaultValue, const OdGePoint3d *pBasePointWCS, double *pResult, CFxRange< double > *pRange=0, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), bool bDoNotShowBasePointLine=false, TRACKER_VECTOR *pTrackers=0, const OdGePlane *pPlane=0)=0
virtual int GetOrient(const CFxString &prompt, const double *pDefaultValue, const OdGePoint3d *pBasePtWCS, double *pResult, CFxRange< double > *pRange=0, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), bool bDoNotShowBasePointLine=false, TRACKER_VECTOR *pTrackers=0, const OdGePlane *pPlane=0)=0
virtual const CFxString & GetUserInput() const =0
virtual int InitgetFlags() const =0
virtual int DoSSGet(SelectMode eMode, CFxSelectionSet *pSelectionSet, int keywords=eKwSSGet, const CFxString &sSelectPrompt=CFxString(), const CFxString &sRemovePrompt=CFxString(), const fdt_resbufW *pFilter=0, OdGePoint3dArray *pickPointsWCS=0, bool bSingleMode=false, CFxSelectionSet::RemoveFlags flags=CFxSelectionSet::eRemoveDefaultInvalid, TRACKER_VECTOR *pTrackers=0)=0
virtual int GetCorner(const CFxString &prompt, const OdGePoint3d *pDefaultValue, const OdGePoint3d *pBasePtWCS, OdGePoint3d *pResult, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), TRACKER_VECTOR *pTrackers=0, const OdGePlane *pPlane=0)=0
virtual CFxString GetPromptPoint(const CFxString &prompt, const OdGePoint3d *pDefaultValue) const =0
enum CFxUserIO::_FileNameRetVal FileNameRetVal
static int GetFileNamesStatic_Obsolete(FileNameRetVal *pResultMode, CFxStringArray *pResultStrs, FxWId parent, CFxUserIO::FileNameType eType, const CFxString &dialogCaption, const CFxString &defaultExtension, const CFxString &filter, const CFxString &initialDir, int *filterIndex=0, CFxString *templateName=0, FileNameFlags flags=eFileNameNoFlags, OdCodePageId **pCodepage=0)
virtual int GetString(bool bIgnoreSpaces, const CFxString &sPrompt, const CFxString &sDefaultVal, CFxString *pResult, CFxEdInputTracker *pTracker=0, TRACKER_VECTOR *pTrackers=0)=0
virtual int GetFileName(bool &bFILEDIA, const CFxString &prompt, const CFxString &defaultFileName, CFxUserIO::FileNameRetVal *pResultMode, CFxString *pResultStr, FxWId parent, CFxUserIO::FileNameType eType, const CFxString &dialogCaption, const CFxString &defaultExtension, const CFxString &filter, const CFxString &initialDir, int *filterIndex=0, CFxString *templateName=0, FileNameFlags flags=eFileNameNoFlags, OdCodePageId **codepage=0)=0
virtual CFxString GetPrompt(const CFxString &prompt, const CFxString &range) const =0
virtual CFxString GetPromptKeyword(const CFxString &prompt, const CFxString *pDefaultValue=0) const =0
virtual OdSelectionSetPtr select(const OdString &prompt=OdString::kEmpty, int options=OdEd::kSelDefault, const OdSelectionSet *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdSSetTracker *pTracker=0)=0
virtual int GetZoomScale(double *pScale, const CFxString &userInput, const CFxView *pView) const =0
OdGePoint3d getLASTPOINT() const override=0
virtual const CFxString & GetActivePrompt() const =0
_FileNameRetVal
Definition: FxUserIO.h:673
virtual bool IsPending() const =0
void setLASTPOINT(const OdGePoint3d &pt) override=0
virtual int MessageBox(bool bFILEDIA, const CFxString &prompt, const CFxString &caption, unsigned int uType)=0
double getDist(const OdString &prompt, int options=OdEd::kInpDefault, double defaultValue=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0) override=0
virtual int GetUserInput(CFxString *pInput)=0
virtual CFxString GetPromptInt(const CFxString &prompt, const int *pDefaultValue, const CFxString &range) const =0
virtual int GetFileNames(bool &bFILEDIA, const CFxString &prompt, const CFxString &defaultFileName, CFxUserIO::FileNameRetVal *pResultMode, CFxStringArray *pResultStrs, FxWId parent, CFxUserIO::FileNameType eType, const CFxString &dialogCaption, const CFxString &defaultExtension, const CFxString &filter, const CFxString &initialDir, int *filterIndex=0, CFxString *templateName=0, FileNameFlags flags=eFileNameNoFlags, OdCodePageId **codepage=0)=0
double getReal(const OdString &prompt, int options=OdEd::kInpDefault, double defVal=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0) override=0
void putString(const OdString &string) override=0
virtual void Write(const CFxString &prompt)
OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d &base, OdGsModel *pModel=NULL) const override=0
virtual CFxSelectionSet * GetFxCurrentSelectionSet()=0
virtual CFxString GetPromptDist(const CFxString &prompt, const double *pDefaultValue) const =0
virtual int GetInt(const CFxString &prompt, const int *pDefaultVal, int *pResult, CFxRange< int > *pRange=0, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), TRACKER_VECTOR *pTrackers=0)=0
virtual int DoNentsel(const CFxString &sPrompt, CFxSelectionSet *pSelectionSet, const fdt_resbufW *pFilter, OdGePoint3d &pickPointWCS, int pickflag, OdGeMatrix3d &modelToWorld, OdDbObjectIdArray &containerBlocks, int keywords=eKwNEntSel, CFxSelectionSet::RemoveFlags flags=CFxSelectionSet::eRemoveDefaultInvalid, TRACKER_VECTOR *pTrackers=0)=0
virtual int GetAngle(const CFxString &prompt, const double *pDefaultValue, const OdGePoint3d *pBasePointWCS, double *pResult, CFxRange< double > *pRange=0, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), bool bDoNotShowBasePointLine=false, TRACKER_VECTOR *pTrackers=0, const OdGePlane *pPlane=0)=0
~CFxUserIO() override
enum CFxUserIO::_SelectMode SelectMode
virtual CFxString GetPromptKeyword(const CFxString *pDefaultValue=0, const CFxString *pOptionDescription=0) const =0
virtual int GetDouble(const CFxString &sPrompt, const double *pDefaultVal, double *pResult, CFxRange< double > *pRange=0, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), TRACKER_VECTOR *pTrackers=0)=0
int getInt(const OdString &prompt, int options=OdEd::kInpDefault, int defVal=0, const OdString &keywords=OdString::kEmpty, OdEdIntegerTracker *pTracker=0) override=0
virtual void SetIsPrintSelectResults(bool value)=0
enum CFxUserIO::_FileNameFlags FileNameFlags
virtual CFxString GetPromptAngle(const CFxString &prompt, const double *pDefaultValue, bool ignoreANGBASE=false) const =0
virtual int DoEntsel(const CFxString &sPrompt, CFxSelectionSet *pSelectionSet, const fdt_resbufW *pFilter, OdGePoint3d &pickPointWCS, bool &bPointInput, int keywords=eKwEntSel, CFxSelectionSet::RemoveFlags flags=CFxSelectionSet::eRemoveDefaultInvalid, TRACKER_VECTOR *pTrackers=0)=0
virtual CFxString GetPrompt(const CFxString &prompt) const =0
virtual void SetPromptExplanation(const CFxString &explanation)=0
virtual OdDbUnitsFormatter & formatter()=0
virtual void SetCurrentPrompt(const CFxString &prompt, bool bWrite=false)=0
OdSelectionSetPtr pickfirst() override=0
virtual void SetPreviousSelectionSet(const OdDbObjectIdArray &ids)=0
virtual CFxString GetPromptString(const CFxString &prompt, const CFxString *pDefaultValue) const =0
@ eCrossingPolygon
Definition: FxUserIO.h:165
@ eByPoint
Definition: FxUserIO.h:174
@ eObjectClassification
Definition: FxUserIO.h:164
@ eWindowPolygon
Definition: FxUserIO.h:170
@ ePickFirst
Definition: FxUserIO.h:162
@ ePrevious
Definition: FxUserIO.h:168
@ eCrossing
Definition: FxUserIO.h:163
virtual void MessageLoop_Obsolete(bool bClickAllowed, bool bIgnoreWhiteSpaces, CFxTracker *pInputTracker, OdResBufPtr &pInput, TRACKER_VECTOR *pTrackers)=0
static int GetFileNameStatic_Obsolete(FileNameRetVal *pResultMode, CFxString *pResultStr, FxWId parent, CFxUserIO::FileNameType eType, const CFxString &dialogCaption, const CFxString &defaultExtension, const CFxString &filter, const CFxString &initialDir, int *filterIndex=0, CFxString *templateName=0, FileNameFlags flags=eFileNameNoFlags, OdCodePageId **pCodepage=0)
OdCmColor getColor(const OdString &prompt, int options=OdEd::kInpDefault, const OdCmColor *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdColorTracker *pTracker=0) override=0
virtual CFxString GetPromptReal(const CFxString &prompt, const double *pDefaultValue) const =0
virtual int GetDist(const CFxString &prompt, const double *pDefaultValue, const OdGePoint3d *pBasePtWCS, double *pResult, CFxRange< double > *pRange=0, CFxEdInputTracker *pTracker=0, const CFxString &errorPrompt=CFxString(), bool bDoNotShowBasePointLine=false, TRACKER_VECTOR *pTrackers=0, const OdGePlane *pPlane=0)=0
Definition: Gs.h:140
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
GLenum GLint * range
Definition: gles2_ext.h:563
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
@ kGfpForOpen
Definition: EdUserIO.h:59
@ kGptDefault
Definition: EdUserIO.h:74
@ kSelDefault
Definition: EdUserIO.h:103
@ kInpDefault
Definition: EdUserIO.h:47