// 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 _DrawTrSurf_Curve2d_HeaderFile #define _DrawTrSurf_Curve2d_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_DrawTrSurf_Curve2d_HeaderFile #include #endif #ifndef _Handle_Geom2d_Curve_HeaderFile #include #endif #ifndef _Draw_Color_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _DrawTrSurf_Drawable_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Draw_Drawable3D_HeaderFile #include #endif #ifndef _Standard_OStream_HeaderFile #include #endif class Geom2d_Curve; class Draw_Color; class Draw_Display; class Draw_Drawable3D; class Draw_Interpretor; //! This class defines a drawable curve in 2d space.
//! The curve is drawned in the plane XOY.
class DrawTrSurf_Curve2d : public DrawTrSurf_Drawable { public: //! creates a drawable curve from a curve of package Geom2d.
Standard_EXPORT DrawTrSurf_Curve2d(const Handle(Geom2d_Curve)& C,const Standard_Boolean DispOrigin = Standard_True); Standard_EXPORT DrawTrSurf_Curve2d(const Handle(Geom2d_Curve)& C,const Draw_Color& aColor,const Standard_Integer Discret,const Standard_Boolean DispOrigin = Standard_True,const Standard_Boolean DispCurvRadius = Standard_False,const Standard_Real RadiusMax = 1.0e3,const Standard_Real RatioOfRadius = 0.1); Standard_EXPORT void DrawOn(Draw_Display& dis) const; Handle_Geom2d_Curve GetCurve() const; void SetColor(const Draw_Color& aColor) ; void ShowCurvature() ; void ClearCurvature() ; void SetRadiusMax(const Standard_Real Radius) ; void SetRadiusRatio(const Standard_Real Ratio) ; Draw_Color Color() const; Standard_Real RadiusMax() const; Standard_Real RadiusRatio() const; //! For variable copy.
Standard_EXPORT virtual Handle_Draw_Drawable3D Copy() const; //! For variable dump.
Standard_EXPORT virtual void Dump(Standard_OStream& S) const; //! Returns False.
Standard_EXPORT virtual Standard_Boolean Is3D() const; //! For variable whatis command. Set as a result the
//! type of the variable.
Standard_EXPORT virtual void Whatis(Draw_Interpretor& I) const; DEFINE_STANDARD_RTTI(DrawTrSurf_Curve2d) protected: Handle_Geom2d_Curve curv; Draw_Color look; Standard_Boolean disporigin; Standard_Boolean dispcurvradius; Standard_Real radiusmax; Standard_Real radiusratio; private: }; #include // other Inline functions and methods (like "C++: function call" methods) #endif