File indexing completed on 2026-09-18 09:22:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ViewerTest_AutoUpdater_HeaderFile
0017 #define _ViewerTest_AutoUpdater_HeaderFile
0018
0019 #include <AIS_InteractiveContext.hxx>
0020 #include <V3d_View.hxx>
0021
0022 class TCollection_AsciiString;
0023
0024
0025 class ViewerTest_AutoUpdater
0026 {
0027 public:
0028
0029 enum RedrawMode
0030 {
0031 RedrawMode_Auto = -1,
0032 RedrawMode_Forced,
0033 RedrawMode_Suppressed
0034 };
0035
0036 public:
0037
0038 Standard_EXPORT ViewerTest_AutoUpdater(const occ::handle<AIS_InteractiveContext>& theContext,
0039 const occ::handle<V3d_View>& theView);
0040
0041
0042 Standard_EXPORT ~ViewerTest_AutoUpdater();
0043
0044
0045 Standard_EXPORT bool parseRedrawMode(const TCollection_AsciiString& theArg);
0046
0047
0048 Standard_EXPORT void Invalidate();
0049
0050
0051 Standard_EXPORT void Update();
0052
0053 private:
0054 occ::handle<AIS_InteractiveContext> myContext;
0055 occ::handle<V3d_View> myView;
0056 ViewerTest_AutoUpdater::RedrawMode myToUpdate;
0057 bool myWasAutoUpdate;
0058 };
0059
0060 #endif