1 // Created by: CKY / Contract Toubro-Larsen
2 // Copyright (c) 1993-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 //--------------------------------------------------------------------
17 //--------------------------------------------------------------------
19 #include <gp_Pnt2d.hxx>
20 #include <gp_Vec2d.hxx>
22 #include <IGESGraph_UniformRectGrid.hxx>
23 #include <Standard_Type.hxx>
25 IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_UniformRectGrid,IGESData_IGESEntity)
27 IGESGraph_UniformRectGrid::IGESGraph_UniformRectGrid () { }
29 void IGESGraph_UniformRectGrid::Init
30 (const Standard_Integer nbProps,
31 const Standard_Integer finite,
32 const Standard_Integer line,
33 const Standard_Integer weighted,
34 const gp_XY& aGridPoint,
35 const gp_XY& aGridSpacing,
36 const Standard_Integer pointsX,
37 const Standard_Integer pointsY)
39 theNbPropertyValues = nbProps;
42 isItWeighted = weighted;
43 theGridPoint = aGridPoint;
44 theGridSpacing = aGridSpacing;
45 theNbPointsX = pointsX;
46 theNbPointsY = pointsY;
47 InitTypeAndForm(406,22);
50 Standard_Integer IGESGraph_UniformRectGrid::NbPropertyValues () const
52 return theNbPropertyValues;
55 Standard_Boolean IGESGraph_UniformRectGrid::IsFinite () const
57 return (isItFinite == 1);
60 Standard_Boolean IGESGraph_UniformRectGrid::IsLine () const
62 return (isItLine == 1);
65 Standard_Boolean IGESGraph_UniformRectGrid::IsWeighted () const
67 return (isItWeighted == 0);
70 gp_Pnt2d IGESGraph_UniformRectGrid::GridPoint () const
72 return ( gp_Pnt2d(theGridPoint) );
75 gp_Vec2d IGESGraph_UniformRectGrid::GridSpacing () const
77 return ( gp_Vec2d(theGridSpacing) );
80 Standard_Integer IGESGraph_UniformRectGrid::NbPointsX () const
85 Standard_Integer IGESGraph_UniformRectGrid::NbPointsY () const