mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027764: Visualization - add functionality for animation of 3D camera and interactive objects
Added classes AIS_Animation, AIS_AnimationCamera, AIS_AnimationObjectLocatio. Draw Harness command vanimation has been modified to manage animation timeline. Command vfit has been extended with option -noupdate. Formatting of vviewparams command output has been improved. Functionality of commands vlocreset, vlocmove, vloctranslate, vlocrotate, vlocmirror, vlocscale has been merged into vlocation/vsetlocation. vlocation now can print the current local transformation of the object. v3d/ivtk test group does not call vfit anymore. Fixed misprint in test cases bugs/vis/bug24623_3 and bug25532.
This commit is contained in:
@@ -48,7 +48,10 @@ public:
|
||||
//! process (all threads, and completed children) is measured.
|
||||
Standard_EXPORT OSD_Chronometer(const Standard_Boolean ThisThreadOnly = Standard_False);
|
||||
Standard_EXPORT virtual ~OSD_Chronometer();
|
||||
|
||||
|
||||
//! Return true if timer has been started.
|
||||
Standard_Boolean IsStarted() const { return !Stopped; }
|
||||
|
||||
//! Stops and Reinitializes the Chronometer.
|
||||
Standard_EXPORT virtual void Reset();
|
||||
|
||||
|
@@ -102,6 +102,18 @@ static void Compute (Standard_Real Time,
|
||||
second = Time - heure * 3600 - minut * 60;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Reset
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void OSD_Timer::Reset (const Standard_Real theTimeElapsedSec)
|
||||
{
|
||||
TimeStart = 0.0;
|
||||
TimeCumul = theTimeElapsedSec;
|
||||
OSD_Chronometer::Reset();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Reset
|
||||
//purpose :
|
||||
|
@@ -44,11 +44,13 @@ public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Builds a Chronometer initialized and stopped.
|
||||
Standard_EXPORT OSD_Timer();
|
||||
|
||||
//! Stops and reinitializes the timer.
|
||||
|
||||
//! Stops and reinitializes the timer with specified elapsed time.
|
||||
Standard_EXPORT void Reset (const Standard_Real theTimeElapsedSec);
|
||||
|
||||
//! Stops and reinitializes the timer with zero elapsed time.
|
||||
Standard_EXPORT virtual void Reset() Standard_OVERRIDE;
|
||||
|
||||
//! Shows both the elapsed time and CPU time on the standard output
|
||||
@@ -74,29 +76,11 @@ public:
|
||||
//! Returns elapsed time in seconds.
|
||||
Standard_EXPORT Standard_Real ElapsedTime() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Real TimeStart;
|
||||
Standard_Real TimeCumul;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _OSD_Timer_HeaderFile
|
||||
|
Reference in New Issue
Block a user