Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Draw_Display Class Reference

Use to draw in a 3d or a 2d view.

More...

#include <Draw_Display.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC Draw_Display ()
void SetColor (const Draw_Color &col) const
 Following drawings will use this color.

void SetMode (const Standard_Integer M) const
 Set the drawing mode, 3 = copy, 6 = xor

void Flush () const
void MoveTo (const gp_Pnt &pt)
void DrawTo (const gp_Pnt &pt)
void MoveTo (const gp_Pnt2d &pt)
void DrawTo (const gp_Pnt2d &pt)
void Draw (const gp_Pnt &p1, const gp_Pnt &p2)
void Draw (const gp_Pnt2d &p1, const gp_Pnt2d &p2)
void Draw (const gp_Circ &C, const Standard_Real A1, const Standard_Real A2, const Standard_Boolean ModifyWithZoom=Standard_True)
 Draw a circle from angle <A1> to <A2>
(Radians). if ModifyWithZoom = 0, then
rayon of circle is convert to Integer.

void Draw (const gp_Circ2d &C, const Standard_Real A1, const Standard_Real A2, const Standard_Boolean ModifyWithZoom=Standard_True)
 Draw a 2D circle from angle <A1> to <A2>
(Radians). if ModifyWithZoom = 0, then
rayon of circle is convert to Integer.

void DrawMarker (const gp_Pnt &pt, const Draw_MarkerShape S, const Standard_Integer Size=5)
void DrawMarker (const gp_Pnt2d &pt, const Draw_MarkerShape S, const Standard_Integer Size=5)
void DrawMarker (const gp_Pnt &pt, const Draw_MarkerShape S, const Standard_Real Size)
void DrawMarker (const gp_Pnt2d &pt, const Draw_MarkerShape S, const Standard_Real Size)
void DrawString (const gp_Pnt &pt, const Standard_CString S)
void DrawString (const gp_Pnt2d &pt, const Standard_CString S)
void DrawString (const gp_Pnt &pt, const Standard_CString S, const Standard_Real moveX, const Standard_Real moveY)
void DrawString (const gp_Pnt2d &pt, const Standard_CString S, const Standard_Real moveX, const Standard_Real moveY)
gp_Pnt2d Project (const gp_Pnt &pt) const
 Returns the 2D projection of a 3D point.

void Project (const gp_Pnt &pt, gp_Pnt2d &pt2d) const
 Returns the 2D projection of a 3D point.

Standard_Real Zoom () const
 Returns the current Zoom value.

Standard_Integer ViewId () const
 Returns the identifier of the view where the
display is drawing.

Standard_Boolean HasPicked () const
 Returs True if the last drawing operations
generated a pick hit. When HasPicked is True the
Drawing should be resumed.

This function is used to shorten the drawing when
picking and to save the picked sub-parts.


Detailed Description

     * The  3d methods draw in the 3d  system,  in a 2d <br>
     view the drawing is projected on X,Y. <br>



Constructor & Destructor Documentation


Member Function Documentation

void Draw_Display::Project ( const gp_Pnt pt,
gp_Pnt2d pt2d 
) const

The documentation for this class was generated from the following file: