File indexing completed on 2026-09-24 09:16:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IGESDraw_View_HeaderFile
0018 #define _IGESDraw_View_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <IGESData_ViewKindEntity.hxx>
0025 class IGESGeom_Plane;
0026 class IGESData_TransfEntity;
0027 class gp_XYZ;
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037 class IGESDraw_View : public IGESData_ViewKindEntity
0038 {
0039
0040 public:
0041 Standard_EXPORT IGESDraw_View();
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052 Standard_EXPORT void Init(const int aViewNum,
0053 const double aScale,
0054 const occ::handle<IGESGeom_Plane>& aLeftPlane,
0055 const occ::handle<IGESGeom_Plane>& aTopPlane,
0056 const occ::handle<IGESGeom_Plane>& aRightPlane,
0057 const occ::handle<IGESGeom_Plane>& aBottomPlane,
0058 const occ::handle<IGESGeom_Plane>& aBackPlane,
0059 const occ::handle<IGESGeom_Plane>& aFrontPlane);
0060
0061
0062 Standard_EXPORT bool IsSingle() const override;
0063
0064
0065 Standard_EXPORT int NbViews() const override;
0066
0067
0068 Standard_EXPORT occ::handle<IGESData_ViewKindEntity> ViewItem(const int num) const override;
0069
0070
0071 Standard_EXPORT int ViewNumber() const;
0072
0073
0074 Standard_EXPORT double ScaleFactor() const;
0075
0076
0077 Standard_EXPORT bool HasLeftPlane() const;
0078
0079
0080 Standard_EXPORT occ::handle<IGESGeom_Plane> LeftPlane() const;
0081
0082
0083 Standard_EXPORT bool HasTopPlane() const;
0084
0085
0086 Standard_EXPORT occ::handle<IGESGeom_Plane> TopPlane() const;
0087
0088
0089 Standard_EXPORT bool HasRightPlane() const;
0090
0091
0092 Standard_EXPORT occ::handle<IGESGeom_Plane> RightPlane() const;
0093
0094
0095 Standard_EXPORT bool HasBottomPlane() const;
0096
0097
0098 Standard_EXPORT occ::handle<IGESGeom_Plane> BottomPlane() const;
0099
0100
0101 Standard_EXPORT bool HasBackPlane() const;
0102
0103
0104 Standard_EXPORT occ::handle<IGESGeom_Plane> BackPlane() const;
0105
0106
0107 Standard_EXPORT bool HasFrontPlane() const;
0108
0109
0110 Standard_EXPORT occ::handle<IGESGeom_Plane> FrontPlane() const;
0111
0112
0113 Standard_EXPORT occ::handle<IGESData_TransfEntity> ViewMatrix() const;
0114
0115
0116
0117 Standard_EXPORT gp_XYZ ModelToView(const gp_XYZ& coords) const;
0118
0119 DEFINE_STANDARD_RTTIEXT(IGESDraw_View, IGESData_ViewKindEntity)
0120
0121 private:
0122 int theViewNumber;
0123 double theScaleFactor;
0124 occ::handle<IGESGeom_Plane> theLeftPlane;
0125 occ::handle<IGESGeom_Plane> theTopPlane;
0126 occ::handle<IGESGeom_Plane> theRightPlane;
0127 occ::handle<IGESGeom_Plane> theBottomPlane;
0128 occ::handle<IGESGeom_Plane> theBackPlane;
0129 occ::handle<IGESGeom_Plane> theFrontPlane;
0130 };
0131
0132 #endif