// 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_Point_HeaderFile #define _Prs2d_Point_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Prs2d_Point_HeaderFile #include #endif #ifndef _gp_Pnt2d_HeaderFile #include #endif #ifndef _Aspect_TypeOfMarker_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Quantity_Length_HeaderFile #include #endif #ifndef _Quantity_PlaneAngle_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_Boolean_HeaderFile #include #endif #ifndef _Standard_ShortReal_HeaderFile #include #endif #ifndef _Aspect_FStream_HeaderFile #include #endif class Graphic2d_GraphicObject; class gp_Pnt2d; class Graphic2d_Drawer; //! Constructs presentable and selectable Point.
//! It's displayed as a definite type Marker from
//! Aspect_TypeOfMarker
class Prs2d_Point : public Graphic2d_Line { public: //! Initializes the Point defined
Standard_EXPORT Prs2d_Point(const Handle(Graphic2d_GraphicObject)& aGO,const gp_Pnt2d& aPnt,const Aspect_TypeOfMarker aTOM,const Quantity_Length aWSize = 2.0,const Quantity_Length aHSize = 2.0,const Quantity_PlaneAngle anAngle = 0.0); //! Modifies the Point by redefining location
Standard_EXPORT void SetPoint(const gp_Pnt2d& aPnt) ; //! Modifies the Point by redefining type of marker
Standard_EXPORT void SetMarker(const Aspect_TypeOfMarker aTOM) ; //! Sets the map index of the marker
Standard_EXPORT void SetIndex(const Standard_Integer anInd) ; //! Returns the location of the Point
Standard_EXPORT gp_Pnt2d Point() const; //! Returns the type of marker of the Point
Standard_EXPORT Aspect_TypeOfMarker Marker() const; Standard_EXPORT virtual void Save(Aspect_FStream& aFStream) const; DEFINE_STANDARD_RTTI(Prs2d_Point) protected: //! Draws the angle .
Standard_EXPORT void Draw(const Handle(Graphic2d_Drawer)& aDrawer) ; //! Draws element of the point .
Standard_EXPORT virtual void DrawElement(const Handle(Graphic2d_Drawer)& aDrawer,const Standard_Integer anIndex) ; //! Draws vertex of the point .
Standard_EXPORT virtual void DrawVertex(const Handle(Graphic2d_Drawer)& aDrawer,const Standard_Integer anIndex) ; //! Returns Standard_True if the point 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: gp_Pnt2d myPoint; Aspect_TypeOfMarker myTOM; Standard_Integer myIndMark; Quantity_Length myWSize; Quantity_Length myHSize; Quantity_PlaneAngle myAngle; }; // other Inline functions and methods (like "C++: function call" methods) #endif