CFx SDK Documentation  2020SP3
FxInputContextReactor.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 
23 #include <RxObject.h>
24 #include <IdArrays.h>
25 #include <DbSubentId.h>
26 
27 #include <Ge/GePoint3d.h>
28 
29 #include "FxString.h"
30 
31 class CFxUserIO;
33 
40 {
41  friend class CFxInputPointManagerImpl;
42 
43 public:
45  ~CFxInputContextReactor(void) override;
46 
48 
53  virtual void BeginQuiescentState(){};
54 
59  virtual void EndQuiescentState(){};
60 
67  virtual void BeginGetPoint( CFxUserIO* ) { }
68 
77  virtual void EndGetPoint( int returnStatus, CFxUserIO*, const OdGePoint3d& pointOut ){ }
78 
85  virtual void BeginGetAngle( CFxUserIO* ){ }
86 
95  virtual void EndGetAngle( int returnStatus, CFxUserIO*, double dAngle ){ }
96 
103  virtual void BeginGetDistance( CFxUserIO* ){ }
104 
113  virtual void EndGetDistance( int returnStatus, CFxUserIO*, double dDistance ){ }
114 
121  virtual void BeginGetOrientation( CFxUserIO* ){ }
122 
131  virtual void EndGetOrientation( int returnStatus, CFxUserIO*, double dAngle ){ }
132 
139  virtual void BeginGetCorner( CFxUserIO* ){ }
140 
149  virtual void EndGetCorner( int returnStatus, CFxUserIO*, const OdGePoint3d& secondPoint ){ }
150 
151  // *ScaleFactor is the same as *Distance, except a negative
152  // value can be returned. There is no exported ADS/LISP/ActiveX equivalent.
153  //
154  virtual void BeginGetScaleFactor( CFxUserIO* ){ }
155 
164  virtual void EndGetScaleFactor( int returnStatus, CFxUserIO*, double dScale ){ }
165 
172  virtual void BeginGetString( CFxUserIO* ){ }
173 
182  virtual void EndGetString ( int returnStatus, CFxUserIO*, const CFxString& outString ){ }
183 
190  virtual void BeginGetKeyword( CFxUserIO* ){ }
191 
200  virtual void EndGetKeyword ( int returnStatus, CFxUserIO*, const CFxString& outKeyword ){ }
201 
209  virtual void BeginGetInteger( const int* pDefault, CFxUserIO* ){ }
210 
219  virtual void EndGetInteger( int returnStatus, CFxUserIO*, int retValue ){ }
220 
227  virtual void BeginGetFileName( CFxUserIO* ){ }
228 
237  virtual void EndGetFileName( int returnStatus, CFxUserIO*, const CFxString& retValue ){ }
238 
245  virtual void BeginGetFileNames( CFxUserIO* ){ }
246 
255  virtual void EndGetFileNames( int returnStatus, CFxUserIO*, const CFxStringArray& retValue ){ }
263  virtual void BeginGetColor( const int* pDefault, CFxUserIO* ){ }
264 
273  virtual void EndGetColor( int returnStatus, CFxUserIO*, int retValue ){ }
274 
282  virtual void BeginGetReal( const double* pDefault, CFxUserIO* ){ }
283 
292  virtual void EndGetReal( int returnStatus, CFxUserIO*, double retValue ){ }
293 
300  virtual void BeginEntsel( CFxUserIO* ){ }
301 
310  virtual void EndEntsel( int returnStatus, CFxUserIO*, const OdDbObjectId& entPicked ){ }
311 
318  virtual void BeginNentsel( CFxUserIO* ){ }
319 
329  virtual void EndNentsel( int returnStatus, CFxUserIO*, const OdDbFullSubentPath& entPicked, const OdGePoint3d& pickPoint ){ }
330 
337  virtual void BeginSSGet( CFxUserIO* ){ }
338 
347  virtual void EndSSGet( int iResult, CFxUserIO*, const OdDbObjectIdArray &ss ){ }
348 
355  virtual void BeginDragSequence( CFxUserIO* ){ }
356 
366  virtual void EndDragSequence( int iResult, OdGePoint3d& pickPoint, OdGeVector3d& vector, CFxUserIO* ){ }
367 
374  {
375  return m_pInputContextManager;
376  }
377 
378 private:
379  CFxInputPointManager* m_pInputContextManager;
380 };
381 
383 {
384 public:
391  virtual void BeginModifier( CFxUserIO* )
392  {
393  };
394 
402  virtual void EndModifier( CFxUserIO*, const CFxString& modifier )
403  {
404  };
405 };
406 
407 #include "FxPragmaPop.h"
FxPragmaPop.h
OdGeVector3d
Definition: GeVector3d.h:54
IdArrays.h
CFxInputContextReactor::EndDragSequence
virtual void EndDragSequence(int iResult, OdGePoint3d &pickPoint, OdGeVector3d &vector, CFxUserIO *)
Definition: FxInputContextReactor.h:366
CFxUserIO
Definition: FxUserIO.h:138
CFxInputContextReactor::EndGetFileNames
virtual void EndGetFileNames(int returnStatus, CFxUserIO *, const CFxStringArray &retValue)
Definition: FxInputContextReactor.h:255
CFxInputContextReactor::BeginGetFileNames
virtual void BeginGetFileNames(CFxUserIO *)
Definition: FxInputContextReactor.h:245
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDbFullSubentPath
Definition: DbSubentId.h:49
CFxInputContextReactor::EndGetAngle
virtual void EndGetAngle(int returnStatus, CFxUserIO *, double dAngle)
Definition: FxInputContextReactor.h:95
DDKERNEL.h
OdArray< OdDbObjectId, OdMemoryAllocator< OdDbObjectId > >
CFxInputContextReactor::EndQuiescentState
virtual void EndQuiescentState()
Definition: FxInputContextReactor.h:59
CFxStringArray
std::vector< CFxString > CFxStringArray
Definition: FxString.h:34
CFxInputContextReactor::EndGetPoint
virtual void EndGetPoint(int returnStatus, CFxUserIO *, const OdGePoint3d &pointOut)
Definition: FxInputContextReactor.h:77
CFxInputContextReactor::EndGetCorner
virtual void EndGetCorner(int returnStatus, CFxUserIO *, const OdGePoint3d &secondPoint)
Definition: FxInputContextReactor.h:149
CFxInputContextReactor::EndEntsel
virtual void EndEntsel(int returnStatus, CFxUserIO *, const OdDbObjectId &entPicked)
Definition: FxInputContextReactor.h:310
FxString.h
CFxInputContextReactor::BeginQuiescentState
virtual void BeginQuiescentState()
Definition: FxInputContextReactor.h:53
RxObject.h
CFxInputContextReactor::EndGetOrientation
virtual void EndGetOrientation(int returnStatus, CFxUserIO *, double dAngle)
Definition: FxInputContextReactor.h:131
CFxInputPointManager
Definition: FxInputPointManager.h:47
CFxInputContextReactor::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxInputContextReactor)
CFxInputContextReactor::EndGetFileName
virtual void EndGetFileName(int returnStatus, CFxUserIO *, const CFxString &retValue)
Definition: FxInputContextReactor.h:237
CFxInputContextReactor::BeginGetPoint
virtual void BeginGetPoint(CFxUserIO *)
Definition: FxInputContextReactor.h:67
CFxInputContextReactor::BeginSSGet
virtual void BeginSSGet(CFxUserIO *)
Definition: FxInputContextReactor.h:337
OdGePoint3d
Definition: GePoint3d.h:55
CFxString
Definition: FxString.h:48
CFxInputContextReactor
Definition: FxInputContextReactor.h:40
CFxInputContextReactor::BeginGetInteger
virtual void BeginGetInteger(const int *pDefault, CFxUserIO *)
Definition: FxInputContextReactor.h:209
CFxInputContextReactor::~CFxInputContextReactor
~CFxInputContextReactor(void) override
GePoint3d.h
CFxInputContextReactor::GetInputContextManager
const CFxInputPointManager * GetInputContextManager() const
Definition: FxInputContextReactor.h:373
CFxInputContextReactor::BeginGetColor
virtual void BeginGetColor(const int *pDefault, CFxUserIO *)
Definition: FxInputContextReactor.h:263
CFxInputContextReactorExtended::BeginModifier
virtual void BeginModifier(CFxUserIO *)
Definition: FxInputContextReactor.h:391
CFxInputContextReactor::BeginGetOrientation
virtual void BeginGetOrientation(CFxUserIO *)
Definition: FxInputContextReactor.h:121
CFxInputContextReactor::EndGetKeyword
virtual void EndGetKeyword(int returnStatus, CFxUserIO *, const CFxString &outKeyword)
Definition: FxInputContextReactor.h:200
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxInputContextReactor::CFxInputContextReactor
CFxInputContextReactor(void)
CFxInputContextReactor::BeginGetDistance
virtual void BeginGetDistance(CFxUserIO *)
Definition: FxInputContextReactor.h:103
CFxInputContextReactor::BeginNentsel
virtual void BeginNentsel(CFxUserIO *)
Definition: FxInputContextReactor.h:318
CFxInputContextReactor::BeginGetString
virtual void BeginGetString(CFxUserIO *)
Definition: FxInputContextReactor.h:172
CFxInputContextReactor::BeginGetKeyword
virtual void BeginGetKeyword(CFxUserIO *)
Definition: FxInputContextReactor.h:190
CFxInputContextReactor::EndGetScaleFactor
virtual void EndGetScaleFactor(int returnStatus, CFxUserIO *, double dScale)
Definition: FxInputContextReactor.h:164
CFxInputContextReactorExtended
Definition: FxInputContextReactor.h:383
CFxInputContextReactor::BeginGetReal
virtual void BeginGetReal(const double *pDefault, CFxUserIO *)
Definition: FxInputContextReactor.h:282
CFxInputContextReactor::EndNentsel
virtual void EndNentsel(int returnStatus, CFxUserIO *, const OdDbFullSubentPath &entPicked, const OdGePoint3d &pickPoint)
Definition: FxInputContextReactor.h:329
CFxInputContextReactor::EndGetColor
virtual void EndGetColor(int returnStatus, CFxUserIO *, int retValue)
Definition: FxInputContextReactor.h:273
CFxInputContextReactor::BeginDragSequence
virtual void BeginDragSequence(CFxUserIO *)
Definition: FxInputContextReactor.h:355
CFxInputContextReactor::EndGetString
virtual void EndGetString(int returnStatus, CFxUserIO *, const CFxString &outString)
Definition: FxInputContextReactor.h:182
CFxInputContextReactor::EndGetDistance
virtual void EndGetDistance(int returnStatus, CFxUserIO *, double dDistance)
Definition: FxInputContextReactor.h:113
CFxInputContextReactor::BeginGetAngle
virtual void BeginGetAngle(CFxUserIO *)
Definition: FxInputContextReactor.h:85
CFxInputContextReactor::BeginEntsel
virtual void BeginEntsel(CFxUserIO *)
Definition: FxInputContextReactor.h:300
FxPragmaPush.h
CFxInputContextReactor::EndGetReal
virtual void EndGetReal(int returnStatus, CFxUserIO *, double retValue)
Definition: FxInputContextReactor.h:292
CFxInputContextReactor::EndGetInteger
virtual void EndGetInteger(int returnStatus, CFxUserIO *, int retValue)
Definition: FxInputContextReactor.h:219
CFxInputContextReactor::BeginGetScaleFactor
virtual void BeginGetScaleFactor(CFxUserIO *)
Definition: FxInputContextReactor.h:154
DbSubentId.h
CFxInputContextReactorExtended::EndModifier
virtual void EndModifier(CFxUserIO *, const CFxString &modifier)
Definition: FxInputContextReactor.h:402
CFxInputContextReactor::EndSSGet
virtual void EndSSGet(int iResult, CFxUserIO *, const OdDbObjectIdArray &ss)
Definition: FxInputContextReactor.h:347
CFxInputContextReactor::BeginGetCorner
virtual void BeginGetCorner(CFxUserIO *)
Definition: FxInputContextReactor.h:139
CFxInputContextReactor::BeginGetFileName
virtual void BeginGetFileName(CFxUserIO *)
Definition: FxInputContextReactor.h:227