mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024665: A sample for advanced function mechanism
PRO file is added + a description of how to generate the Visual Studio projects and compile. In addition, the sample folder is renamed to FuncDemo. Adding 64 bit configuration to VC projects
This commit is contained in:
36
samples/qt/FuncDemo/src/ConeDriver.h
Normal file
36
samples/qt/FuncDemo/src/ConeDriver.h
Normal file
@@ -0,0 +1,36 @@
|
||||
// ConeDriver.h: interface for the Cone function driver.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(_CONEDRIVER_H_)
|
||||
#define _CONEDRIVER_H_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "BaseDriver.h"
|
||||
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
#include <TFunction_Logbook.hxx>
|
||||
|
||||
DEFINE_STANDARD_HANDLE(ConeDriver, BaseDriver)
|
||||
|
||||
// A Cone function driver.
|
||||
class ConeDriver : public BaseDriver
|
||||
{
|
||||
public:
|
||||
|
||||
// ID of the function driver
|
||||
static const Standard_GUID& GetID();
|
||||
|
||||
// Constructor
|
||||
ConeDriver();
|
||||
|
||||
// Execution.
|
||||
virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(ConeDriver, TFunction_Driver)
|
||||
};
|
||||
|
||||
#endif // !defined(_CONEDRIVER_H_)
|
Reference in New Issue
Block a user