summaryrefslogtreecommitdiff
path: root/inc/IGESGeom_Plane.hxx
blob: 78aebc24ea89a7727e7b2efecd10b0add7aa49e1 (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
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IGESGeom_Plane_HeaderFile
#define _IGESGeom_Plane_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESGeom_Plane_HeaderFile
#include <Handle_IGESGeom_Plane.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_IGESData_IGESEntity_HeaderFile
#include <Handle_IGESData_IGESEntity.hxx>
#endif
#ifndef _gp_XYZ_HeaderFile
#include <gp_XYZ.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class IGESData_IGESEntity;
class gp_XYZ;
class gp_Pnt;


//! defines IGESPlane, Type <108> Form <-1,0,1> <br>
//!          in package IGESGeom <br>
//!          A plane entity can be used to represent unbounded plane, <br>
//!          as well as bounded portion of a plane. In either of the <br>
//!          above cases the plane is defined within definition space <br>
//!          by means of coefficients A, B, C, D where at least one of <br>
//!          A, B, C is non-zero and  A * XT + B * YT + C * ZT = D <br>
class IGESGeom_Plane : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESGeom_Plane();
  
  Standard_EXPORT     void Init(const Standard_Real A,const Standard_Real B,const Standard_Real C,const Standard_Real D,const Handle(IGESData_IGESEntity)& aCurve,const gp_XYZ& attach,const Standard_Real aSize) ;
  //! Changes FormNumber (indicates the Type of Bound : <br>
//!           0 no Bound, 1 (External) Bound, -1 Hole) <br>
//!           Remark that Init keeps this Value and must be consistent : <br>
//!           aCurve Null if FormNumber = 0, Non-Null else <br>
//!           Error if not in ranges [0-1] or [10-12] <br>
  Standard_EXPORT     void SetFormNumber(const Standard_Integer form) ;
  
  Standard_EXPORT     void Equation(Standard_Real& A,Standard_Real& B,Standard_Real& C,Standard_Real& D) const;
  
  Standard_EXPORT     void TransformedEquation(Standard_Real& A,Standard_Real& B,Standard_Real& C,Standard_Real& D) const;
  //! returns True if there exists a bounding curve <br>
  Standard_EXPORT     Standard_Boolean HasBoundingCurve() const;
  //! returns True if bounding curve exists and bounded portion is negative <br>
  Standard_EXPORT     Standard_Boolean HasBoundingCurveHole() const;
  //! returns Optional Bounding Curve, can be positive (normal clipping) <br>
//! or negative (hole) according to Form Number <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity BoundingCurve() const;
  //! returns True if SymbolSize() > 0, False if SymbolSize() = 0 <br>
  Standard_EXPORT     Standard_Boolean HasSymbolAttach() const;
  //! returns (X, Y, Z) if symbol exists else returns (0, 0, 0) <br>
  Standard_EXPORT     gp_Pnt SymbolAttach() const;
  //! returns (X, Y, Z) if symbol exists after applying Transf. Matrix <br>
//! else returns (0, 0, 0) <br>
  Standard_EXPORT     gp_Pnt TransformedSymbolAttach() const;
  //! Size of optional display symbol <br>
  Standard_EXPORT     Standard_Real SymbolSize() const;




  DEFINE_STANDARD_RTTI(IGESGeom_Plane)

protected:




private: 


Standard_Real theA;
Standard_Real theB;
Standard_Real theC;
Standard_Real theD;
Handle_IGESData_IGESEntity theCurve;
gp_XYZ theAttach;
Standard_Real theSize;


};





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


#endif