CFx SDK Documentation  2020SP3
FxUserIO.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 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"
CFxViewDrawInfo::DrawDecoration
DrawDecoration
Definition: FxViewDrawInfo.h:350
FxViewDrawInfo.h
CFxUserIO::Initget
virtual void Initget(int iFlags)=0
FxPragmaPop.h
CFxUserIO::GetActiveLocalKeywords
virtual const CFxStringArray & GetActiveLocalKeywords(CFxStringArray &activeLocalAbbreviations) const =0
CFxUserIO::getString
OdString getString(const OdString &prompt, int options=OdEd::kInpDefault, const OdString &defValue=OdString::kEmpty, const OdString &keywords=OdString::kEmpty, OdEdStringTracker *pTracker=0) override=0
OdGePlane
Definition: GePlane.h:45
CFxUserIO::GetCorner
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
OdString
Definition: OdString.h:95
NULL
#define NULL
Definition: GsProperties.h:177
CFxEdInputTracker::subWorldDraw
FX_VIRTUAL bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const override
CFxUserIO::GetAngle
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
CFxEdInputTracker::GetFxDocument
virtual const CFxDocument * GetFxDocument() const
TRACKER_VECTOR
std::vector< CFxTracker * > TRACKER_VECTOR
Definition: FxUserIO.h:130
CFxSelectionSet::eRemoveDefaultInvalid
@ eRemoveDefaultInvalid
Definition: FxSelectionSet.h:194
CFxUserIO::FileNameType
enum CFxUserIO::_FileNameType FileNameType
OdEd::kGfpForOpen
@ kGfpForOpen
Definition: EdUserIO.h:58
CFxUserIO::DoSSGet
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
OdGsView
Definition: Gs.h:133
FxPlatformSettings.h
CFxKeywordArray
Definition: FxKeywordArray.h:29
CFxUserIO::CFxUserIO
CFxUserIO()
OdEdIntegerTracker
Definition: EdUserIO.h:158
CFxUserIO::GetPromptKeyword
virtual CFxString GetPromptKeyword(const CFxString &prompt, const CFxString *pDefaultValue=0) const =0
CFxEdInputTracker::IsSuitableForContext
virtual bool IsSuitableForContext(const CFxView *pFxView) const
CFxUserIO::GetPromptPoint
virtual CFxString GetPromptPoint(const CFxString &prompt, const OdGePoint2d *pDefaultValue) const =0
CFxUserIO::eWindowPolygon
@ eWindowPolygon
Definition: FxUserIO.h:169
range
GLenum GLint * range
Definition: gles2_ext.h:563
CFxUnitsFormatter
Definition: FxUnitsFormatter.h:40
CFxUserIO::SetPromptExplanation
virtual void SetPromptExplanation(const CFxString &explanation)=0
CFxUserIO::GetUserInput
virtual const CFxString & GetUserInput() const =0
CFxUserIO::GetPromptString
virtual CFxString GetPromptString(const CFxString &prompt, const CFxString *pDefaultValue, const CFxString &range) const =0
CFxUserIO::getColor
OdCmColor getColor(const OdString &prompt, int options=OdEd::kInpDefault, const OdCmColor *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdColorTracker *pTracker=0) override=0
CFxUserIO
Definition: FxUserIO.h:138
CFxSelectionSet
Definition: FxSelectionSet.h:49
CFxUserIO::formatter
virtual OdDbUnitsFormatter & formatter()=0
CFxUserIO::GetPrompt
virtual CFxString GetPrompt(const CFxString &prompt) const =0
CFxUserIO::GetActiveGlobalKeywords
virtual const CFxStringArray & GetActiveGlobalKeywords(CFxStringArray &activeGlobalAbbreviations) const =0
CFxEdInputTracker::GetName
virtual const CFxString & GetName() const
CFxUserIO::GetUserInput
virtual int GetUserInput(CFxString *pInput)=0
DbUserIO.h
CFxEdInputTracker::subSetAttributes
FX_VIRTUAL OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const override
CFxUserIO::GetFxCurrentSelectionSet
virtual CFxSelectionSet * GetFxCurrentSelectionSet()=0
OdCodePageId
OdCodePageId
Definition: OdCodePage.h:31
CFxUserIO::eCrossingPolygon
@ eCrossingPolygon
Definition: FxUserIO.h:164
DDKERNEL.h
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
CFxEdInputTracker::addDrawables
FX_VIRTUAL int addDrawables(OdGsView *pView) override
CFxStringArray
std::vector< CFxString > CFxStringArray
Definition: FxString.h:34
CFxUserIO::MessageBox
virtual int MessageBox(bool bFILEDIA, const CFxString &prompt, const CFxString &caption, unsigned int uType)=0
CFxUserIO::CFxRange::m_Max
T m_Max
Definition: FxUserIO.h:381
CFxUserIO::GetPreviousSelectionSet
virtual const OdDbObjectIdArray & GetPreviousSelectionSet() const =0
FxString.h
CFxUserIO::GetKeyword
virtual int GetKeyword(const CFxString &sPrompt, const CFxString &sDefault, CFxString *pResult, CFxEdInputTracker *pTracker=0, TRACKER_VECTOR *pTrackers=0)=0
CFxUserIO::eFence
@ eFence
Definition: FxUserIO.h:165
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
CFxEdInputTracker::setValue
virtual void setValue(const OdGePoint3d &value)=0
CFxUserIO::GetOrient
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
CFxUserIO::GetDist
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
CFxUserIO::eWindow
@ eWindow
Definition: FxUserIO.h:168
OdEd::kSelDefault
@ kSelDefault
Definition: EdUserIO.h:102
CFxUserIO::FileNameRetValArray
std::vector< CFxUserIO::FileNameRetVal > FileNameRetValArray
Definition: FxUserIO.h:596
fdt_resbufW
Definition: FxFdtType.h:154
CFxUserIO::SetIsPrintSelectResults
virtual void SetIsPrintSelectResults(bool value)=0
CFxUserIO::FileNameFlags
enum CFxUserIO::_FileNameFlags FileNameFlags
GiDrawableImpl.h
CFxUserIO::_Keywords
_Keywords
Definition: FxUserIO.h:183
CFxUserIO::SetPreviousSelectionSet
virtual void SetPreviousSelectionSet(const OdDbObjectIdArray &ids)=0
CFxUserIO::GetFileNamesStatic_Obsolete
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)
CFxEdInputTracker::drawable
virtual const OdGiDrawable * drawable() const
CFxUserIO::eGroup
@ eGroup
Definition: FxUserIO.h:172
CFxUserIO::select
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
CFxSelectionSet::RemoveFlags
int RemoveFlags
Definition: FxSelectionSet.h:197
CFxUserIO::GetDirection
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
CFxUserIO::Initget
virtual void Initget(int iFlags, const CFxStringArray &keywordsGlobal, const CFxStringArray &keywordsLocal)=0
CFxUserIO::createRectFrame
OdEdPointDefTrackerPtr createRectFrame(const OdGePoint3d &base, OdGsModel *pModel=NULL) const override=0
GetFxUserIO
DDKERNEL_API CFxUserIO * GetFxUserIO(OdEdCommandContext *pCmdCtx)
CFxUserIO::GetPromptInt
virtual CFxString GetPromptInt(const CFxString &prompt, const int *pDefaultValue) const =0
OdSmartPtr< OdResBuf >
OdGePoint3d
Definition: GePoint3d.h:55
CFxUserIO::eLasso
@ eLasso
Definition: FxUserIO.h:174
CFxString
Definition: FxString.h:48
OdDbUnitsFormatter
Definition: DbUnitsFormatter.h:37
CFxUserIO::GetPromptDist
virtual CFxString GetPromptDist(const CFxString &prompt, const double *pDefaultValue) const =0
CFxUserIO::GetFileNames
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
CFxUserIO::CFxRange
Definition: FxUserIO.h:378
CFxUserIO::MessageLoop_Obsolete
virtual void MessageLoop_Obsolete(bool bClickAllowed, bool bIgnoreWhiteSpaces, CFxTracker *pInputTracker, OdResBufPtr &pInput, TRACKER_VECTOR *pTrackers)=0
CFxUserIO::GetString
virtual int GetString(bool bIgnoreSpaces, const CFxString &sPrompt, const CFxString &sDefaultVal, CFxString *pResult, CFxEdInputTracker *pTracker=0, TRACKER_VECTOR *pTrackers=0)=0
CFxUserIO::GetZoomScale
virtual int GetZoomScale(double *pScale, const CFxString &userInput, const CFxView *pView) const =0
OdEdCommandContext
Definition: EdCommandContext.h:42
CFxUserIO::ePrevious
@ ePrevious
Definition: FxUserIO.h:167
CFxUserIO::GetFileNameStatic_Obsolete
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)
CFxUserIO::getKeyword
int getKeyword(const OdString &prompt, const OdString &keywords, int defVal=0, int options=OdEd::kInpDefault, OdEdIntegerTracker *pTracker=0) override=0
CFxUserIO::createRubberBand
OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d &base, OdGsModel *pModel=NULL) const override=0
CFxUserIO::DoNentsel
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
OdGiDrawable
Definition: GiDrawable.h:49
CFxUserIO::DoEntsel
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
CFxUserIO::Write
virtual void Write(const CFxString &prompt)
CFxEdInputTracker::m_bDrawPreview
bool m_bDrawPreview
Definition: FxUserIO.h:125
CFxUserIO::_FileNameType
_FileNameType
Definition: FxUserIO.h:568
CFxTracker
Definition: FxTracker.h:36
CFxUserIO::SetCurrentPrompt
virtual void SetCurrentPrompt(const CFxString &prompt, bool bWrite=false)=0
FxWId
int FxWId
Definition: FxPlatformSettings.h:42
CFxUserIO::getAngle
double getAngle(const OdString &prompt, int options=OdEd::kInpDefault, double defaultValue=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0) override=0
OdEdPointTracker
Definition: EdUserIO.h:215
CFxUserIO::_FileNameFlags
_FileNameFlags
Definition: FxUserIO.h:560
CFxDocument
Definition: FxDocument.h:47
CFxUserIO::GetPromptString
virtual CFxString GetPromptString(const CFxString &prompt, const CFxString *pDefaultValue) const =0
CFxUserIO::getInt
int getInt(const OdString &prompt, int options=OdEd::kInpDefault, int defVal=0, const OdString &keywords=OdString::kEmpty, OdEdIntegerTracker *pTracker=0) override=0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxUserIO::GetDouble
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
CFxUserIO::setLASTPOINT
void setLASTPOINT(const OdGePoint3d &pt) override=0
CFxView
Definition: FxView.h:265
CFxEdInputTracker::IsDrawInAllViewports
virtual bool IsDrawInAllViewports() const
CFxUserIO::getFilePath
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
CFxUserIO::putString
void putString(const OdString &string) override=0
CFxEdInputTracker::EnablePreview
virtual void EnablePreview(bool bVal)
FxSelectionSet.h
OdSelectionSet
Definition: SSet.h:165
CFxUserIO::setPickfirst
void setPickfirst(OdSelectionSet *pSSet) override=0
CFxUserIO::getReal
double getReal(const OdString &prompt, int options=OdEd::kInpDefault, double defVal=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0) override=0
OdGiWorldDraw
Definition: GiWorldDraw.h:44
CFxUserIO::eFilter
@ eFilter
Definition: FxUserIO.h:170
CFxUserIO::getDist
double getDist(const OdString &prompt, int options=OdEd::kInpDefault, double defaultValue=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0) override=0
CFxUserIO::GetPrompt
virtual CFxString GetPrompt(const CFxString &prompt, const CFxString &range) const =0
OdEd::kInpDefault
@ kInpDefault
Definition: EdUserIO.h:47
CFxUserIO::eByPoint
@ eByPoint
Definition: FxUserIO.h:173
CFxEdInputTracker::GetWorkingPlane
virtual OdGePlane GetWorkingPlane() const
CFxUserIO::CFxRange::m_Min
T m_Min
Definition: FxUserIO.h:380
CFxUserIO::eLast
@ eLast
Definition: FxUserIO.h:166
OdEdColorTracker
Definition: EdUserIO.h:243
CFxUserIO::GetInt
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
OdGiDrawableTraits
Definition: Gi.h:71
CFxUserIO::GetActivePrompt
virtual const CFxString & GetActivePrompt() const =0
CFxEdInputTracker::IsPreviewEnabled
virtual bool IsPreviewEnabled() const
CFxUserIO::SelectMode
enum CFxUserIO::_SelectMode SelectMode
CFxUserIO::GetPromptKeyword
virtual CFxString GetPromptKeyword(const CFxString *pDefaultValue=0, const CFxString *pOptionDescription=0) const =0
CFxUserIO::IsPending
virtual bool IsPending() const =0
CFxUserIO::Initget
virtual void Initget(int iFlags, const CFxKeywordArray &keywords)=0
OdStaticRxObject
Definition: StaticRxObject.h:57
CFxUserIO::_FileNameRetVal
_FileNameRetVal
Definition: FxUserIO.h:585
CFxUserIO::GetPromptPoint
virtual CFxString GetPromptPoint(const CFxString &prompt, const OdGePoint3d *pDefaultValue) const =0
value
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
CFxUserIO::eBox
@ eBox
Definition: FxUserIO.h:171
FX_VIRTUAL
#define FX_VIRTUAL
Definition: DDKERNEL.h:48
CFxUserIO::pickfirst
OdSelectionSetPtr pickfirst() override=0
CFxUserIO::InitgetFlags
virtual int InitgetFlags() const =0
CFxUserIO::GetFileName
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
OdSSetTracker
Definition: EdBaseUserIO.h:39
CFxUserIO::FileNameRetVal
enum CFxUserIO::_FileNameRetVal FileNameRetVal
CFxUserIO::eObjectClassification
@ eObjectClassification
Definition: FxUserIO.h:163
CFxEdInputTracker::CFxEdInputTracker
CFxEdInputTracker()
OdString::kEmpty
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
FxPragmaPush.h
CFxEdInputTracker::GetDrawDecoration
virtual CFxViewDrawInfo::DrawDecoration GetDrawDecoration() const
CFxUserIO::eCrossing
@ eCrossing
Definition: FxUserIO.h:162
OdEdRealTracker
Definition: EdUserIO.h:176
CFxUserIO::GetPromptInt
virtual CFxString GetPromptInt(const CFxString &prompt, const int *pDefaultValue, const CFxString &range) const =0
CFxUserIO::_KeywordsEx
_KeywordsEx
Definition: FxUserIO.h:202
CFxEdInputTracker::m_strName
CFxString m_strName
Definition: FxUserIO.h:126
OdGsModel
Definition: GsModel.h:77
CFxUserIO::GetUnitsFormatter
virtual const CFxUnitsFormatter * GetUnitsFormatter() const =0
CFxEdInputTracker
Definition: FxUserIO.h:43
CFxUserIO::GetPoint
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
CFxUserIO::ePickFirst
@ ePickFirst
Definition: FxUserIO.h:161
OdCmColor
Definition: CmColor.h:59
CFxUserIO::GetPromptAngle
virtual CFxString GetPromptAngle(const CFxString &prompt, const double *pDefaultValue, bool ignoreANGBASE=false) const =0
CFxUserIO::GetPromptReal
virtual CFxString GetPromptReal(const CFxString &prompt, const double *pDefaultValue) const =0
CFxUserIO::_SelectMode
_SelectMode
Definition: FxUserIO.h:159
CFxUserIO::getLASTPOINT
OdGePoint3d getLASTPOINT() const override=0
OdEdStringTracker
Definition: EdUserIO.h:194
CFxEdInputTracker::removeDrawables
FX_VIRTUAL void removeDrawables(OdGsView *pView) override
OdEd::kGptDefault
@ kGptDefault
Definition: EdUserIO.h:73
CFxEdInputTracker::setValueFinal
virtual void setValueFinal(const OdGePoint3d &value)
CFxUserIO::getPoint
OdGePoint3d getPoint(const OdString &prompt, int options=OdEd::kGptDefault, const OdGePoint3d *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdPointTracker *pTracker=0) override=0
CFxUserIO::~CFxUserIO
~CFxUserIO() override
OdGePoint2d
Definition: GePoint2d.h:60