1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( SIVA )
3 // Copyright (c) 1993-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 _IGESSolid_PlaneSurface_HeaderFile
18 #define _IGESSolid_PlaneSurface_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IGESData_IGESEntity.hxx>
25 class IGESGeom_Direction;
28 class IGESSolid_PlaneSurface;
29 DEFINE_STANDARD_HANDLE(IGESSolid_PlaneSurface, IGESData_IGESEntity)
31 //! defines PlaneSurface, Type <190> Form Number <0,1>
32 //! in package IGESSolid
33 //! A plane surface entity is defined by a point on the
34 //! surface and a normal to it.
35 class IGESSolid_PlaneSurface : public IGESData_IGESEntity
41 Standard_EXPORT IGESSolid_PlaneSurface();
43 //! This method is used to set the fields of the class
45 //! - aLocation : the point on the surface
46 //! - aNormal : the surface normal direction
47 //! - refdir : the reference direction (default NULL) for
48 //! unparameterised curves
49 Standard_EXPORT void Init (const Handle(IGESGeom_Point)& aLocation, const Handle(IGESGeom_Direction)& aNormal, const Handle(IGESGeom_Direction)& refdir);
51 //! returns the point on the surface
52 Standard_EXPORT Handle(IGESGeom_Point) LocationPoint() const;
54 //! returns the normal to the surface
55 Standard_EXPORT Handle(IGESGeom_Direction) Normal() const;
57 //! returns the reference direction (for parameterised curve)
58 //! returns NULL for unparameterised curve
59 Standard_EXPORT Handle(IGESGeom_Direction) ReferenceDir() const;
61 //! returns True if parameterised, else False
62 Standard_EXPORT Standard_Boolean IsParametrised() const;
67 DEFINE_STANDARD_RTTIEXT(IGESSolid_PlaneSurface,IGESData_IGESEntity)
77 Handle(IGESGeom_Point) theLocationPoint;
78 Handle(IGESGeom_Direction) theNormal;
79 Handle(IGESGeom_Direction) theRefDir;
90 #endif // _IGESSolid_PlaneSurface_HeaderFile