1 // Created on: 1993-01-09 2 // Created by: CKY / Contract Toubro-Larsen ( Kiran ) 3 // Copyright (c) 1993-1999 Matra Datavision 4 // Copyright (c) 1999-2014 OPEN CASCADE SAS 5 // 6 // This file is part of Open CASCADE Technology software library. 7 // 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. 13 // 14 // Alternatively, this file may be used under the terms of Open CASCADE 15 // commercial license or contractual agreement. 16 17 #ifndef _IGESGeom_Point_HeaderFile 18 #define _IGESGeom_Point_HeaderFile 19 20 #include <Standard.hxx> 21 #include <Standard_Type.hxx> 22 23 #include <gp_XYZ.hxx> 24 #include <IGESData_IGESEntity.hxx> 25 #include <Standard_Boolean.hxx> 26 class IGESBasic_SubfigureDef; 27 class gp_Pnt; 28 29 30 class IGESGeom_Point; 31 DEFINE_STANDARD_HANDLE(IGESGeom_Point, IGESData_IGESEntity) 32 33 //! defines IGESPoint, Type <116> Form <0> 34 //! in package IGESGeom 35 class IGESGeom_Point : public IGESData_IGESEntity 36 { 37 38 public: 39 40 41 Standard_EXPORT IGESGeom_Point(); 42 43 //! This method is used to set the fields of the class Point 44 //! - aPoint : Coordinates of point 45 //! - aSymbol : SubfigureDefinition entity specifying the 46 //! display symbol if there exists one, or zero 47 Standard_EXPORT void Init (const gp_XYZ& aPoint, const Handle(IGESBasic_SubfigureDef)& aSymbol); 48 49 //! returns coordinates of the point 50 Standard_EXPORT gp_Pnt Value() const; 51 52 //! returns coordinates of the point after applying Transf. Matrix 53 Standard_EXPORT gp_Pnt TransformedValue() const; 54 55 //! returns True if symbol exists 56 Standard_EXPORT Standard_Boolean HasDisplaySymbol() const; 57 58 //! returns display symbol entity if it exists 59 Standard_EXPORT Handle(IGESBasic_SubfigureDef) DisplaySymbol() const; 60 61 62 63 64 DEFINE_STANDARD_RTTIEXT(IGESGeom_Point,IGESData_IGESEntity) 65 66 protected: 67 68 69 70 71 private: 72 73 74 gp_XYZ thePoint; 75 Handle(IGESBasic_SubfigureDef) theSymbol; 76 77 78 }; 79 80 81 82 83 84 85 86 #endif // _IGESGeom_Point_HeaderFile 87