Open CASCADE Technology 6.5.2
Public Member Functions | Protected Member Functions
Prs2d_Point Class Reference

Constructs presentable and selectable Point.
It's displayed as a definite type Marker from
Aspect_TypeOfMarker

#include <Prs2d_Point.hxx>

Inheritance diagram for Prs2d_Point:
Inheritance graph
[legend]

Public Member Functions

 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)
 Initializes the Point defined <aPnt>

void SetPoint (const gp_Pnt2d &aPnt)
 Modifies the Point by redefining location <aPnt>

void SetMarker (const Aspect_TypeOfMarker aTOM)
 Modifies the Point by redefining type of marker

void SetIndex (const Standard_Integer anInd)
 Sets the map index of the marker

gp_Pnt2d Point () const
 Returns the location of the Point

Aspect_TypeOfMarker Marker () const
 Returns the type of marker of the Point

virtual void Save (Aspect_FStream &aFStream) const

Protected Member Functions

void Draw (const Handle< Graphic2d_Drawer > &aDrawer)
 Draws the angle <me>.

virtual void DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws element <anIndex> of the point <me>.

virtual void DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws vertex <anIndex> of the point <me>.

Standard_Boolean Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle< Graphic2d_Drawer > &aDrawer)
 Returns Standard_True if the point <me> is picked,
Standard_False if not.


Constructor & Destructor Documentation

Prs2d_Point::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 
)

Member Function Documentation

void Prs2d_Point::Draw ( const Handle< Graphic2d_Drawer > &  aDrawer) [protected, virtual]

Implements Graphic2d_Primitive.

virtual void Prs2d_Point::DrawElement ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

virtual void Prs2d_Point::DrawVertex ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

Aspect_TypeOfMarker Prs2d_Point::Marker ( ) const
Standard_Boolean Prs2d_Point::Pick ( const Standard_ShortReal  X,
const Standard_ShortReal  Y,
const Standard_ShortReal  aPrecision,
const Handle< Graphic2d_Drawer > &  aDrawer 
) [protected, virtual]

Implements Graphic2d_Primitive.

gp_Pnt2d Prs2d_Point::Point ( ) const
virtual void Prs2d_Point::Save ( Aspect_FStream aFStream) const [virtual]

Reimplemented from Graphic2d_Line.

void Prs2d_Point::SetIndex ( const Standard_Integer  anInd)
void Prs2d_Point::SetMarker ( const Aspect_TypeOfMarker  aTOM)
void Prs2d_Point::SetPoint ( const gp_Pnt2d aPnt)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines