0023024: Update headers of OCCT files
[occt.git] / src / IGESGraph / IGESGraph_UniformRectGrid.cxx
CommitLineData
b311480e 1// Created by: CKY / Contract Toubro-Larsen
2// Copyright (c) 1993-1999 Matra Datavision
3// Copyright (c) 1999-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
7fd59977 9//
b311480e 10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
7fd59977 12//
b311480e 13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
20//--------------------------------------------------------------------
7fd59977 21//--------------------------------------------------------------------
22
23#include <IGESGraph_UniformRectGrid.ixx>
24
25
b311480e 26IGESGraph_UniformRectGrid::IGESGraph_UniformRectGrid () { }
7fd59977 27
28 void IGESGraph_UniformRectGrid::Init
29 (const Standard_Integer nbProps,
30 const Standard_Integer finite,
31 const Standard_Integer line,
32 const Standard_Integer weighted,
33 const gp_XY& aGridPoint,
34 const gp_XY& aGridSpacing,
35 const Standard_Integer pointsX,
36 const Standard_Integer pointsY)
37{
38 theNbPropertyValues = nbProps;
39 isItFinite = finite;
40 isItLine = line;
41 isItWeighted = weighted;
42 theGridPoint = aGridPoint;
43 theGridSpacing = aGridSpacing;
44 theNbPointsX = pointsX;
45 theNbPointsY = pointsY;
46 InitTypeAndForm(406,22);
47}
48
49 Standard_Integer IGESGraph_UniformRectGrid::NbPropertyValues () const
50{
51 return theNbPropertyValues;
52}
53
54 Standard_Boolean IGESGraph_UniformRectGrid::IsFinite () const
55{
56 return (isItFinite == 1);
57}
58
59 Standard_Boolean IGESGraph_UniformRectGrid::IsLine () const
60{
61 return (isItLine == 1);
62}
63
64 Standard_Boolean IGESGraph_UniformRectGrid::IsWeighted () const
65{
66 return (isItWeighted == 0);
67}
68
69 gp_Pnt2d IGESGraph_UniformRectGrid::GridPoint () const
70{
71 return ( gp_Pnt2d(theGridPoint) );
72}
73
74 gp_Vec2d IGESGraph_UniformRectGrid::GridSpacing () const
75{
76 return ( gp_Vec2d(theGridSpacing) );
77}
78
79 Standard_Integer IGESGraph_UniformRectGrid::NbPointsX () const
80{
81 return theNbPointsX;
82}
83
84 Standard_Integer IGESGraph_UniformRectGrid::NbPointsY () const
85{
86 return theNbPointsY;
87}