CFx SDK Documentation  2022 SP0
FxUserIO.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2021 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 
27 #include <DbUserIO.h>
28 #include <Gi/GiDrawableImpl.h>
29 
30 class CFxTracker;
31 class CFxKeywordArray;
32 class CFxUnitsFormatter;
33 class OdEdCommandContext;
34 
41  public OdStaticRxObject< OdEdInputTracker >,
42  public OdStaticRxObject< OdGiDrawableImpl<OdGiDrawable> >
43 {
44 public:
46 
50  virtual bool IsDrawInAllViewports() const;
51 
58 
65  FX_VIRTUAL bool subWorldDraw( OdGiWorldDraw* pWorldDraw ) const override;
66 
67 
71  virtual const OdGiDrawable* drawable() const;
72 
77  virtual void setValue( const OdGePoint3d& value ) = 0;
78 
83  virtual void setValueFinal( const OdGePoint3d& value );
84 
90  virtual bool IsSuitableForContext( const CFxView* pFxView ) const;
91 
95  virtual const CFxDocument* GetFxDocument() const;
96 
100  virtual OdGePlane GetWorkingPlane() const;
101 
105  virtual void EnablePreview( bool bVal );
106 
107  virtual bool IsPreviewEnabled() const;
108 
112  virtual const CFxString& GetName() const;
113 
119 
120 protected:
121  /* {secret} */
122  FX_VIRTUAL int addDrawables(OdGsView* pView) override;
123  FX_VIRTUAL void removeDrawables(OdGsView* pView) override;
124 
127 };
128 
129 
130 typedef std::vector<CFxTracker*> TRACKER_VECTOR;
131 
137 class DDKERNEL_API CFxUserIO : public OdStaticRxObject<OdDbUserIO>
138 {
139  friend class CFxCommandParser;
140 
141 public:
142  /* {secret} */
144 
145  /* {secret} */
146  ~CFxUserIO() override;
147 
153  virtual void Write( const CFxString& prompt );
154 
158  typedef enum _SelectMode
159  {
160  eNormal = 1,
175  eSingleMode = 0x100,
176  eSubobjects = 0x200,
177  } SelectMode;
178 
182  typedef enum _Keywords
183  {
184  eKwNone = 0x0,
185  eKwWindow = 0x1,
186  eKwLast = 0x2,
187  eKwCrossing = 0x4,
188  eKwALL = 0x8,
189  eKwBOX = 0x10,
190  eKwFence = 0x20,
191  eKwWPolygon = 0x40,
192  eKwCPolygon = 0x80,
193  eKwGroup = 0x100,
194  eKwEntSel = eKwLast,
195  eKwNEntSel = eKwNone
196  } Keywords;
197 
201  typedef enum _KeywordsEx
202  {
203  eKwAdd = 0x1000,
204  eKwRemove = 0x2000,
205  eKwMultiple = 0x4000,
206  eKwPrevious = 0x8000,
207  eKwUndo = 0x10000,
208  eKwAUto = 0x20000,
209  eKwSIngle = 0x40000,
210  eKwSUbobject = 0x80000,
211  eKwObject = 0x100000,
212  eKwSSGet = eKwWindow | eKwLast | eKwCrossing | eKwALL | eKwBOX | eKwFence | eKwWPolygon | eKwCPolygon | eKwGroup |
213  eKwAdd | eKwRemove | eKwMultiple | eKwPrevious | eKwUndo | eKwAUto | eKwSIngle
214  } KeywordsEx;
215 
231  virtual int DoSSGet(
232  SelectMode eMode,
233  CFxSelectionSet* pSelectionSet,
234  int keywords = eKwSSGet,
235  const CFxString& sSelectPrompt = CFxString(),
236  const CFxString& sRemovePrompt = CFxString(),
237  const fdt_resbufW* pFilter = 0,
238  OdGePoint3dArray* pickPointsWCS = 0,
239  bool bSingleMode = false,
241  TRACKER_VECTOR* pTrackers = 0 ) = 0;
242 
256  virtual int DoEntsel(
257  const CFxString& sPrompt,
258  CFxSelectionSet* pSelectionSet,
259  const fdt_resbufW* pFilter,
260  OdGePoint3d& pickPointWCS,
261  bool& bPointInput,
262  int keywords = eKwEntSel,
264  TRACKER_VECTOR* pTrackers = 0 ) = 0;
265 
285  virtual int DoNentsel(
286  const CFxString& sPrompt,
287  CFxSelectionSet* pSelectionSet,
288  const fdt_resbufW* pFilter,
289  OdGePoint3d& pickPointWCS,
290  int pickflag,
291  OdGeMatrix3d& modelToWorld,
292  OdDbObjectIdArray& containerBlocks,
293  int keywords = eKwNEntSel,
295  TRACKER_VECTOR* pTrackers = 0 ) = 0;
296 
303  virtual int GetUserInput(
304  CFxString* pInput) = 0;
305 
310  virtual const CFxString& GetUserInput() const = 0;
311 
326  virtual int GetPoint(
327  const CFxString& sPrompt,
328  const OdGePoint3d* pDefaultValue,
329  const OdGePoint3d* pBasePointWCS,
330  OdGePoint3d* pReturnValueWCS,
331  CFxEdInputTracker* pTracker = 0,
332  const CFxString& errorPrompt = CFxString(),
333  bool bDoNotShowBasePointLine = false,
334  TRACKER_VECTOR* pTrackers = 0,
335  const OdGePlane* pPlane = 0) = 0;
336 
348  virtual int GetString(
349  bool bIgnoreSpaces,
350  const CFxString& sPrompt,
351  const CFxString& sDefaultVal,
352  CFxString* pResult,
353  CFxEdInputTracker* pTracker = 0,
354  TRACKER_VECTOR* pTrackers = 0 ) = 0;
355 
366  virtual int GetKeyword(
367  const CFxString& sPrompt,
368  const CFxString& sDefault,
369  CFxString* pResult,
370  CFxEdInputTracker* pTracker = 0,
371  TRACKER_VECTOR* pTrackers = 0 ) = 0;
372 
376  template< class T >
377  struct CFxRange
378  {
379  public:
380  T m_Min;
381  T m_Max;
382  };
383 
396  virtual int GetDouble(
397  const CFxString& sPrompt,
398  const double* pDefaultVal,
399  double* pResult,
400  CFxRange<double>* pRange = 0,
401  CFxEdInputTracker* pTracker = 0,
402  const CFxString& errorPrompt = CFxString(),
403  TRACKER_VECTOR* pTrackers = 0 ) = 0;
404 
417  virtual int GetInt(
418  const CFxString& prompt,
419  const int* pDefaultVal,
420  int* pResult,
421  CFxRange<int>* pRange = 0,
422  CFxEdInputTracker* pTracker = 0,
423  const CFxString& errorPrompt = CFxString(),
424  TRACKER_VECTOR* pTrackers = 0 ) = 0;
425 
441  virtual int GetAngle(
442  const CFxString& prompt,
443  const double* pDefaultValue,
444  const OdGePoint3d* pBasePointWCS,
445  double* pResult,
446  CFxRange<double>* pRange = 0,
447  CFxEdInputTracker* pTracker = 0,
448  const CFxString& errorPrompt = CFxString(),
449  bool bDoNotShowBasePointLine = false,
450  TRACKER_VECTOR* pTrackers = 0,
451  const OdGePlane* pPlane = 0) = 0;
452 
467  virtual int GetDirection(
468  const CFxString& prompt,
469  const double* pDefaultValue,
470  const OdGePoint3d* pBasePointWCS,
471  double* pResult,
472  CFxRange<double>* pRange = 0,
473  CFxEdInputTracker* pTracker = 0,
474  const CFxString& errorPrompt = CFxString(),
475  bool bDoNotShowBasePointLine = false,
476  TRACKER_VECTOR* pTrackers = 0,
477  const OdGePlane* pPlane = 0) = 0;
478 
494  virtual int GetOrient(
495  const CFxString& prompt,
496  const double* pDefaultValue,
497  const OdGePoint3d* pBasePtWCS,
498  double* pResult,
499  CFxRange<double>* pRange = 0,
500  CFxEdInputTracker* pTracker = 0,
501  const CFxString& errorPrompt = CFxString(),
502  bool bDoNotShowBasePointLine = false,
503  TRACKER_VECTOR* pTrackers = 0,
504  const OdGePlane* pPlane = 0) = 0;
505 
520  virtual int GetCorner(
521  const CFxString& prompt,
522  const OdGePoint3d* pDefaultValue,
523  const OdGePoint3d* pBasePtWCS,
524  OdGePoint3d* pResult,
525  CFxEdInputTracker* pTracker = 0,
526  const CFxString& errorPrompt = CFxString(),
527  TRACKER_VECTOR* pTrackers = 0,
528  const OdGePlane* pPlane = 0) = 0;
529 
545  virtual int GetDist(
546  const CFxString& prompt,
547  const double* pDefaultValue,
548  const OdGePoint3d* pBasePtWCS,
549  double* pResult,
550  CFxRange<double>* pRange = 0,
551  CFxEdInputTracker* pTracker = 0,
552  const CFxString& errorPrompt = CFxString(),
553  bool bDoNotShowBasePointLine = false,
554  TRACKER_VECTOR* pTrackers = 0,
555  const OdGePlane* pPlane = 0) = 0;
556 
559  typedef enum _FileNameFlags
560  {
561  eFileNameNoFlags = 0,
562  eFileNameHaveMenu = 1
563  } FileNameFlags;
564 
567  typedef enum _FileNameType
568  {
569  eTypeFilter = 0x000000FF,
570  eNew = 0x00000001,
571  eOpen = 0x00000002,
572  eSave = 0x00000004,
573 
574  eOpenFilter = 0x0000FF00,
575  eOpenNoPreview = 0x00000100,
576  eOpenNoReadOnly = 0x00000200,
577  eOpenNoTemplateHandling = 0x00000400,
578 
579  eOpenNotExist = 0x00000800,
580  } FileNameType;
581 
584  typedef enum _FileNameRetVal
585  {
586  eFileNew = 0x000001,
587  eFileNewNoTemplateImperial = 0x000002,
588  eFileNewNoTemplateMetric = 0x000003,
589 
590  eFileOpen = 0x000100,
591  eFileOpenReadOnly = 0x000300,
592 
593  eFileSave = 0x010000,
594  } FileNameRetVal;
595 
596  typedef std::vector<CFxUserIO::FileNameRetVal> FileNameRetValArray;
597 
615  FileNameRetVal* pResultMode,
616  CFxString* pResultStr,
617  FxWId parent,
619  const CFxString& dialogCaption,
620  const CFxString& defaultExtension,
621  const CFxString& filter,
622  const CFxString& initialDir,
623  int* filterIndex = 0, // filterIndex is zero-based
624  CFxString* templateName = 0,
625  FileNameFlags flags = eFileNameNoFlags,
626  OdCodePageId** pCodepage = 0);
627 
645  FileNameRetVal* pResultMode,
646  CFxStringArray* pResultStrs,
647  FxWId parent,
649  const CFxString& dialogCaption,
650  const CFxString& defaultExtension,
651  const CFxString& filter,
652  const CFxString& initialDir,
653  int* filterIndex = 0, // filterIndex is zero-based
654  CFxString* templateName = 0,
655  FileNameFlags flags = eFileNameNoFlags,
656  OdCodePageId** pCodepage = 0);
657 
678  virtual int GetFileName(
679  bool &bFILEDIA,
680  const CFxString& prompt,
681  const CFxString& defaultFileName,
682  CFxUserIO::FileNameRetVal* pResultMode,
683  CFxString* pResultStr,
684  FxWId parent,
686  const CFxString& dialogCaption,
687  const CFxString& defaultExtension,
688  const CFxString& filter,
689  const CFxString& initialDir,
690  int* filterIndex = 0, // filterIndex is zero-based
691  CFxString* templateName = 0,
692  FileNameFlags flags = eFileNameNoFlags,
693  OdCodePageId** codepage = 0 ) = 0;
694 
713  virtual int GetFileNames(
714  bool &bFILEDIA,
715  const CFxString& prompt,
716  const CFxString& defaultFileName,
717  CFxUserIO::FileNameRetVal* pResultMode,
718  CFxStringArray* pResultStrs,
719  FxWId parent,
721  const CFxString& dialogCaption,
722  const CFxString& defaultExtension,
723  const CFxString& filter,
724  const CFxString& initialDir,
725  int* filterIndex = 0, // filterIndex is zero-based
726  CFxString* templateName = 0,
727  FileNameFlags flags = eFileNameNoFlags,
728  OdCodePageId** codepage = 0 ) = 0;
729 
738  virtual int MessageBox(
739  bool bFILEDIA,
740  const CFxString& prompt,
741  const CFxString& caption,
742  unsigned int uType ) = 0;
743 
748  virtual void Initget( int iFlags ) = 0;
749 
756  virtual void Initget (
757  int iFlags,
758  const CFxStringArray& keywordsGlobal,
759  const CFxStringArray& keywordsLocal ) = 0;
760 
766  virtual void Initget(
767  int iFlags,
768  const CFxKeywordArray& keywords ) = 0;
769 
775  virtual void SetIsPrintSelectResults( bool value ) = 0;
776 
781  virtual const CFxUnitsFormatter* GetUnitsFormatter() const = 0;
782 
788  virtual void SetPromptExplanation( const CFxString& explanation ) = 0;
789 
795  virtual CFxString GetPrompt( const CFxString& prompt ) const = 0;
796 
803  virtual CFxString GetPrompt( const CFxString& prompt, const CFxString& range ) const = 0;
804 
812  virtual CFxString GetPromptPoint( const CFxString& prompt, const OdGePoint2d* pDefaultValue ) const = 0;
813 
821  virtual CFxString GetPromptPoint( const CFxString& prompt, const OdGePoint3d* pDefaultValue ) const = 0;
822 
830  virtual CFxString GetPromptString( const CFxString& prompt, const CFxString* pDefaultValue ) const = 0;
831 
839  virtual CFxString GetPromptString( const CFxString& prompt, const CFxString* pDefaultValue, const CFxString& range ) const = 0;
840 
848  virtual CFxString GetPromptDist( const CFxString& prompt, const double* pDefaultValue ) const = 0;
849 
857  virtual CFxString GetPromptReal( const CFxString& prompt, const double* pDefaultValue ) const = 0;
858 
867  virtual CFxString GetPromptAngle( const CFxString& prompt, const double* pDefaultValue, bool ignoreANGBASE = false ) const = 0;
868 
876  virtual CFxString GetPromptInt( const CFxString& prompt, const int* pDefaultValue ) const = 0;
877 
885  virtual CFxString GetPromptInt( const CFxString& prompt, const int* pDefaultValue, const CFxString& range ) const = 0;
886 
894  virtual CFxString GetPromptKeyword( const CFxString* pDefaultValue = 0, const CFxString* pOptionDescription = 0 ) const = 0;
895 
902  virtual CFxString GetPromptKeyword( const CFxString& prompt, const CFxString* pDefaultValue = 0 ) const = 0;
903 
913  virtual void MessageLoop_Obsolete(
914  bool bClickAllowed,
915  bool bIgnoreWhiteSpaces,
916  CFxTracker* pInputTracker,
917  OdResBufPtr& pInput,
918  TRACKER_VECTOR* pTrackers ) = 0;
919 
925  virtual const OdDbObjectIdArray& GetPreviousSelectionSet() const = 0;
926 
932  virtual void SetPreviousSelectionSet(const OdDbObjectIdArray& ids) = 0;
933 
942  virtual int GetZoomScale( double* pScale, const CFxString& userInput, const CFxView* pView ) const = 0;
943 
950 
955  virtual bool IsPending() const = 0;
956 
961  virtual int InitgetFlags() const = 0;
962 
969  virtual const CFxString& GetActivePrompt() const = 0;
970 
978  virtual void SetCurrentPrompt( const CFxString& prompt, bool bWrite = false ) = 0;
979 
986  virtual const CFxStringArray& GetActiveGlobalKeywords( CFxStringArray& activeGlobalAbbreviations ) const = 0;
987 
994  virtual const CFxStringArray& GetActiveLocalKeywords( CFxStringArray& activeLocalAbbreviations ) const = 0;
995 
996 protected:
997 
998  //DWGDirect overridden functions
999  /* {secret} */
1001  int options = OdEd::kGptDefault,
1002  const OdGePoint3d* pDefaultValue = 0,
1003  const OdString& keywords = OdString::kEmpty,
1004  OdEdPointTracker* pTracker = 0) override = 0;
1005 
1006  /* {secret} */
1007  double getAngle(const OdString& prompt,
1008  int options = OdEd::kInpDefault,
1009  double defaultValue = 0.0,
1010  const OdString& keywords = OdString::kEmpty,
1011  OdEdRealTracker* pTracker = 0) override = 0;
1012 
1013  /* {secret} */
1014  double getDist(const OdString& prompt,
1015  int options = OdEd::kInpDefault,
1016  double defaultValue = 0.0,
1017  const OdString& keywords = OdString::kEmpty,
1018  OdEdRealTracker* pTracker = 0) override = 0;
1019 
1020  /* {secret} */
1021  OdCmColor getColor(const OdString& prompt,
1022  int options = OdEd::kInpDefault,
1023  const OdCmColor* pDefaultValue = 0,
1024  const OdString& keywords = OdString::kEmpty,
1025  OdEdColorTracker* pTracker = 0) override = 0;
1026 
1027  /* {secret} */
1028 #if TD_VERSION >= 40301
1029  OdSelectionSetPtr select( const OdString& prompt = OdString::kEmpty,
1030  int options = OdEd::kSelDefault,
1031  const OdSelectionSet* pDefaultValue = 0,
1032  const OdString& keywords = OdString::kEmpty,
1033  OdSSetTracker* pTracker = 0,
1034  OdGePoint3dArray* ptsPointer = 0 ) override = 0;
1035 #else
1037  int options = OdEd::kSelDefault,
1038  const OdSelectionSet* pDefaultValue = 0,
1039  const OdString& keywords = OdString::kEmpty,
1040  OdSSetTracker* pTracker = 0) = 0;
1041 #endif
1042 
1043  /* {secret} */
1045 
1046  /* {secret} */
1048  const OdString& prompt,
1049  const OdString& keywords,
1050  int defVal = 0,
1051  int options = OdEd::kInpDefault,
1052  OdEdIntegerTracker* pTracker = 0) override = 0;
1053 
1054  /* {secret} */
1055  int getInt(
1056  const OdString& prompt,
1057  int options = OdEd::kInpDefault,
1058  int defVal = 0,
1059  const OdString& keywords = OdString::kEmpty,
1060  OdEdIntegerTracker* pTracker = 0) override = 0;
1061 
1062  /* {secret} */
1063  double getReal(
1064  const OdString& prompt,
1065  int options = OdEd::kInpDefault,
1066  double defVal = 0.0,
1067  const OdString& keywords = OdString::kEmpty,
1068  OdEdRealTracker* pTracker = 0) override = 0;
1069 
1070  /* {secret} */
1072  const OdString& prompt,
1073  int options = OdEd::kInpDefault,
1074  const OdString& defValue = OdString::kEmpty,
1075  const OdString& keywords = OdString::kEmpty,
1076  OdEdStringTracker* pTracker = 0) override = 0;
1077 
1078  /* {secret} */
1079  void putString(const OdString& string) override = 0;
1080 
1081  /* {secret} */
1083  const OdString& prompt,
1084  int options = OdEd::kGfpForOpen,
1085  const OdString& dialogCaption = OdString::kEmpty,
1086  const OdString& defExt = OdString::kEmpty,
1087  const OdString& fileName = OdString::kEmpty,
1088  const OdString& filter = OdString::kEmpty,
1089  const OdString& keywords = OdString::kEmpty,
1090  OdEdStringTracker* pTracker = 0) override = 0;
1091 
1092  /* {secret} */
1093  OdGePoint3d getLASTPOINT() const override = 0;
1094 
1095  /* {secret} */
1096  void setLASTPOINT(const OdGePoint3d& pt) override = 0;
1097 
1098  /* {secret} */
1099  void setPickfirst(OdSelectionSet* pSSet) override = 0;
1101  OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d& base, OdGsModel* pModel = NULL) const override = 0;
1102  OdEdPointDefTrackerPtr createRectFrame(const OdGePoint3d& base, OdGsModel* pModel = NULL) const override = 0;
1103 };
1104 
1106 
1107 #include "FxPragmaPop.h"
#define FX_VIRTUAL
Definition: DDKERNEL.h:48
#define DDKERNEL_API
Definition: DDKERNEL.h:32
int FxWId
std::vector< CFxString > CFxStringArray
Definition: FxString.h:34
@ eNormal
Definition: FxUITextEdit.h:29
std::vector< CFxTracker * > TRACKER_VECTOR
Definition: FxUserIO.h:130
DDKERNEL_API CFxUserIO * GetFxUserIO(OdEdCommandContext *pCmdCtx)
#define NULL
Definition: GsProperties.h:177
OdCodePageId
Definition: OdCodePage.h:31
unsigned int OdUInt32
virtual void EnablePreview(bool bVal)
virtual bool IsSuitableForContext(const CFxView *pFxView) 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 CFxDocument * GetFxDocument() const
CFxString m_strName
Definition: FxUserIO.h:126
FX_VIRTUAL int addDrawables(OdGsView *pView) override
virtual void setValueFinal(const OdGePoint3d &value)
FX_VIRTUAL bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const override
virtual const CFxString & GetName() const
virtual bool IsDrawInAllViewports() const
virtual const OdGiDrawable * drawable() 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 void Initget(int iFlags)=0
enum CFxUserIO::_FileNameType FileNameType
void setPickfirst(OdSelectionSet *pSSet) override=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
std::vector< CFxUserIO::FileNameRetVal > FileNameRetValArray
Definition: FxUserIO.h:596
virtual CFxSelectionSet * GetFxCurrentSelectionSet()=0
OdGePoint3d getPoint(const OdString &prompt, int options=OdEd::kGptDefault, const OdGePoint3d *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdPointTracker *pTracker=0) override=0
virtual OdDbUnitsFormatter & formatter()=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:560
virtual CFxString GetPromptInt(const CFxString &prompt, const int *pDefaultValue) const =0
virtual const OdDbObjectIdArray & GetPreviousSelectionSet() 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 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 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 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
virtual const CFxString & GetUserInput() const =0
OdGePoint3d getLASTPOINT() const override=0
_FileNameRetVal
Definition: FxUserIO.h:585
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
virtual const CFxStringArray & GetActiveLocalKeywords(CFxStringArray &activeLocalAbbreviations) const =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 const CFxString & GetActivePrompt() const =0
virtual void Write(const CFxString &prompt)
OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d &base, OdGsModel *pModel=NULL) const override=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 const CFxUnitsFormatter * GetUnitsFormatter() const =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 const CFxStringArray & GetActiveGlobalKeywords(CFxStringArray &activeGlobalAbbreviations) const =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 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:164
@ eByPoint
Definition: FxUserIO.h:173
@ eObjectClassification
Definition: FxUserIO.h:163
@ eWindowPolygon
Definition: FxUserIO.h:169
@ ePickFirst
Definition: FxUserIO.h:161
@ ePrevious
Definition: FxUserIO.h:167
@ eCrossing
Definition: FxUserIO.h:162
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:133
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:58
@ kGptDefault
Definition: EdUserIO.h:73
@ kSelDefault
Definition: EdUserIO.h:102
@ kInpDefault
Definition: EdUserIO.h:47