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
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 _IGESGeom_Direction_HeaderFile
18 #define _IGESGeom_Direction_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <IGESData_IGESEntity.hxx>
29 class IGESGeom_Direction;
30 DEFINE_STANDARD_HANDLE(IGESGeom_Direction, IGESData_IGESEntity)
32 //! defines IGESDirection, Type <123> Form <0>
33 //! in package IGESGeom
34 //! A direction entity is a non-zero vector in Euclidean 3-space
35 //! that is defined by its three components (direction ratios)
36 //! with respect to the coordinate axes. If x, y, z are the
37 //! direction ratios then (x^2 + y^2 + z^2) > 0
38 class IGESGeom_Direction : public IGESData_IGESEntity
44 Standard_EXPORT IGESGeom_Direction();
46 //! This method is used to set the fields of the class
48 //! - aDirection : Direction ratios, Z is 0 by default
49 Standard_EXPORT void Init (const gp_XYZ& aDirection);
51 Standard_EXPORT gp_Vec Value() const;
53 //! returns the Direction value after applying Transformation matrix
54 Standard_EXPORT gp_Vec TransformedValue() const;
59 DEFINE_STANDARD_RTTIEXT(IGESGeom_Direction,IGESData_IGESEntity)
80 #endif // _IGESGeom_Direction_HeaderFile