0031004: Coding - eliminate warnings issued by gcc 9.1.0
[occt.git] / src / AdvApp2Var / AdvApp2Var_Node.cxx
1 // Created on: 1996-07-02
2 // Created by: Joelle CHAUVET
3 // Copyright (c) 1996-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 #include <AdvApp2Var_Node.hxx>
18
19 IMPLEMENT_STANDARD_RTTIEXT(AdvApp2Var_Node, Standard_Transient)
20
21 //=======================================================================
22 //function : AdvApp2Var_Node
23 //purpose  : 
24 //=======================================================================
25 AdvApp2Var_Node::AdvApp2Var_Node()
26 : myTruePoints(0, 2, 0, 2),
27   myErrors    (0, 2, 0, 2),
28   myOrdInU (2),
29   myOrdInV (2)
30 {
31   gp_Pnt P0(0.,0.,0.);
32   myTruePoints.Init(P0);
33   myErrors.Init(0.);
34 }
35
36 //=======================================================================
37 //function : AdvApp2Var_Node
38 //purpose  : 
39 //=======================================================================
40
41 AdvApp2Var_Node::AdvApp2Var_Node(const Standard_Integer iu,
42                  const Standard_Integer iv)
43 : myTruePoints(0, Max(0,iu), 0, Max(0,iv)),
44   myErrors    (0, Max(0,iu), 0, Max(0,iv)),
45   myOrdInU (iu),
46   myOrdInV (iv)
47 {
48   gp_Pnt P0(0.,0.,0.);
49   myTruePoints.Init(P0);
50   myErrors.Init(0.);
51 }
52
53 //=======================================================================
54 //function : AdvApp2Var_Node
55 //purpose  : 
56 //=======================================================================
57
58 AdvApp2Var_Node::AdvApp2Var_Node(const gp_XY& UV,
59                                  const Standard_Integer iu,
60                  const Standard_Integer iv)
61 : myTruePoints(0, iu, 0, iv),
62   myErrors    (0, iu, 0, iv),
63   myCoord (UV),
64   myOrdInU(iu),
65   myOrdInV(iv)
66 {
67   gp_Pnt P0(0.,0.,0.);
68   myTruePoints.Init(P0);
69   myErrors.Init(0.);
70 }