Open CASCADE Technology  7.2.0
Public Member Functions
Draw_Viewer Class Reference

#include <Draw_Viewer.hxx>

Public Member Functions

 Draw_Viewer ()
 
Standard_Boolean DefineColor (const Standard_Integer i, const char *colname)
 
void MakeView (const Standard_Integer id, const char *typ, const Standard_Integer X, const Standard_Integer Y, const Standard_Integer W, const Standard_Integer H)
 
void MakeView (const Standard_Integer id, const char *typ, const char *window)
 
void SetTitle (const Standard_Integer id, const char *name)
 
void ResetView (const Standard_Integer id)
 
void SetZoom (const Standard_Integer id, const Standard_Real z)
 
void RotateView (const Standard_Integer id, const gp_Dir2d &, const Standard_Real)
 
void RotateView (const Standard_Integer id, const gp_Pnt &, const gp_Dir &, const Standard_Real)
 
void SetFocal (const Standard_Integer id, const Standard_Real FocalDist)
 
char * GetType (const Standard_Integer id) const
 
Standard_Real Zoom (const Standard_Integer id) const
 
Standard_Real Focal (const Standard_Integer id) const
 
void SetTrsf (const Standard_Integer id, gp_Trsf &T)
 
void GetTrsf (const Standard_Integer id, gp_Trsf &T) const
 
void GetPosSize (const Standard_Integer id, Standard_Integer &X, Standard_Integer &Y, Standard_Integer &W, Standard_Integer &H)
 
Standard_Boolean Is3D (const Standard_Integer id) const
 
void GetFrame (const Standard_Integer id, Standard_Integer &xmin, Standard_Integer &ymin, Standard_Integer &xmax, Standard_Integer &ymax)
 
void FitView (const Standard_Integer id, const Standard_Integer frame)
 
void PanView (const Standard_Integer id, const Standard_Integer DX, const Standard_Integer DY)
 
void SetPan (const Standard_Integer id, const Standard_Integer DX, const Standard_Integer DY)
 
void GetPan (const Standard_Integer id, Standard_Integer &DX, Standard_Integer &DY)
 
Standard_Boolean HasView (const Standard_Integer id) const
 
void DisplayView (const Standard_Integer id) const
 
void HideView (const Standard_Integer id) const
 
void ClearView (const Standard_Integer id) const
 
void RemoveView (const Standard_Integer id)
 
void RepaintView (const Standard_Integer id) const
 
void ConfigView (const Standard_Integer id) const
 
void PostScriptView (const Standard_Integer id, const Standard_Integer VXmin, const Standard_Integer VYmin, const Standard_Integer VXmax, const Standard_Integer VYmax, const Standard_Integer PXmin, const Standard_Integer PYmin, const Standard_Integer PXmax, const Standard_Integer PYmax, ostream &sortie) const
 
void PostColor (const Standard_Integer icol, const Standard_Integer width, const Standard_Real gray)
 
Standard_Boolean SaveView (const Standard_Integer id, const char *filename)
 
void RepaintAll () const
 
void Repaint2D () const
 
void Repaint3D () const
 
void DeleteView (const Standard_Integer id)
 
void Clear ()
 
void Clear2D ()
 
void Clear3D ()
 
void Flush ()
 
void DrawOnView (const Standard_Integer id, const Handle< Draw_Drawable3D > &D) const
 
void HighlightOnView (const Standard_Integer id, const Handle< Draw_Drawable3D > &D, const Draw_ColorKind C=Draw_blanc) const
 
void AddDrawable (const Handle< Draw_Drawable3D > &D)
 
void RemoveDrawable (const Handle< Draw_Drawable3D > &D)
 
Draw_Display MakeDisplay (const Standard_Integer id) const
 
void Select (Standard_Integer &id, Standard_Integer &X, Standard_Integer &Y, Standard_Integer &Button, Standard_Boolean waitclick=Standard_True)
 
Standard_Integer Pick (const Standard_Integer id, const Standard_Integer X, const Standard_Integer Y, const Standard_Integer Prec, Handle< Draw_Drawable3D > &D, const Standard_Integer First=0) const
 
void LastPick (gp_Pnt &P1, gp_Pnt &P2, Standard_Real &Param)
 
 ~Draw_Viewer ()
 
Draw_Vieweroperator<< (const Handle< Draw_Drawable3D > &)
 
const Draw_SequenceOfDrawable3DGetDrawables ()
 

Constructor & Destructor Documentation

◆ Draw_Viewer()

Draw_Viewer::Draw_Viewer ( )

◆ ~Draw_Viewer()

Draw_Viewer::~Draw_Viewer ( )

Member Function Documentation

◆ AddDrawable()

void Draw_Viewer::AddDrawable ( const Handle< Draw_Drawable3D > &  D)

◆ Clear()

void Draw_Viewer::Clear ( )

◆ Clear2D()

void Draw_Viewer::Clear2D ( )

◆ Clear3D()

void Draw_Viewer::Clear3D ( )

◆ ClearView()

void Draw_Viewer::ClearView ( const Standard_Integer  id) const

◆ ConfigView()

void Draw_Viewer::ConfigView ( const Standard_Integer  id) const

◆ DefineColor()

Standard_Boolean Draw_Viewer::DefineColor ( const Standard_Integer  i,
const char *  colname 
)

◆ DeleteView()

void Draw_Viewer::DeleteView ( const Standard_Integer  id)

◆ DisplayView()

void Draw_Viewer::DisplayView ( const Standard_Integer  id) const

◆ DrawOnView()

void Draw_Viewer::DrawOnView ( const Standard_Integer  id,
const Handle< Draw_Drawable3D > &  D 
) const

◆ FitView()

void Draw_Viewer::FitView ( const Standard_Integer  id,
const Standard_Integer  frame 
)

◆ Flush()

void Draw_Viewer::Flush ( )

◆ Focal()

Standard_Real Draw_Viewer::Focal ( const Standard_Integer  id) const

◆ GetDrawables()

const Draw_SequenceOfDrawable3D& Draw_Viewer::GetDrawables ( )

◆ GetFrame()

void Draw_Viewer::GetFrame ( const Standard_Integer  id,
Standard_Integer xmin,
Standard_Integer ymin,
Standard_Integer xmax,
Standard_Integer ymax 
)

◆ GetPan()

void Draw_Viewer::GetPan ( const Standard_Integer  id,
Standard_Integer DX,
Standard_Integer DY 
)

◆ GetPosSize()

void Draw_Viewer::GetPosSize ( const Standard_Integer  id,
Standard_Integer X,
Standard_Integer Y,
Standard_Integer W,
Standard_Integer H 
)

◆ GetTrsf()

void Draw_Viewer::GetTrsf ( const Standard_Integer  id,
gp_Trsf T 
) const

◆ GetType()

char* Draw_Viewer::GetType ( const Standard_Integer  id) const

◆ HasView()

Standard_Boolean Draw_Viewer::HasView ( const Standard_Integer  id) const

◆ HideView()

void Draw_Viewer::HideView ( const Standard_Integer  id) const

◆ HighlightOnView()

void Draw_Viewer::HighlightOnView ( const Standard_Integer  id,
const Handle< Draw_Drawable3D > &  D,
const Draw_ColorKind  C = Draw_blanc 
) const

◆ Is3D()

Standard_Boolean Draw_Viewer::Is3D ( const Standard_Integer  id) const

◆ LastPick()

void Draw_Viewer::LastPick ( gp_Pnt P1,
gp_Pnt P2,
Standard_Real Param 
)

◆ MakeDisplay()

Draw_Display Draw_Viewer::MakeDisplay ( const Standard_Integer  id) const

◆ MakeView() [1/2]

void Draw_Viewer::MakeView ( const Standard_Integer  id,
const char *  typ,
const Standard_Integer  X,
const Standard_Integer  Y,
const Standard_Integer  W,
const Standard_Integer  H 
)

◆ MakeView() [2/2]

void Draw_Viewer::MakeView ( const Standard_Integer  id,
const char *  typ,
const char *  window 
)

◆ operator<<()

Draw_Viewer& Draw_Viewer::operator<< ( const Handle< Draw_Drawable3D > &  )

◆ PanView()

void Draw_Viewer::PanView ( const Standard_Integer  id,
const Standard_Integer  DX,
const Standard_Integer  DY 
)

◆ Pick()

Standard_Integer Draw_Viewer::Pick ( const Standard_Integer  id,
const Standard_Integer  X,
const Standard_Integer  Y,
const Standard_Integer  Prec,
Handle< Draw_Drawable3D > &  D,
const Standard_Integer  First = 0 
) const

◆ PostColor()

void Draw_Viewer::PostColor ( const Standard_Integer  icol,
const Standard_Integer  width,
const Standard_Real  gray 
)

◆ PostScriptView()

void Draw_Viewer::PostScriptView ( const Standard_Integer  id,
const Standard_Integer  VXmin,
const Standard_Integer  VYmin,
const Standard_Integer  VXmax,
const Standard_Integer  VYmax,
const Standard_Integer  PXmin,
const Standard_Integer  PYmin,
const Standard_Integer  PXmax,
const Standard_Integer  PYmax,
ostream &  sortie 
) const

◆ RemoveDrawable()

void Draw_Viewer::RemoveDrawable ( const Handle< Draw_Drawable3D > &  D)

◆ RemoveView()

void Draw_Viewer::RemoveView ( const Standard_Integer  id)

◆ Repaint2D()

void Draw_Viewer::Repaint2D ( ) const

◆ Repaint3D()

void Draw_Viewer::Repaint3D ( ) const

◆ RepaintAll()

void Draw_Viewer::RepaintAll ( ) const

◆ RepaintView()

void Draw_Viewer::RepaintView ( const Standard_Integer  id) const

◆ ResetView()

void Draw_Viewer::ResetView ( const Standard_Integer  id)

◆ RotateView() [1/2]

void Draw_Viewer::RotateView ( const Standard_Integer  id,
const gp_Dir2d ,
const Standard_Real   
)

◆ RotateView() [2/2]

void Draw_Viewer::RotateView ( const Standard_Integer  id,
const gp_Pnt ,
const gp_Dir ,
const Standard_Real   
)

◆ SaveView()

Standard_Boolean Draw_Viewer::SaveView ( const Standard_Integer  id,
const char *  filename 
)

◆ Select()

void Draw_Viewer::Select ( Standard_Integer id,
Standard_Integer X,
Standard_Integer Y,
Standard_Integer Button,
Standard_Boolean  waitclick = Standard_True 
)

◆ SetFocal()

void Draw_Viewer::SetFocal ( const Standard_Integer  id,
const Standard_Real  FocalDist 
)

◆ SetPan()

void Draw_Viewer::SetPan ( const Standard_Integer  id,
const Standard_Integer  DX,
const Standard_Integer  DY 
)

◆ SetTitle()

void Draw_Viewer::SetTitle ( const Standard_Integer  id,
const char *  name 
)

◆ SetTrsf()

void Draw_Viewer::SetTrsf ( const Standard_Integer  id,
gp_Trsf T 
)

◆ SetZoom()

void Draw_Viewer::SetZoom ( const Standard_Integer  id,
const Standard_Real  z 
)

◆ Zoom()

Standard_Real Draw_Viewer::Zoom ( const Standard_Integer  id) const

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