1 // Created on: 1995-12-01
2 // Created by: EXPRESS->CDL V0.2 Translator
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _StepGeom_BSplineSurface_HeaderFile
18 #define _StepGeom_BSplineSurface_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <StepGeom_HArray2OfCartesianPoint.hxx>
25 #include <StepGeom_BSplineSurfaceForm.hxx>
26 #include <StepData_Logical.hxx>
27 #include <StepGeom_BoundedSurface.hxx>
28 class TCollection_HAsciiString;
29 class StepGeom_CartesianPoint;
32 class StepGeom_BSplineSurface;
33 DEFINE_STANDARD_HANDLE(StepGeom_BSplineSurface, StepGeom_BoundedSurface)
36 class StepGeom_BSplineSurface : public StepGeom_BoundedSurface
42 //! Returns a BSplineSurface
43 Standard_EXPORT StepGeom_BSplineSurface();
45 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Standard_Integer aUDegree, const Standard_Integer aVDegree, const Handle(StepGeom_HArray2OfCartesianPoint)& aControlPointsList, const StepGeom_BSplineSurfaceForm aSurfaceForm, const StepData_Logical aUClosed, const StepData_Logical aVClosed, const StepData_Logical aSelfIntersect);
47 Standard_EXPORT void SetUDegree (const Standard_Integer aUDegree);
49 Standard_EXPORT Standard_Integer UDegree() const;
51 Standard_EXPORT void SetVDegree (const Standard_Integer aVDegree);
53 Standard_EXPORT Standard_Integer VDegree() const;
55 Standard_EXPORT void SetControlPointsList (const Handle(StepGeom_HArray2OfCartesianPoint)& aControlPointsList);
57 Standard_EXPORT Handle(StepGeom_HArray2OfCartesianPoint) ControlPointsList() const;
59 Standard_EXPORT Handle(StepGeom_CartesianPoint) ControlPointsListValue (const Standard_Integer num1, const Standard_Integer num2) const;
61 Standard_EXPORT Standard_Integer NbControlPointsListI() const;
63 Standard_EXPORT Standard_Integer NbControlPointsListJ() const;
65 Standard_EXPORT void SetSurfaceForm (const StepGeom_BSplineSurfaceForm aSurfaceForm);
67 Standard_EXPORT StepGeom_BSplineSurfaceForm SurfaceForm() const;
69 Standard_EXPORT void SetUClosed (const StepData_Logical aUClosed);
71 Standard_EXPORT StepData_Logical UClosed() const;
73 Standard_EXPORT void SetVClosed (const StepData_Logical aVClosed);
75 Standard_EXPORT StepData_Logical VClosed() const;
77 Standard_EXPORT void SetSelfIntersect (const StepData_Logical aSelfIntersect);
79 Standard_EXPORT StepData_Logical SelfIntersect() const;
84 DEFINE_STANDARD_RTTIEXT(StepGeom_BSplineSurface,StepGeom_BoundedSurface)
94 Standard_Integer uDegree;
95 Standard_Integer vDegree;
96 Handle(StepGeom_HArray2OfCartesianPoint) controlPointsList;
97 StepGeom_BSplineSurfaceForm surfaceForm;
98 StepData_Logical uClosed;
99 StepData_Logical vClosed;
100 StepData_Logical selfIntersect;
111 #endif // _StepGeom_BSplineSurface_HeaderFile