File indexing completed on 2025-01-18 10:04:00
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 class IGESDraw_View;
0031 DEFINE_STANDARD_HANDLE(IGESDraw_View, IGESData_ViewKindEntity)
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041 class IGESDraw_View : public IGESData_ViewKindEntity
0042 {
0043
0044 public:
0045
0046
0047 Standard_EXPORT IGESDraw_View();
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058 Standard_EXPORT void Init (const Standard_Integer aViewNum, const Standard_Real aScale, const Handle(IGESGeom_Plane)& aLeftPlane, const Handle(IGESGeom_Plane)& aTopPlane, const Handle(IGESGeom_Plane)& aRightPlane, const Handle(IGESGeom_Plane)& aBottomPlane, const Handle(IGESGeom_Plane)& aBackPlane, const Handle(IGESGeom_Plane)& aFrontPlane);
0059
0060
0061 Standard_EXPORT Standard_Boolean IsSingle() const Standard_OVERRIDE;
0062
0063
0064 Standard_EXPORT Standard_Integer NbViews() const Standard_OVERRIDE;
0065
0066
0067 Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer num) const Standard_OVERRIDE;
0068
0069
0070 Standard_EXPORT Standard_Integer ViewNumber() const;
0071
0072
0073 Standard_EXPORT Standard_Real ScaleFactor() const;
0074
0075
0076 Standard_EXPORT Standard_Boolean HasLeftPlane() const;
0077
0078
0079 Standard_EXPORT Handle(IGESGeom_Plane) LeftPlane() const;
0080
0081
0082 Standard_EXPORT Standard_Boolean HasTopPlane() const;
0083
0084
0085 Standard_EXPORT Handle(IGESGeom_Plane) TopPlane() const;
0086
0087
0088 Standard_EXPORT Standard_Boolean HasRightPlane() const;
0089
0090
0091 Standard_EXPORT Handle(IGESGeom_Plane) RightPlane() const;
0092
0093
0094 Standard_EXPORT Standard_Boolean HasBottomPlane() const;
0095
0096
0097 Standard_EXPORT Handle(IGESGeom_Plane) BottomPlane() const;
0098
0099
0100 Standard_EXPORT Standard_Boolean HasBackPlane() const;
0101
0102
0103 Standard_EXPORT Handle(IGESGeom_Plane) BackPlane() const;
0104
0105
0106 Standard_EXPORT Standard_Boolean HasFrontPlane() const;
0107
0108
0109 Standard_EXPORT Handle(IGESGeom_Plane) FrontPlane() const;
0110
0111
0112 Standard_EXPORT Handle(IGESData_TransfEntity) ViewMatrix() const;
0113
0114
0115
0116 Standard_EXPORT gp_XYZ ModelToView (const gp_XYZ& coords) const;
0117
0118
0119
0120
0121 DEFINE_STANDARD_RTTIEXT(IGESDraw_View,IGESData_ViewKindEntity)
0122
0123 protected:
0124
0125
0126
0127
0128 private:
0129
0130
0131 Standard_Integer theViewNumber;
0132 Standard_Real theScaleFactor;
0133 Handle(IGESGeom_Plane) theLeftPlane;
0134 Handle(IGESGeom_Plane) theTopPlane;
0135 Handle(IGESGeom_Plane) theRightPlane;
0136 Handle(IGESGeom_Plane) theBottomPlane;
0137 Handle(IGESGeom_Plane) theBackPlane;
0138 Handle(IGESGeom_Plane) theFrontPlane;
0139
0140
0141 };
0142
0143
0144
0145
0146
0147
0148
0149 #endif