File indexing completed on 2025-01-18 10:03:25
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 DEFINE_STANDARD_HANDLE(DrawTrSurf_Surface, DrawTrSurf_Drawable)
0027
0028
0029
0030 class DrawTrSurf_Surface : public DrawTrSurf_Drawable
0031 {
0032 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Surface, DrawTrSurf_Drawable)
0033 Draw_Drawable3D_FACTORY
0034 public:
0035
0036
0037
0038
0039
0040 Standard_EXPORT DrawTrSurf_Surface (const Handle(Geom_Surface)& S);
0041
0042 Standard_EXPORT DrawTrSurf_Surface (const Handle(Geom_Surface)& S,
0043 const Standard_Integer Nu, const Standard_Integer Nv,
0044 const Draw_Color& BoundsColor, const Draw_Color& IsosColor,
0045 const Standard_Integer Discret, const Standard_Real Deflection, const Standard_Integer DrawMode);
0046
0047 Draw_Color BoundsColor() const { return boundsLook; }
0048
0049
0050 Standard_EXPORT virtual void ClearIsos();
0051
0052 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
0053
0054
0055
0056 Standard_EXPORT void DrawOn (Draw_Display& dis, const Standard_Boolean Iso) const;
0057
0058 Handle(Geom_Surface) GetSurface() const { return surf; }
0059
0060 Draw_Color IsosColor() const { return isosLook; }
0061
0062 void NbIsos (Standard_Integer& theNU, Standard_Integer& theNV) const
0063 {
0064 theNU = nbUIsos;
0065 theNV = nbVIsos;
0066 }
0067
0068 void SetBoundsColor (const Draw_Color& theColor) { boundsLook = theColor; }
0069
0070 void SetIsosColor (const Draw_Color& theColor) { isosLook = theColor; }
0071
0072
0073 virtual void ShowIsos (const Standard_Integer theNu, const Standard_Integer theNv)
0074 {
0075 nbUIsos = Abs(theNu);
0076 nbVIsos = Abs(theNv);
0077 }
0078
0079
0080 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
0081
0082
0083 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
0084
0085
0086 Standard_EXPORT virtual void Save (Standard_OStream& theStream) const Standard_OVERRIDE;
0087
0088
0089 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
0090
0091 protected:
0092
0093 Handle(Geom_Surface) surf;
0094 Draw_Color boundsLook;
0095 Draw_Color isosLook;
0096 Standard_Integer nbUIsos;
0097 Standard_Integer nbVIsos;
0098
0099 };
0100
0101 #endif