File indexing completed on 2026-09-20 09:17:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_Surface_HeaderFile
0018 #define _DrawTrSurf_Surface_HeaderFile
0019
0020 #include <Draw_Color.hxx>
0021 #include <DrawTrSurf_Drawable.hxx>
0022 #include <Draw_Interpretor.hxx>
0023
0024 class Geom_Surface;
0025
0026
0027
0028 class DrawTrSurf_Surface : public DrawTrSurf_Drawable
0029 {
0030 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Surface, DrawTrSurf_Drawable)
0031 Draw_Drawable3D_FACTORY
0032 public:
0033
0034
0035
0036
0037 Standard_EXPORT DrawTrSurf_Surface(const occ::handle<Geom_Surface>& S);
0038
0039 Standard_EXPORT DrawTrSurf_Surface(const occ::handle<Geom_Surface>& S,
0040 const int Nu,
0041 const int Nv,
0042 const Draw_Color& BoundsColor,
0043 const Draw_Color& IsosColor,
0044 const int Discret,
0045 const double Deflection,
0046 const int DrawMode);
0047
0048 Draw_Color BoundsColor() const { return boundsLook; }
0049
0050
0051 Standard_EXPORT virtual void ClearIsos();
0052
0053 Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0054
0055
0056
0057 Standard_EXPORT void DrawOn(Draw_Display& dis, const bool Iso) const;
0058
0059 occ::handle<Geom_Surface> GetSurface() const { return surf; }
0060
0061 Draw_Color IsosColor() const { return isosLook; }
0062
0063 void NbIsos(int& theNU, int& theNV) const
0064 {
0065 theNU = nbUIsos;
0066 theNV = nbVIsos;
0067 }
0068
0069 void SetBoundsColor(const Draw_Color& theColor) { boundsLook = theColor; }
0070
0071 void SetIsosColor(const Draw_Color& theColor) { isosLook = theColor; }
0072
0073
0074 virtual void ShowIsos(const int theNu, const int theNv)
0075 {
0076 nbUIsos = std::abs(theNu);
0077 nbVIsos = std::abs(theNv);
0078 }
0079
0080
0081 Standard_EXPORT occ::handle<Draw_Drawable3D> Copy() const override;
0082
0083
0084 Standard_EXPORT void Dump(Standard_OStream& S) const override;
0085
0086
0087 Standard_EXPORT void Save(Standard_OStream& theStream) const override;
0088
0089
0090 Standard_EXPORT void Whatis(Draw_Interpretor& I) const override;
0091
0092 protected:
0093 occ::handle<Geom_Surface> surf;
0094 Draw_Color boundsLook;
0095 Draw_Color isosLook;
0096 int nbUIsos;
0097 int nbVIsos;
0098 };
0099
0100 #endif