mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +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
706 B
C++
33 lines
706 B
C++
// PrismDriver.h: interface for the Prism function driver.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(_PRISMDRIVER_H_)
|
|
#define _PRISMDRIVER_H_
|
|
|
|
#include "BaseDriver.h"
|
|
|
|
#include <Standard_DefineHandle.hxx>
|
|
#include <TFunction_Logbook.hxx>
|
|
|
|
DEFINE_STANDARD_HANDLE(PrismDriver, BaseDriver)
|
|
|
|
// A Prism function driver.
|
|
class PrismDriver : public BaseDriver
|
|
{
|
|
public:
|
|
|
|
// ID of the function driver
|
|
static const Standard_GUID& GetID();
|
|
|
|
// Constructor
|
|
PrismDriver();
|
|
|
|
// Execution.
|
|
virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
|
|
|
|
DEFINE_STANDARD_RTTIEXT(PrismDriver, BaseDriver)
|
|
};
|
|
|
|
#endif // !defined(_PRISMDRIVER_H_)
|