summaryrefslogtreecommitdiff
path: root/inc/BRepPrim_OneAxis.hxx
blob: 7fce27903e2476e0f3d0d55b921cb1aaf7b545d5 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// File generated by CPPExt (Value)
//                     Copyright (C) 1991,1995 by
//  
//                      MATRA DATAVISION, FRANCE
//  
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//  
// At the termination of the contract, the software and all copies of this
// software must be deleted.

#ifndef _BRepPrim_OneAxis_HeaderFile
#define _BRepPrim_OneAxis_HeaderFile

#ifndef _BRepPrim_Builder_HeaderFile
#include <BRepPrim_Builder.hxx>
#endif
#ifndef _gp_Ax2_HeaderFile
#include <gp_Ax2.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _TopoDS_Shell_HeaderFile
#include <TopoDS_Shell.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _TopoDS_Vertex_HeaderFile
#include <TopoDS_Vertex.hxx>
#endif
#ifndef _TopoDS_Edge_HeaderFile
#include <TopoDS_Edge.hxx>
#endif
#ifndef _TopoDS_Wire_HeaderFile
#include <TopoDS_Wire.hxx>
#endif
#ifndef _TopoDS_Face_HeaderFile
#include <TopoDS_Face.hxx>
#endif
class Standard_DomainError;
class Standard_OutOfRange;
class TopoDS_Shell;
class TopoDS_Face;
class TopoDS_Wire;
class TopoDS_Edge;
class TopoDS_Vertex;
class BRepPrim_Builder;
class gp_Ax2;
class gp_Pnt2d;


#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

class BRepPrim_OneAxis  {

public:

    void* operator new(size_t,void* anAddress) 
      {
        return anAddress;
      }
    void* operator new(size_t size) 
      { 
        return Standard::Allocate(size); 
      }
    void  operator delete(void *anAddress) 
      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
 // Methods PUBLIC
 // 
Standard_EXPORT virtual  void Delete() ;
Standard_EXPORT virtual ~BRepPrim_OneAxis()
//Standard_EXPORT virtual ~()
{
  Delete();
}

Standard_EXPORT   void SetMeridianOffset(const Standard_Real MeridianOffset = 0) ;
Standard_EXPORT  const gp_Ax2& Axes() const;
Standard_EXPORT   void Axes(const gp_Ax2& A) ;
Standard_EXPORT   Standard_Real Angle() const;
Standard_EXPORT   void Angle(const Standard_Real A) ;
Standard_EXPORT   Standard_Real VMin() const;
Standard_EXPORT   void VMin(const Standard_Real V) ;
Standard_EXPORT   Standard_Real VMax() const;
Standard_EXPORT   void VMax(const Standard_Real V) ;
Standard_EXPORT virtual  TopoDS_Face MakeEmptyLateralFace() const = 0;
Standard_EXPORT virtual  TopoDS_Edge MakeEmptyMeridianEdge(const Standard_Real Ang) const = 0;
Standard_EXPORT virtual  void SetMeridianPCurve(TopoDS_Edge& E,const TopoDS_Face& F) const = 0;
Standard_EXPORT virtual  gp_Pnt2d MeridianValue(const Standard_Real V) const = 0;
Standard_EXPORT virtual  Standard_Boolean MeridianOnAxis(const Standard_Real V) const;
Standard_EXPORT virtual  Standard_Boolean MeridianClosed() const;
Standard_EXPORT virtual  Standard_Boolean VMaxInfinite() const;
Standard_EXPORT virtual  Standard_Boolean VMinInfinite() const;
Standard_EXPORT virtual  Standard_Boolean HasTop() const;
Standard_EXPORT virtual  Standard_Boolean HasBottom() const;
Standard_EXPORT virtual  Standard_Boolean HasSides() const;
Standard_EXPORT  const TopoDS_Shell& Shell() ;
Standard_EXPORT  const TopoDS_Face& LateralFace() ;
Standard_EXPORT  const TopoDS_Face& TopFace() ;
Standard_EXPORT  const TopoDS_Face& BottomFace() ;
Standard_EXPORT  const TopoDS_Face& StartFace() ;
Standard_EXPORT  const TopoDS_Face& EndFace() ;
Standard_EXPORT  const TopoDS_Wire& LateralWire() ;
Standard_EXPORT  const TopoDS_Wire& LateralStartWire() ;
Standard_EXPORT  const TopoDS_Wire& LateralEndWire() ;
Standard_EXPORT  const TopoDS_Wire& TopWire() ;
Standard_EXPORT  const TopoDS_Wire& BottomWire() ;
Standard_EXPORT  const TopoDS_Wire& StartWire() ;
Standard_EXPORT  const TopoDS_Wire& AxisStartWire() ;
Standard_EXPORT  const TopoDS_Wire& EndWire() ;
Standard_EXPORT  const TopoDS_Wire& AxisEndWire() ;
Standard_EXPORT  const TopoDS_Edge& AxisEdge() ;
Standard_EXPORT  const TopoDS_Edge& StartEdge() ;
Standard_EXPORT  const TopoDS_Edge& EndEdge() ;
Standard_EXPORT  const TopoDS_Edge& StartTopEdge() ;
Standard_EXPORT  const TopoDS_Edge& StartBottomEdge() ;
Standard_EXPORT  const TopoDS_Edge& EndTopEdge() ;
Standard_EXPORT  const TopoDS_Edge& EndBottomEdge() ;
Standard_EXPORT  const TopoDS_Edge& TopEdge() ;
Standard_EXPORT  const TopoDS_Edge& BottomEdge() ;
Standard_EXPORT  const TopoDS_Vertex& AxisTopVertex() ;
Standard_EXPORT  const TopoDS_Vertex& AxisBottomVertex() ;
Standard_EXPORT  const TopoDS_Vertex& TopStartVertex() ;
Standard_EXPORT  const TopoDS_Vertex& TopEndVertex() ;
Standard_EXPORT  const TopoDS_Vertex& BottomStartVertex() ;
Standard_EXPORT  const TopoDS_Vertex& BottomEndVertex() ;





protected:

 // Methods PROTECTED
 // 
Standard_EXPORT BRepPrim_OneAxis(const BRepPrim_Builder& B,const gp_Ax2& A,const Standard_Real VMin,const Standard_Real VMax);


 // Fields PROTECTED
 //
BRepPrim_Builder myBuilder;


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
gp_Ax2 myAxes;
Standard_Real myAngle;
Standard_Real myVMin;
Standard_Real myVMax;
Standard_Real myMeridianOffset;
TopoDS_Shell myShell;
Standard_Boolean ShellBuilt;
TopoDS_Vertex myVertices[6];
Standard_Boolean VerticesBuilt[6];
TopoDS_Edge myEdges[9];
Standard_Boolean EdgesBuilt[9];
TopoDS_Wire myWires[9];
Standard_Boolean WiresBuilt[9];
TopoDS_Face myFaces[5];
Standard_Boolean FacesBuilt[5];


};





// other Inline functions and methods (like "C++: function call" methods)
//


#endif