File indexing completed on 2025-01-18 10:03:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _Draw_ProgressIndicator_HeaderFile
0017 #define _Draw_ProgressIndicator_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <Message_ProgressIndicator.hxx>
0022 #include <Draw_Interpretor.hxx>
0023
0024 class Draw_ProgressIndicator;
0025 DEFINE_STANDARD_HANDLE(Draw_ProgressIndicator, Message_ProgressIndicator)
0026
0027
0028
0029
0030 class Draw_ProgressIndicator : public Message_ProgressIndicator
0031 {
0032
0033 public:
0034
0035
0036
0037
0038
0039
0040
0041 Standard_EXPORT Draw_ProgressIndicator(const Draw_Interpretor& di, Standard_Real theUpdateThreshold = 1.);
0042
0043
0044 Standard_EXPORT ~Draw_ProgressIndicator();
0045
0046
0047 Standard_EXPORT void SetTclMode (const Standard_Boolean theTclMode);
0048
0049
0050 Standard_EXPORT Standard_Boolean GetTclMode() const;
0051
0052
0053
0054 Standard_EXPORT void SetConsoleMode(const Standard_Boolean theMode);
0055
0056
0057 Standard_EXPORT Standard_Boolean GetConsoleMode() const;
0058
0059
0060 Standard_EXPORT void SetGraphMode (const Standard_Boolean theGraphMode);
0061
0062
0063 Standard_EXPORT Standard_Boolean GetGraphMode() const;
0064
0065
0066
0067 Standard_EXPORT virtual void Reset() Standard_OVERRIDE;
0068
0069
0070 Standard_EXPORT virtual void Show (const Message_ProgressScope& theScope,
0071 const Standard_Boolean force = Standard_True) Standard_OVERRIDE;
0072
0073
0074 Standard_EXPORT virtual Standard_Boolean UserBreak() Standard_OVERRIDE;
0075
0076
0077 Standard_EXPORT static Standard_Boolean& DefaultTclMode();
0078
0079
0080 Standard_EXPORT static Standard_Boolean& DefaultConsoleMode();
0081
0082
0083 Standard_EXPORT static Standard_Boolean& DefaultGraphMode();
0084
0085
0086
0087 Standard_EXPORT static Standard_Address& StopIndicator();
0088
0089 DEFINE_STANDARD_RTTIEXT(Draw_ProgressIndicator,Message_ProgressIndicator)
0090
0091 private:
0092 Standard_Boolean myTclMode;
0093 Standard_Boolean myConsoleMode;
0094 Standard_Boolean myGraphMode;
0095 Draw_Interpretor* myDraw;
0096 Standard_Boolean myShown;
0097 Standard_Boolean myBreak;
0098 Standard_Real myUpdateThreshold;
0099 Standard_Real myLastPosition;
0100 Standard_Size myStartTime;
0101 Standard_ThreadId myGuiThreadId;
0102 };
0103
0104 #endif