CFx SDK Documentation
2022 SP0
|
#include <EdUserIO.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdEdUserIO) | |
virtual bool | interactive () |
virtual int | getKeyword (const OdString &prompt, const OdString &keywords, int defVal=-1, int options=OdEd::kInpDefault, OdEdIntegerTracker *pTracker=0)=0 |
virtual int | getInt (const OdString &prompt, int options=OdEd::kInpDefault, int defVal=0, const OdString &keywords=OdString::kEmpty, OdEdIntegerTracker *pTracker=0)=0 |
virtual double | getReal (const OdString &prompt, int options=OdEd::kInpDefault, double defVal=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0)=0 |
virtual OdString | getString (const OdString &prompt, int options=OdEd::kInpDefault, const OdString &defValue=OdString::kEmpty, const OdString &keywords=OdString::kEmpty, OdEdStringTracker *pTracker=0)=0 |
virtual void | putString (const OdString &string)=0 |
virtual OdSharedPtr< OdCmColorBase > | getCmColor (const OdString &prompt, int options=OdEd::kInpDefault, const OdCmColorBase *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdColorTracker *pTracker=0)=0 |
virtual 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) |
virtual void | putError (const OdString &errmsg) |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class implements non-geometric interactive user IO functionality for custom interactive command objects.
Corresponding C++ library: TD_Root <group OdEd_Classes>
Definition at line 345 of file EdUserIO.h.
|
pure virtual |
Returns user input of a color as wrapped value.
prompt | [in] Message displayed to prompt the user. |
options | [in] Combination of OdEd::GetPointOptions enum values. |
pDefaultValue | [in] Pointer to a default value to return if an empty string is received as input. |
keywords | [in] Keyword string. |
pTracker | [in] Pointer to a User IO tracker. |
If prompt is an empty string, a default prompt string is used.
|
virtual |
Returns user input of a filename obtained in some manner.
options | [in] combination of OdEd::CommonInputOptions and OdEd::GetFilePathFlags enum values. |
prompt | [in] Prompt output before pausing for user input. |
dialogCaption | [in] Dialog caption. |
defExt | [in] Default file extension without "." |
fileName | [in] Initial filename to initialize dialog with. |
filter | [in] Filter pattern. |
pTracker | [in/out] File path tracker; may be used to display file preview. |
Value Description OdEd::kGfpForOpen 0 For Open. OdEd::kGfpForSave 1 For Save. OdEd::kGfpOverwritePrompt 2 Enable overwrite prompt displaying when exist file selected for saving.
The default implementation of this function utilizes getString().
Reimplemented in CFxUserIO.
|
pure virtual |
Returns user input of an integer.
prompt | [in] Prompt output before pausing for user input. |
pTracker | [in/out] Pointer to an IO Tracker for this user input. |
options | [in] Bitwise OR combination of OdEd::CommonInputOptions enum. |
defVal | [in] Returned if user input nothing and OdEd::kInpReturnDefVal flag is set. |
This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input.
Implemented in CFxUserIO.
|
pure virtual |
Returns user input of a keyword.
prompt | [in] Prompt output before pausing for user input. |
keywords | [in] Keyword list. |
options | [in] Bitwise OR combination of OdEd::CommonInputOptions enum. |
defVal | [in] Returned if user input nothing. |
Implemented in CFxUserIO.
|
pure virtual |
Returns user input of a double.
prompt | [in] Prompt output before pausing for user input. |
options | [in] Bitwise OR combination of OdEd::CommonInputOptions enum. |
defVal | [in] Returned if user input nothing and OdEd::kInpReturnDefVal flag is set. |
pTracker | [in] Pointer to an IO Tracker for this user input. |
This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input.
Implemented in CFxUserIO.
|
pure virtual |
Returns user input of a string.
options | [in] combination of OdEd::CommonInputOptions and OdEd::GetStringOptions enum values. |
prompt | [in] Prompt output before pausing for user input. |
pTracker | [in] Pointer to an IO Tracker for this user input. |
defValue | [in] Default value. |
keywords | [in] Keyword string. |
This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input.
Implemented in CFxUserIO.
|
virtual |
Returns true if this is manual user input not batch invocation
OdEdUserIO::ODRX_DECLARE_MEMBERS | ( | OdEdUserIO | ) |
Writes the specified error message to the command's error output. Override it to distinguish normal output of a command from its error messages.
errmsg | [in] error message to write. |
Definition at line 509 of file EdUserIO.h.
Writes the specified string to the command's output.
string | [in] string to write. |
Implemented in CFxUserIO.