mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
55
samples/mfc/occtdemo/Convert/Convert_Presentation.h
Executable file
55
samples/mfc/occtdemo/Convert/Convert_Presentation.h
Executable file
@@ -0,0 +1,55 @@
|
||||
// Convert_Presentation.h: interface for the Convert_Presentation class.
|
||||
// Conversion of elementary geometry to BSpline curves and surfaces
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_Convert_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
|
||||
#define AFX_Convert_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include <OCCDemo_Presentation.h>
|
||||
class Handle_Geom_Curve;
|
||||
class Handle_Geom_Surface;
|
||||
|
||||
class Quantity_Color;
|
||||
|
||||
class Convert_Presentation : public OCCDemo_Presentation
|
||||
{
|
||||
public:
|
||||
// Construction
|
||||
Convert_Presentation();
|
||||
|
||||
public:
|
||||
// Iteration on samples
|
||||
virtual void DoSample();
|
||||
// one phase of iterations
|
||||
|
||||
private:
|
||||
// Sample functions
|
||||
void sampleCircle();
|
||||
void sampleEllipse();
|
||||
void sampleBezier();
|
||||
void sampleBezierSurface();
|
||||
void sampleCylindricalSurface();
|
||||
void sampleRevolSurface();
|
||||
void sampleToroidalSurface();
|
||||
void sampleConicalSurface();
|
||||
void sampleSphericalSurface();
|
||||
|
||||
void drawCurveAndItsBSpline (Handle_Geom_Curve theCurve,
|
||||
const Standard_CString theName, TCollection_AsciiString& theText);
|
||||
|
||||
void drawSurfaceAndItsBSpline (Handle_Geom_Surface theSurface,
|
||||
const Standard_CString theName, TCollection_AsciiString& theText);
|
||||
|
||||
private:
|
||||
// Array of pointers to sample functions
|
||||
typedef void (Convert_Presentation::*PSampleFuncType)();
|
||||
static const PSampleFuncType SampleFuncs[];
|
||||
|
||||
int myNbFuncs;
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_Convert_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
|
Reference in New Issue
Block a user