Open CASCADE Technology  7.2.0
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

 Draw_Display ()
 
void SetColor (const Draw_Color &col) const
 Following drawings will use this color. More...
 
void SetMode (const Standard_Integer M) const
 Set the drawing mode, 3 = copy, 6 = xor. More...
 
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. More...
 
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. More...
 
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. More...
 
void Project (const gp_Pnt &pt, gp_Pnt2d &pt2d) const
 Returns the 2D projection of a 3D point. More...
 
Standard_Real Zoom () const
 Returns the current Zoom value. More...
 
Standard_Integer ViewId () const
 Returns the identifier of the view where the display is drawing. More...
 
Standard_Boolean HasPicked () const
 Returs True if the last drawing operations generated a pick hit. When HasPicked is True the Drawing should be resumed. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Draw_Display()

Draw_Display::Draw_Display ( )

Member Function Documentation

◆ Draw() [1/4]

void Draw_Display::Draw ( const gp_Pnt p1,
const gp_Pnt p2 
)

◆ Draw() [2/4]

void Draw_Display::Draw ( const gp_Pnt2d p1,
const gp_Pnt2d p2 
)

◆ Draw() [3/4]

void Draw_Display::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.

◆ Draw() [4/4]

void Draw_Display::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.

◆ DrawMarker() [1/4]

void Draw_Display::DrawMarker ( const gp_Pnt pt,
const Draw_MarkerShape  S,
const Standard_Integer  Size = 5 
)

◆ DrawMarker() [2/4]

void Draw_Display::DrawMarker ( const gp_Pnt2d pt,
const Draw_MarkerShape  S,
const Standard_Integer  Size = 5 
)

◆ DrawMarker() [3/4]

void Draw_Display::DrawMarker ( const gp_Pnt pt,
const Draw_MarkerShape  S,
const Standard_Real  Size 
)

◆ DrawMarker() [4/4]

void Draw_Display::DrawMarker ( const gp_Pnt2d pt,
const Draw_MarkerShape  S,
const Standard_Real  Size 
)

◆ DrawString() [1/4]

void Draw_Display::DrawString ( const gp_Pnt pt,
const Standard_CString  S 
)

◆ DrawString() [2/4]

void Draw_Display::DrawString ( const gp_Pnt2d pt,
const Standard_CString  S 
)

◆ DrawString() [3/4]

void Draw_Display::DrawString ( const gp_Pnt pt,
const Standard_CString  S,
const Standard_Real  moveX,
const Standard_Real  moveY 
)

◆ DrawString() [4/4]

void Draw_Display::DrawString ( const gp_Pnt2d pt,
const Standard_CString  S,
const Standard_Real  moveX,
const Standard_Real  moveY 
)

◆ DrawTo() [1/2]

void Draw_Display::DrawTo ( const gp_Pnt pt)

◆ DrawTo() [2/2]

void Draw_Display::DrawTo ( const gp_Pnt2d pt)

◆ Flush()

void Draw_Display::Flush ( ) const

◆ HasPicked()

Standard_Boolean Draw_Display::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.

◆ MoveTo() [1/2]

void Draw_Display::MoveTo ( const gp_Pnt pt)

◆ MoveTo() [2/2]

void Draw_Display::MoveTo ( const gp_Pnt2d pt)

◆ Project() [1/2]

gp_Pnt2d Draw_Display::Project ( const gp_Pnt pt) const

Returns the 2D projection of a 3D point.

◆ Project() [2/2]

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

Returns the 2D projection of a 3D point.

◆ SetColor()

void Draw_Display::SetColor ( const Draw_Color col) const

Following drawings will use this color.

◆ SetMode()

void Draw_Display::SetMode ( const Standard_Integer  M) const

Set the drawing mode, 3 = copy, 6 = xor.

◆ ViewId()

Standard_Integer Draw_Display::ViewId ( ) const

Returns the identifier of the view where the display is drawing.

◆ Zoom()

Standard_Real Draw_Display::Zoom ( ) const

Returns the current Zoom value.


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