summaryrefslogtreecommitdiff
path: root/inc/IGESGeom_CopiousData.hxx
blob: 4392c7d2d7c84257a672557440ddebd7fc51cf02 (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
// 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_CopiousData_HeaderFile
#define _IGESGeom_CopiousData_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESGeom_CopiousData_HeaderFile
#include <Handle_IGESGeom_CopiousData.hxx>
#endif

#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfReal_HeaderFile
#include <Handle_TColStd_HArray1OfReal.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TColStd_HArray1OfReal;
class Standard_OutOfRange;
class gp_Pnt;
class gp_Vec;


//! defines IGESCopiousData, Type <106> Form <1-3,11-13,63> <br>
//!          in package IGESGeom <br>
//!          This entity stores data points in the form of pairs, <br>
//!          triples, or sextuples. An interpretation flag value <br>
//!          signifies which of these forms is being used. <br>
class IGESGeom_CopiousData : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESGeom_CopiousData();
  //! This method is used to set the fields of the class <br>
//!           CopiousData <br>
//!       - aDataType : Specifies whether data is a pair or a triple <br>
//!                     or a sextuple. <br>
//!       - aZPlane   : Common Z value for all points if datatype = 1 <br>
//!       - allData   : Data to be read in groups of 2, 3 or 6 <br>
  Standard_EXPORT     void Init(const Standard_Integer aDataType,const Standard_Real aZPlane,const Handle(TColStd_HArray1OfReal)& allData) ;
  //! Sets Copious Data to be a Polyline if <mode> is True <br>
//!           (Form = 11-12-13) or a Set of Points else (Form 1-2-3) <br>
  Standard_EXPORT     void SetPolyline(const Standard_Boolean mode) ;
  //! Sets Copious Data to be a Closed Path 2D (Form 63) <br>
//!  Warning : DataType is not checked and must be set to ONE by Init <br>
  Standard_EXPORT     void SetClosedPath2D() ;
  //! Returns True if <me> is a Set of Points (Form 1-2-3) <br>
  Standard_EXPORT     Standard_Boolean IsPointSet() const;
  //! Returns True if <me> is a Polyline (Form 11-12-13) <br>
  Standard_EXPORT     Standard_Boolean IsPolyline() const;
  //! Returns True if <me> is a Closed Path 2D (Form 63) <br>
  Standard_EXPORT     Standard_Boolean IsClosedPath2D() const;
  //! returns data type <br>
//! 1 = XY ( with common Z given by plane) <br>
//! 2 = XYZ ( point) <br>
//! 3 = XYZ + Vec(XYZ) (point + normal vector) <br>
  Standard_EXPORT     Standard_Integer DataType() const;
  //! returns the number of tuples <br>
  Standard_EXPORT     Standard_Integer NbPoints() const;
  //! Returns an individual Data, given the N0 of the Point <br>//!           and the B0 of the Coordinate (according DataType) <br>
  Standard_EXPORT     Standard_Real Data(const Standard_Integer NumPoint,const Standard_Integer NumData) const;
  //! If datatype = 1, then returns common z value for all data <br>
//! else returns 0 <br>
  Standard_EXPORT     Standard_Real ZPlane() const;
  //! returns the coordinates of the point specified by the anIndex <br>
//! raises exception if anIndex <= 0 or anIndex > NbPoints() <br>
  Standard_EXPORT     gp_Pnt Point(const Standard_Integer anIndex) const;
  //! returns the coordinates of the point specified by the anIndex <br>
//! after applying Transf. Matrix <br>
//! raises exception if anIndex <= 0 or anIndex > NbPoints() <br>
  Standard_EXPORT     gp_Pnt TransformedPoint(const Standard_Integer anIndex) const;
  //! returns i, j, k values if 3-tuple else returns (0, 0, 0) <br>
//! raises exception if anIndex <= 0 or anIndex > NbPoints() <br>
  Standard_EXPORT     gp_Vec Vector(const Standard_Integer anIndex) const;
  //! returns transformed vector if 3-tuple else returns (0, 0, 0) <br>
//! raises exception if anIndex <= 0 or anIndex > NbPoints() <br>
  Standard_EXPORT     gp_Vec TransformedVector(const Standard_Integer anIndex) const;




  DEFINE_STANDARD_RTTI(IGESGeom_CopiousData)

protected:




private: 


Standard_Integer theDataType;
Standard_Real theZPlane;
Handle_TColStd_HArray1OfReal theData;


};





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


#endif