blob: 566a06c2384603a06ee46aa61003c49590db2a02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//--------------------------------------------------------------------
//
// File Name : IGESGraph_UniformRectGrid.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESGraph_UniformRectGrid.ixx>
IGESGraph_UniformRectGrid::IGESGraph_UniformRectGrid () { }
void IGESGraph_UniformRectGrid::Init
(const Standard_Integer nbProps,
const Standard_Integer finite,
const Standard_Integer line,
const Standard_Integer weighted,
const gp_XY& aGridPoint,
const gp_XY& aGridSpacing,
const Standard_Integer pointsX,
const Standard_Integer pointsY)
{
theNbPropertyValues = nbProps;
isItFinite = finite;
isItLine = line;
isItWeighted = weighted;
theGridPoint = aGridPoint;
theGridSpacing = aGridSpacing;
theNbPointsX = pointsX;
theNbPointsY = pointsY;
InitTypeAndForm(406,22);
}
Standard_Integer IGESGraph_UniformRectGrid::NbPropertyValues () const
{
return theNbPropertyValues;
}
Standard_Boolean IGESGraph_UniformRectGrid::IsFinite () const
{
return (isItFinite == 1);
}
Standard_Boolean IGESGraph_UniformRectGrid::IsLine () const
{
return (isItLine == 1);
}
Standard_Boolean IGESGraph_UniformRectGrid::IsWeighted () const
{
return (isItWeighted == 0);
}
gp_Pnt2d IGESGraph_UniformRectGrid::GridPoint () const
{
return ( gp_Pnt2d(theGridPoint) );
}
gp_Vec2d IGESGraph_UniformRectGrid::GridSpacing () const
{
return ( gp_Vec2d(theGridSpacing) );
}
Standard_Integer IGESGraph_UniformRectGrid::NbPointsX () const
{
return theNbPointsX;
}
Standard_Integer IGESGraph_UniformRectGrid::NbPointsY () const
{
return theNbPointsY;
}
|