CFx SDK Documentation  2023 SP0
FxUserIO.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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  eEverythingInAperture = 0x400,
178  } SelectMode;
179 
183  typedef enum _Keywords
184  {
185  eKwNone = 0x0,
186  eKwWindow = 0x1,
187  eKwLast = 0x2,
188  eKwCrossing = 0x4,
189  eKwALL = 0x8,
190  eKwBOX = 0x10,
191  eKwFence = 0x20,
192  eKwWPolygon = 0x40,
193  eKwCPolygon = 0x80,
194  eKwGroup = 0x100,
195  eKwEntSel = eKwLast,
196  eKwNEntSel = eKwNone
197  } Keywords;
198 
202  typedef enum _KeywordsEx
203  {
204  eKwAdd = 0x1000,
205  eKwRemove = 0x2000,
206  eKwMultiple = 0x4000,
207  eKwPrevious = 0x8000,
208  eKwUndo = 0x10000,
209  eKwAUto = 0x20000,
210  eKwSIngle = 0x40000,
211  eKwSUbobject = 0x80000,
212  eKwObject = 0x100000,
213  eKwSSGet = eKwWindow | eKwLast | eKwCrossing | eKwALL | eKwBOX | eKwFence | eKwWPolygon | eKwCPolygon | eKwGroup |
214  eKwAdd | eKwRemove | eKwMultiple | eKwPrevious | eKwUndo | eKwAUto | eKwSIngle
215  } KeywordsEx;
216 
232  virtual int DoSSGet(
233  SelectMode eMode,
234  CFxSelectionSet* pSelectionSet,
235  int keywords = eKwSSGet,
236  const CFxString& sSelectPrompt = CFxString(),
237  const CFxString& sRemovePrompt = CFxString(),
238  const fdt_resbufW* pFilter = 0,
239  OdGePoint3dArray* pickPointsWCS = 0,
240  bool bSingleMode = false,
242  TRACKER_VECTOR* pTrackers = 0 ) = 0;
243 
257  virtual int DoEntsel(
258  const CFxString& sPrompt,
259  CFxSelectionSet* pSelectionSet,
260  const fdt_resbufW* pFilter,
261  OdGePoint3d& pickPointWCS,
262  bool& bPointInput,
263  int keywords = eKwEntSel,
265  TRACKER_VECTOR* pTrackers = 0 ) = 0;
266 
286  virtual int DoNentsel(
287  const CFxString& sPrompt,
288  CFxSelectionSet* pSelectionSet,
289  const fdt_resbufW* pFilter,
290  OdGePoint3d& pickPointWCS,
291  int pickflag,
292  OdGeMatrix3d& modelToWorld,
293  OdDbObjectIdArray& containerBlocks,
294  int keywords = eKwNEntSel,
296  TRACKER_VECTOR* pTrackers = 0 ) = 0;
297 
304  virtual int GetUserInput(
305  CFxString* pInput) = 0;
306 
311  virtual const CFxString& GetUserInput() const = 0;
312 
327  virtual int GetPoint(
328  const CFxString& sPrompt,
329  const OdGePoint3d* pDefaultValue,
330  const OdGePoint3d* pBasePointWCS,
331  OdGePoint3d* pReturnValueWCS,
332  CFxEdInputTracker* pTracker = 0,
333  const CFxString& errorPrompt = CFxString(),
334  bool bDoNotShowBasePointLine = false,
335  TRACKER_VECTOR* pTrackers = 0,
336  const OdGePlane* pPlane = 0) = 0;
337 
349  virtual int GetString(
350  bool bIgnoreSpaces,
351  const CFxString& sPrompt,
352  const CFxString& sDefaultVal,
353  CFxString* pResult,
354  CFxEdInputTracker* pTracker = 0,
355  TRACKER_VECTOR* pTrackers = 0 ) = 0;
356 
367  virtual int GetKeyword(
368  const CFxString& sPrompt,
369  const CFxString& sDefault,
370  CFxString* pResult,
371  CFxEdInputTracker* pTracker = 0,
372  TRACKER_VECTOR* pTrackers = 0 ) = 0;
373 
377  template< class T >
378  struct CFxRange
379  {
380  public:
381  T m_Min;
382  T m_Max;
383  };
384 
397  virtual int GetDouble(
398  const CFxString& sPrompt,
399  const double* pDefaultVal,
400  double* pResult,
401  CFxRange<double>* pRange = 0,
402  CFxEdInputTracker* pTracker = 0,
403  const CFxString& errorPrompt = CFxString(),
404  TRACKER_VECTOR* pTrackers = 0 ) = 0;
405 
418  virtual int GetInt(
419  const CFxString& prompt,
420  const int* pDefaultVal,
421  int* pResult,
422  CFxRange<int>* pRange = 0,
423  CFxEdInputTracker* pTracker = 0,
424  const CFxString& errorPrompt = CFxString(),
425  TRACKER_VECTOR* pTrackers = 0 ) = 0;
426 
442  virtual int GetAngle(
443  const CFxString& prompt,
444  const double* pDefaultValue,
445  const OdGePoint3d* pBasePointWCS,
446  double* pResult,
447  CFxRange<double>* pRange = 0,
448  CFxEdInputTracker* pTracker = 0,
449  const CFxString& errorPrompt = CFxString(),
450  bool bDoNotShowBasePointLine = false,
451  TRACKER_VECTOR* pTrackers = 0,
452  const OdGePlane* pPlane = 0) = 0;
453 
468  virtual int GetDirection(
469  const CFxString& prompt,
470  const double* pDefaultValue,
471  const OdGePoint3d* pBasePointWCS,
472  double* pResult,
473  CFxRange<double>* pRange = 0,
474  CFxEdInputTracker* pTracker = 0,
475  const CFxString& errorPrompt = CFxString(),
476  bool bDoNotShowBasePointLine = false,
477  TRACKER_VECTOR* pTrackers = 0,
478  const OdGePlane* pPlane = 0) = 0;
479 
495  virtual int GetOrient(
496  const CFxString& prompt,
497  const double* pDefaultValue,
498  const OdGePoint3d* pBasePtWCS,
499  double* pResult,
500  CFxRange<double>* pRange = 0,
501  CFxEdInputTracker* pTracker = 0,
502  const CFxString& errorPrompt = CFxString(),
503  bool bDoNotShowBasePointLine = false,
504  TRACKER_VECTOR* pTrackers = 0,
505  const OdGePlane* pPlane = 0) = 0;
506 
521  virtual int GetCorner(
522  const CFxString& prompt,
523  const OdGePoint3d* pDefaultValue,
524  const OdGePoint3d* pBasePtWCS,
525  OdGePoint3d* pResult,
526  CFxEdInputTracker* pTracker = 0,
527  const CFxString& errorPrompt = CFxString(),
528  TRACKER_VECTOR* pTrackers = 0,
529  const OdGePlane* pPlane = 0) = 0;
530 
546  virtual int GetDist(
547  const CFxString& prompt,
548  const double* pDefaultValue,
549  const OdGePoint3d* pBasePtWCS,
550  double* pResult,
551  CFxRange<double>* pRange = 0,
552  CFxEdInputTracker* pTracker = 0,
553  const CFxString& errorPrompt = CFxString(),
554  bool bDoNotShowBasePointLine = false,
555  TRACKER_VECTOR* pTrackers = 0,
556  const OdGePlane* pPlane = 0) = 0;
557 
560  typedef enum _FileNameFlags
561  {
562  eFileNameNoFlags = 0,
563  eFileNameHaveMenu = 1
564  } FileNameFlags;
565 
568  typedef enum _FileNameType
569  {
570  eTypeFilter = 0x000000FF,
571  eNew = 0x00000001,
572  eOpen = 0x00000002,
573  eSave = 0x00000004,
574 
575  eOpenFilter = 0x0000FF00,
576  eOpenNoPreview = 0x00000100,
577  eOpenNoReadOnly = 0x00000200,
578  eOpenNoTemplateHandling = 0x00000400,
579 
580  eOpenNotExist = 0x00000800,
581  } FileNameType;
582 
585  typedef enum _FileNameRetVal
586  {
587  eFileNew = 0x000001,
588  eFileNewNoTemplateImperial = 0x000002,
589  eFileNewNoTemplateMetric = 0x000003,
590 
591  eFileOpen = 0x000100,
592  eFileOpenReadOnly = 0x000300,
593 
594  eFileSave = 0x010000,
595  } FileNameRetVal;
596 
597  typedef std::vector<CFxUserIO::FileNameRetVal> FileNameRetValArray;
598 
616  FileNameRetVal* pResultMode,
617  CFxString* pResultStr,
618  FxWId parent,
620  const CFxString& dialogCaption,
621  const CFxString& defaultExtension,
622  const CFxString& filter,
623  const CFxString& initialDir,
624  int* filterIndex = 0, // filterIndex is zero-based
625  CFxString* templateName = 0,
626  FileNameFlags flags = eFileNameNoFlags,
627  OdCodePageId** pCodepage = 0);
628 
646  FileNameRetVal* pResultMode,
647  CFxStringArray* pResultStrs,
648  FxWId parent,
650  const CFxString& dialogCaption,
651  const CFxString& defaultExtension,
652  const CFxString& filter,
653  const CFxString& initialDir,
654  int* filterIndex = 0, // filterIndex is zero-based
655  CFxString* templateName = 0,
656  FileNameFlags flags = eFileNameNoFlags,
657  OdCodePageId** pCodepage = 0);
658 
679  virtual int GetFileName(
680  bool &bFILEDIA,
681  const CFxString& prompt,
682  const CFxString& defaultFileName,
683  CFxUserIO::FileNameRetVal* pResultMode,
684  CFxString* pResultStr,
685  FxWId parent,
687  const CFxString& dialogCaption,
688  const CFxString& defaultExtension,
689  const CFxString& filter,
690  const CFxString& initialDir,
691  int* filterIndex = 0, // filterIndex is zero-based
692  CFxString* templateName = 0,
693  FileNameFlags flags = eFileNameNoFlags,
694  OdCodePageId** codepage = 0 ) = 0;
695 
714  virtual int GetFileNames(
715  bool &bFILEDIA,
716  const CFxString& prompt,
717  const CFxString& defaultFileName,
718  CFxUserIO::FileNameRetVal* pResultMode,
719  CFxStringArray* pResultStrs,
720  FxWId parent,
722  const CFxString& dialogCaption,
723  const CFxString& defaultExtension,
724  const CFxString& filter,
725  const CFxString& initialDir,
726  int* filterIndex = 0, // filterIndex is zero-based
727  CFxString* templateName = 0,
728  FileNameFlags flags = eFileNameNoFlags,
729  OdCodePageId** codepage = 0 ) = 0;
730 
739  virtual int MessageBox(
740  bool bFILEDIA,
741  const CFxString& prompt,
742  const CFxString& caption,
743  unsigned int uType ) = 0;
744 
749  virtual void Initget( int iFlags ) = 0;
750 
757  virtual void Initget (
758  int iFlags,
759  const CFxStringArray& keywordsGlobal,
760  const CFxStringArray& keywordsLocal ) = 0;
761 
767  virtual void Initget(
768  int iFlags,
769  const CFxKeywordArray& keywords ) = 0;
770 
776  virtual void SetIsPrintSelectResults( bool value ) = 0;
777 
782  virtual const CFxUnitsFormatter* GetUnitsFormatter() const = 0;
783 
789  virtual void SetPromptExplanation( const CFxString& explanation ) = 0;
790 
796  virtual CFxString GetPrompt( const CFxString& prompt ) const = 0;
797 
804  virtual CFxString GetPrompt( const CFxString& prompt, const CFxString& range ) const = 0;
805 
813  virtual CFxString GetPromptPoint( const CFxString& prompt, const OdGePoint2d* pDefaultValue ) const = 0;
814 
822  virtual CFxString GetPromptPoint( const CFxString& prompt, const OdGePoint3d* pDefaultValue ) const = 0;
823 
831  virtual CFxString GetPromptString( const CFxString& prompt, const CFxString* pDefaultValue ) const = 0;
832 
840  virtual CFxString GetPromptString( const CFxString& prompt, const CFxString* pDefaultValue, const CFxString& range ) const = 0;
841 
849  virtual CFxString GetPromptDist( const CFxString& prompt, const double* pDefaultValue ) const = 0;
850 
858  virtual CFxString GetPromptReal( const CFxString& prompt, const double* pDefaultValue ) const = 0;
859 
868  virtual CFxString GetPromptAngle( const CFxString& prompt, const double* pDefaultValue, bool ignoreANGBASE = false ) const = 0;
869 
877  virtual CFxString GetPromptInt( const CFxString& prompt, const int* pDefaultValue ) const = 0;
878 
886  virtual CFxString GetPromptInt( const CFxString& prompt, const int* pDefaultValue, const CFxString& range ) const = 0;
887 
895  virtual CFxString GetPromptKeyword( const CFxString* pDefaultValue = 0, const CFxString* pOptionDescription = 0 ) const = 0;
896 
903  virtual CFxString GetPromptKeyword( const CFxString& prompt, const CFxString* pDefaultValue = 0 ) const = 0;
904 
914  virtual void MessageLoop_Obsolete(
915  bool bClickAllowed,
916  bool bIgnoreWhiteSpaces,
917  CFxTracker* pInputTracker,
918  OdResBufPtr& pInput,
919  TRACKER_VECTOR* pTrackers ) = 0;
920 
926  virtual const OdDbObjectIdArray& GetPreviousSelectionSet() const = 0;
927 
933  virtual void SetPreviousSelectionSet(const OdDbObjectIdArray& ids) = 0;
934 
943  virtual int GetZoomScale( double* pScale, const CFxString& userInput, const CFxView* pView ) const = 0;
944 
951 
956  virtual bool IsPending() const = 0;
957 
962  virtual int InitgetFlags() const = 0;
963 
970  virtual const CFxString& GetActivePrompt() const = 0;
971 
979  virtual void SetCurrentPrompt( const CFxString& prompt, bool bWrite = false ) = 0;
980 
987  virtual const CFxStringArray& GetActiveGlobalKeywords( CFxStringArray& activeGlobalAbbreviations ) const = 0;
988 
995  virtual const CFxStringArray& GetActiveLocalKeywords( CFxStringArray& activeLocalAbbreviations ) const = 0;
996 
997 protected:
998 
999  //DWGDirect overridden functions
1000  /* {secret} */
1002  int options = OdEd::kGptDefault,
1003  const OdGePoint3d* pDefaultValue = 0,
1004  const OdString& keywords = OdString::kEmpty,
1005  OdEdPointTracker* pTracker = 0) override = 0;
1006 
1007  /* {secret} */
1008  double getAngle(const OdString& prompt,
1009  int options = OdEd::kInpDefault,
1010  double defaultValue = 0.0,
1011  const OdString& keywords = OdString::kEmpty,
1012  OdEdRealTracker* pTracker = 0) override = 0;
1013 
1014  /* {secret} */
1015  double getDist(const OdString& prompt,
1016  int options = OdEd::kInpDefault,
1017  double defaultValue = 0.0,
1018  const OdString& keywords = OdString::kEmpty,
1019  OdEdRealTracker* pTracker = 0) override = 0;
1020 
1021  /* {secret} */
1022  OdCmColor getColor(const OdString& prompt,
1023  int options = OdEd::kInpDefault,
1024  const OdCmColor* pDefaultValue = 0,
1025  const OdString& keywords = OdString::kEmpty,
1026  OdEdColorTracker* pTracker = 0) override = 0;
1027 
1028  /* {secret} */
1029 #if TD_VERSION >= 40301
1030  OdSelectionSetPtr select( const OdString& prompt = OdString::kEmpty,
1031  int options = OdEd::kSelDefault,
1032  const OdSelectionSet* pDefaultValue = 0,
1033  const OdString& keywords = OdString::kEmpty,
1034  OdSSetTracker* pTracker = 0,
1035  OdGePoint3dArray* ptsPointer = 0 ) override = 0;
1036 #else
1038  int options = OdEd::kSelDefault,
1039  const OdSelectionSet* pDefaultValue = 0,
1040  const OdString& keywords = OdString::kEmpty,
1041  OdSSetTracker* pTracker = 0) = 0;
1042 #endif
1043 
1044  /* {secret} */
1046 
1047  /* {secret} */
1049  const OdString& prompt,
1050  const OdString& keywords,
1051  int defVal = 0,
1052  int options = OdEd::kInpDefault,
1053  OdEdIntegerTracker* pTracker = 0) override = 0;
1054 
1055  /* {secret} */
1056  int getInt(
1057  const OdString& prompt,
1058  int options = OdEd::kInpDefault,
1059  int defVal = 0,
1060  const OdString& keywords = OdString::kEmpty,
1061  OdEdIntegerTracker* pTracker = 0) override = 0;
1062 
1063  /* {secret} */
1064  double getReal(
1065  const OdString& prompt,
1066  int options = OdEd::kInpDefault,
1067  double defVal = 0.0,
1068  const OdString& keywords = OdString::kEmpty,
1069  OdEdRealTracker* pTracker = 0) override = 0;
1070 
1071  /* {secret} */
1073  const OdString& prompt,
1074  int options = OdEd::kInpDefault,
1075  const OdString& defValue = OdString::kEmpty,
1076  const OdString& keywords = OdString::kEmpty,
1077  OdEdStringTracker* pTracker = 0) override = 0;
1078 
1079  /* {secret} */
1080  void putString(const OdString& string) override = 0;
1081 
1082  /* {secret} */
1084  const OdString& prompt,
1085  int options = OdEd::kGfpForOpen,
1086  const OdString& dialogCaption = OdString::kEmpty,
1087  const OdString& defExt = OdString::kEmpty,
1088  const OdString& fileName = OdString::kEmpty,
1089  const OdString& filter = OdString::kEmpty,
1090  const OdString& keywords = OdString::kEmpty,
1091  OdEdStringTracker* pTracker = 0) override = 0;
1092 
1093  /* {secret} */
1094  OdGePoint3d getLASTPOINT() const override = 0;
1095 
1096  /* {secret} */
1097  void setLASTPOINT(const OdGePoint3d& pt) override = 0;
1098 
1099  /* {secret} */
1100  void setPickfirst(OdSelectionSet* pSSet) override = 0;
1102  OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d& base, OdGsModel* pModel = NULL) const override = 0;
1103  OdEdPointDefTrackerPtr createRectFrame(const OdGePoint3d& base, OdGsModel* pModel = NULL) const override = 0;
1104 };
1105 
1107 
1108 #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:597
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:561
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:586
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