0024157: Parallelization of assembly part of BO
[occt.git] / src / Plate / Plate_GtoCConstraint.cdl
1 -- Created on: 1995-10-19
2 -- Created by: Andre LIEUTIER
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 --
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
10 --
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 --
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
20
21
22 class GtoCConstraint from Plate
23 ---Purpose: define a G1, G2  or G3 constraint on the Plate
24 --          
25
26 uses 
27  XY from gp, 
28  XYZ from gp, 
29  D1 from Plate, 
30  D2 from Plate, 
31  D3 from Plate, 
32  PinpointConstraint from Plate
33
34 is 
35     Create(ref  :  GtoCConstraint  from  Plate) returns GtoCConstraint;
36      
37     Create(point2d : XY ; D1S , D1T : D1 ) returns GtoCConstraint;
38     -- G1 constraint:   
39     -- D1S : first  derivative of  S, the surface we want to  correct 
40     -- D1T : first derivative of the reference surface
41
42     Create(point2d : XY ; D1S , D1T : D1;
43        nP : XYZ from gp ) returns GtoCConstraint;
44     -- G1 constraint:   
45     -- D1S : first  derivative of  S, the surface we want to  correct 
46     -- D1T : first derivative of the reference surface
47     -- nP : normal vector to tge Plane in which we want the correction to occur
48
49     Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
50        D2S, D2T : D2 from Plate) returns GtoCConstraint;
51     -- G2 constraint:   
52     -- D1S : first  derivative of  S, the surface we want to  correct 
53     -- D1T : first derivative of the reference surface
54     -- D2S : second derivative of  S, the surface we want to  correct 
55     -- D2T : second derivative of the reference surface
56
57     Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
58        D2S, D2T : D2 from Plate;
59        nP : XYZ from gp ) returns GtoCConstraint;
60     -- G2 constraint:   
61     -- D1S : first  derivative of  S, the surface we want to  correct 
62     -- D1T : first derivative of the reference surface
63     -- D2S : second derivative of  S, the surface we want to  correct 
64     -- D2T : second derivative of the reference surface
65     -- nP : normal vector to tge Plane in which we want the correction to occur
66
67     Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
68        D2S, D2T : D2 from Plate;
69        D3S, D3T : D3 from Plate) returns GtoCConstraint;
70     -- G3 constraint:   
71     -- D1S : first  derivative of  S, the surface we want to  correct 
72     -- D1T : first derivative of the reference surface
73     -- D2S : second derivative of  S, the surface we want to  correct 
74     -- D2T : second derivative of the reference surface
75     -- D3S : third derivative of  S, the surface we want to  correct 
76     -- D3T : third derivative of the reference surface
77
78     Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
79        D2S, D2T : D2 from Plate;
80        D3S, D3T : D3 from Plate;
81        nP : XYZ from gp ) returns GtoCConstraint;
82     -- G3 constraint:   
83     -- D1S : first  derivative of  S, the surface we want to  correct 
84     -- D1T : first derivative of the reference surface
85     -- D2S : second derivative of  S, the surface we want to  correct 
86     -- D2T : second derivative of the reference surface
87     -- D3S : third derivative of  S, the surface we want to  correct 
88     -- D3T : third derivative of the reference surface
89     -- nP : normal vector to tge Plane in which we want the correction to occur
90
91     -- Accessors :
92     nb_PPC(me) returns Integer;
93     ---C++: inline 
94     ---C++: return const &
95
96     GetPPC(me;  Index:  Integer) returns PinpointConstraint; 
97     --  "C style" Index :  Index : 0 --> nb_PPC-1
98     --  
99     ---C++: inline 
100     ---C++: return const &
101
102     D1SurfInit(me) returns D1; 
103     --  
104     ---C++: inline 
105     ---C++: return const &
106
107 fields
108
109     myPPC : PinpointConstraint[9]; 
110     myD1SurfInit  :  D1;  
111     pnt2d : XY ;    
112     nb_PPConstraints : Integer;
113
114 end;
115
116     
117