mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
The visual links between functions are recovered. The demo is synchronized with a corresponding demo from Qt (qt486-vc10-32\examples\graphicsview\elasticnodes). It may be successfully compiled by any further versions of Qt including 5.10.1 Also, because Open CASCADE (and OCAF in particular) is improved for usage in multi-threading mode, usage of mutexes is added in this sample (for access to the sharing TNaming_UsedShapes attribute, for example).
33 lines
716 B
C++
33 lines
716 B
C++
// CircleDriver.h: interface for the Circle function driver.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(_CIRCLEDRIVER_H_)
|
|
#define _CIRCLEDRIVER_H_
|
|
|
|
#include "BaseDriver.h"
|
|
|
|
#include <Standard_DefineHandle.hxx>
|
|
#include <TFunction_Logbook.hxx>
|
|
|
|
DEFINE_STANDARD_HANDLE(CircleDriver, BaseDriver)
|
|
|
|
// A Circle function driver.
|
|
class CircleDriver : public BaseDriver
|
|
{
|
|
public:
|
|
|
|
// ID of the function driver
|
|
static const Standard_GUID& GetID();
|
|
|
|
// Constructor
|
|
CircleDriver();
|
|
|
|
// Execution.
|
|
virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
|
|
|
|
DEFINE_STANDARD_RTTIEXT(CircleDriver, BaseDriver)
|
|
};
|
|
|
|
#endif // !defined(_CIRCLEDRIVER_H_)
|