summaryrefslogtreecommitdiff
path: root/inc/IGESGeom_Flash.hxx
blob: 01fe827ad8b4c70b0dca6895505e93a5b0c06275 (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
// 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_Flash_HeaderFile
#define _IGESGeom_Flash_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESGeom_Flash_HeaderFile
#include <Handle_IGESGeom_Flash.hxx>
#endif

#ifndef _gp_XY_HeaderFile
#include <gp_XY.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_IGESData_IGESEntity_HeaderFile
#include <Handle_IGESData_IGESEntity.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 Standard_OutOfRange;
class gp_XY;
class gp_Pnt2d;
class gp_Pnt;


//! defines IGESFlash, Type <125> Form <0 - 4> <br>
//!          in package IGESGeom <br>
//!          A flash entity is a point in the ZT=0 plane that locates <br>
//!          a particular closed area. That closed area can be defined <br>
//!          in one of two ways. First, it can be an arbitrary closed <br>
//!          area defined by any entity capable of defining a closed <br>
//!          area. The points of this entity must all lie in the ZT=0 <br>
//!          plane. Second, it can be a member of a predefined set of <br>
//!          flash shapes. <br>
class IGESGeom_Flash : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESGeom_Flash();
  //! This method is used to set the fields of the class Flash <br>
//!       - aPoint     : Reference of flash <br>
//!       - aDim       : First flash sizing parameter <br>
//!       - anotherDim : Second flash sizing parameter <br>
//!       - aRotation  : Rotation of flash about reference point <br>
//!                      in radians <br>
//!       - aReference : Pointer to the referenced entity or Null <br>
  Standard_EXPORT     void Init(const gp_XY& aPoint,const Standard_Real aDim,const Standard_Real anotherDim,const Standard_Real aRotation,const Handle(IGESData_IGESEntity)& aReference) ;
  //! Changes FormNumber (indicates the Nature of the Flash : <br>
//!           0 Unspecified, then given by Reference, 1->4 various <br>
//!           Specialisations (Circle,Rectangle, etc...) ) <br>
//!           Error if not in range [0-4] <br>
  Standard_EXPORT     void SetFormNumber(const Standard_Integer form) ;
  //! returns the referenced point, Z = 0 always <br>
  Standard_EXPORT     gp_Pnt2d ReferencePoint() const;
  //! returns the referenced point after applying Transf. Matrix <br>
  Standard_EXPORT     gp_Pnt TransformedReferencePoint() const;
  //! returns first flash sizing parameter <br>
  Standard_EXPORT     Standard_Real Dimension1() const;
  //! returns second flash sizing parameter <br>
  Standard_EXPORT     Standard_Real Dimension2() const;
  //! returns the angle in radians of the rotation of flash about the <br>
//! reference point <br>
  Standard_EXPORT     Standard_Real Rotation() const;
  //! returns the referenced entity or Null handle. <br>
  Standard_EXPORT     Handle_IGESData_IGESEntity ReferenceEntity() const;
  //! returns True if referenced entity is present. <br>
  Standard_EXPORT     Standard_Boolean HasReferenceEntity() const;




  DEFINE_STANDARD_RTTI(IGESGeom_Flash)

protected:




private: 


gp_XY thePoint;
Standard_Real theDim1;
Standard_Real theDim2;
Standard_Real theRotation;
Handle_IGESData_IGESEntity theReference;


};





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


#endif