// 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 _Prs2d_Axis_HeaderFile #define _Prs2d_Axis_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Prs2d_Axis_HeaderFile #include #endif #ifndef _Standard_ShortReal_HeaderFile #include #endif #ifndef _TShort_Array1OfShortReal_HeaderFile #include #endif #ifndef _Prs2d_TypeOfArrow_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Graphic2d_Line_HeaderFile #include #endif #ifndef _Handle_Graphic2d_GraphicObject_HeaderFile #include #endif #ifndef _Handle_Graphic2d_Drawer_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_TColgp_HArray1OfPnt2d_HeaderFile #include #endif #ifndef _Aspect_FStream_HeaderFile #include #endif class Graphic2d_GraphicObject; class gp_Ax22d; class gp_Ax2d; class gp_Lin2d; class Graphic2d_Drawer; class TColgp_HArray1OfPnt2d; //! Constructs the primitive Axis
class Prs2d_Axis : public Graphic2d_Line { public: //! Initializes the axis 2 position
Standard_EXPORT Prs2d_Axis(const Handle(Graphic2d_GraphicObject)& aGraphicObject,const gp_Ax22d& anAx,const Standard_Real aLength,const Standard_Real anArrAngle = 30.0,const Standard_Real anArrLength = 30.0,const Prs2d_TypeOfArrow anArrType = Prs2d_TOA_OPENED,const Standard_Real aTxtScale = 10.0); //! Initializes the axis position .
Standard_EXPORT Prs2d_Axis(const Handle(Graphic2d_GraphicObject)& aGraphicObject,const gp_Ax2d& anAx,const Standard_Real aLength,const Standard_Real anArrAngle = 30.0,const Standard_Real anArrLength = 30.0,const Prs2d_TypeOfArrow anArrType = Prs2d_TOA_OPENED,const Standard_Real aTxtScale = 10.0); //! Initializes the line
Standard_EXPORT Prs2d_Axis(const Handle(Graphic2d_GraphicObject)& aGraphicObject,const gp_Lin2d& aLine,const Standard_Real aLength,const Standard_Real anArrAngle = 30.0,const Standard_Real anArrLength = 30.0,const Prs2d_TypeOfArrow anArrType = Prs2d_TOA_OPENED,const Standard_Real aTxtScale = 10.0); //! Returns type of arrow
//! Type is:
//! TOA_OPENED,
//! TOA_CLOSED,
//! TOA_FILLED
Standard_EXPORT Prs2d_TypeOfArrow TypeOfArrow() const; Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d ArrayOfPnt2d() const; Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d ArrayOfXArrowPnt2d() const; Standard_EXPORT const Handle_TColgp_HArray1OfPnt2d ArrayOfYArrowPnt2d() const; Standard_EXPORT Standard_Real TextScale() const; Standard_EXPORT virtual void Save(Aspect_FStream& aFStream) const; DEFINE_STANDARD_RTTI(Prs2d_Axis) protected: //! Draws the axis .
Standard_EXPORT void Draw(const Handle(Graphic2d_Drawer)& aDrawer) ; //! Draws element of the axis .
Standard_EXPORT virtual void DrawElement(const Handle(Graphic2d_Drawer)& aDrawer,const Standard_Integer anIndex) ; //! Draws vertex of the axis .
Standard_EXPORT virtual void DrawVertex(const Handle(Graphic2d_Drawer)& aDrawer,const Standard_Integer anIndex) ; //! Returns Standard_True if the axis is picked,
//! Standard_False if not.
Standard_EXPORT Standard_Boolean Pick(const Standard_ShortReal X,const Standard_ShortReal Y,const Standard_ShortReal aPrecision,const Handle(Graphic2d_Drawer)& aDrawer) ; private: Standard_ShortReal myX0; Standard_ShortReal myY0; Standard_ShortReal myX1; Standard_ShortReal myY1; Standard_ShortReal myX2; Standard_ShortReal myY2; TShort_Array1OfShortReal myXVertX; TShort_Array1OfShortReal myYVertX; TShort_Array1OfShortReal myXVertY; TShort_Array1OfShortReal myYVertY; Prs2d_TypeOfArrow myArrType; Standard_Boolean myisXY; Standard_Real myTextScale; }; // other Inline functions and methods (like "C++: function call" methods) #endif