# Draw
TKDraw
Draw

# Draw_Display Class Reference

Use to draw in a 3d or a 2d view.
* The 3d methods draw in the 3d system, in a 2d
view the drawing is projected on X,Y.
* The 2d methods draw in the projection plane.
* To draw in screen coordinates the length must be
divided by the zoom.
.

`#include <Draw_Display.hxx>`

## Public Member Functions

void * | operator new (size_t, void *anAddress)
void * | operator new (size_t size)
void | operator delete (void *anAddress)
Standard_EXPORT | Draw_Display ()
Standard_EXPORT void | SetColor (const Draw_Color &col) const
| Following drawings will use this color. .
Standard_EXPORT void | SetMode (const Standard_Integer M) const
| Set the drawing mode, 3 = copy, 6 = xor .
Standard_EXPORT void | Flush () const
Standard_EXPORT void | MoveTo (const gp_Pnt &pt)
Standard_EXPORT void | DrawTo (const gp_Pnt &pt)
Standard_EXPORT void | MoveTo (const gp_Pnt2d &pt)
Standard_EXPORT void | DrawTo (const gp_Pnt2d &pt)
Standard_EXPORT void | Draw (const gp_Pnt &p1, const gp_Pnt &p2)
Standard_EXPORT void | Draw (const gp_Pnt2d &p1, const gp_Pnt2d &p2)
Standard_EXPORT void | Draw (const gp_Circ &C, const Standard_Real A1, const Standard_Real A2, const Standard_Boolean ModifyWithZoom=Standard_True)
| Draw a circle <c> from angle <a1> to <a2> (Radians). if ModifyWithZoom = 0, then rayon of circle is convert to Integer. .
Standard_EXPORT void | Draw (const gp_Circ2d &C, const Standard_Real A1, const Standard_Real A2, const Standard_Boolean ModifyWithZoom=Standard_True)
| Draw a 2D circle <c> from angle <a1> to <a2> (Radians). if ModifyWithZoom = 0, then rayon of circle is convert to Integer. .
Standard_EXPORT void | DrawMarker (const gp_Pnt &pt, const Draw_MarkerShape S, const Standard_Integer Size=5)
Standard_EXPORT void | DrawMarker (const gp_Pnt2d &pt, const Draw_MarkerShape S, const Standard_Integer Size=5)
Standard_EXPORT void | DrawMarker (const gp_Pnt &pt, const Draw_MarkerShape S, const Standard_Real Size)
Standard_EXPORT void | DrawMarker (const gp_Pnt2d &pt, const Draw_MarkerShape S, const Standard_Real Size)
Standard_EXPORT void | DrawString (const gp_Pnt &pt, const Standard_CString S)
Standard_EXPORT void | DrawString (const gp_Pnt2d &pt, const Standard_CString S)
Standard_EXPORT void | DrawString (const gp_Pnt &pt, const Standard_CString S, const Standard_Real moveX, const Standard_Real moveY)
Standard_EXPORT void | DrawString (const gp_Pnt2d &pt, const Standard_CString S, const Standard_Real moveX, const Standard_Real moveY)
Standard_EXPORT gp_Pnt2d | Project (const gp_Pnt &pt) const
| Returns the 2D projection of a 3D point. .
Standard_EXPORT void | Project (const gp_Pnt &pt, gp_Pnt2d &pt2d) const
| Returns the 2D projection of a 3D point. .
Standard_EXPORT Standard_Real | Zoom () const
| Returns the current Zoom value. .
Standard_EXPORT Standard_Integer | ViewId () const
| Returns the identifier of the view where the display is drawing. .
Standard_EXPORT 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. .

## Constructor & Destructor Documentation

Standard_EXPORT Draw_Display::Draw_Display | ( |  | ) |

## Member Function Documentation

Standard_EXPORT void Draw_Display::Draw | ( | const gp_Circ2d & | C,
|  | const Standard_Real | A1,
|  | const Standard_Real | A2,
|  | const Standard_Boolean | ModifyWithZoom = `Standard_True`
| ) |

Standard_EXPORT void Draw_Display::Draw | ( | const gp_Circ & | C,
|  | const Standard_Real | A1,
|  | const Standard_Real | A2,
|  | const Standard_Boolean | ModifyWithZoom = `Standard_True`
| ) |

Standard_EXPORT void Draw_Display::Draw | ( | const gp_Pnt2d & | p1,
|  | const gp_Pnt2d & | p2
| ) |

Standard_EXPORT void Draw_Display::Draw | ( | const gp_Pnt & | p1,
|  | const gp_Pnt & | p2
| ) |

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

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

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

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

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

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

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

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

Standard_EXPORT void Draw_Display::DrawTo | ( | const gp_Pnt2d & | pt | ) |

Standard_EXPORT void Draw_Display::DrawTo | ( | const gp_Pnt & | pt | ) |

Standard_EXPORT void Draw_Display::Flush | ( |  | ) | const

Standard_EXPORT Standard_Boolean Draw_Display::HasPicked | ( |  | ) | const

Standard_EXPORT void Draw_Display::MoveTo | ( | const gp_Pnt2d & | pt | ) |

Standard_EXPORT void Draw_Display::MoveTo | ( | const gp_Pnt & | pt | ) |

void Draw_Display::operator delete | ( | void * | anAddress | ) | `[inline]`

void* Draw_Display::operator new | ( | size_t | size | ) | `[inline]`

void* Draw_Display::operator new | ( | size_t | ,
|  | void * | anAddress
| ) | `[inline]`

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

Standard_EXPORT gp_Pnt2d Draw_Display::Project | ( | const gp_Pnt & | pt | ) | const

Standard_EXPORT void Draw_Display::SetColor | ( | const Draw_Color & | col | ) | const

Standard_EXPORT void Draw_Display::SetMode | ( | const Standard_Integer | M | ) | const

Standard_EXPORT Standard_Integer Draw_Display::ViewId | ( |  | ) | const

Standard_EXPORT Standard_Real Draw_Display::Zoom | ( |  | ) | const

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

- Draw_Display.hxx