OCC Main Page | Draw | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Draw
TKDraw
Draw


Draw_Viewer Class Reference

#include <Draw_Viewer.hxx>


Public Member Functions

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

Private Attributes

Draw_View * myViews [MAXVIEW]
Draw_SequenceOfDrawable3D myDrawables


Constructor & Destructor Documentation

__Draw_API Draw_Viewer::Draw_Viewer  ) 
 

__Draw_API Draw_Viewer::~Draw_Viewer  ) 
 


Member Function Documentation

__Draw_API void Draw_Viewer::AddDrawable const Handle(Draw_Drawable3D)&  D  ) 
 

__Draw_API void Draw_Viewer::Clear  ) 
 

__Draw_API void Draw_Viewer::Clear2D  ) 
 

__Draw_API void Draw_Viewer::Clear3D  ) 
 

__Draw_API void Draw_Viewer::ClearView const Standard_Integer  id  )  const
 

__Draw_API void Draw_Viewer::ConfigView const Standard_Integer  id  )  const
 

__Draw_API Standard_Boolean Draw_Viewer::DefineColor const Standard_Integer  i,
const char *  colname
 

__Draw_API void Draw_Viewer::DeleteView const Standard_Integer  id  ) 
 

__Draw_API void Draw_Viewer::DisplayView const Standard_Integer  id  )  const
 

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

__Draw_API void Draw_Viewer::FitView const Standard_Integer  id,
const Standard_Integer  frame
 

__Draw_API void Draw_Viewer::Flush  ) 
 

__Draw_API Standard_Real Draw_Viewer::Focal const Standard_Integer  id  )  const
 

__Draw_API const Draw_SequenceOfDrawable3D& Draw_Viewer::GetDrawables  ) 
 

__Draw_API void Draw_Viewer::GetFrame const Standard_Integer  id,
Standard_Integer &  xmin,
Standard_Integer &  ymin,
Standard_Integer &  xmax,
Standard_Integer &  ymax
 

__Draw_API void Draw_Viewer::GetPan const Standard_Integer  id,
Standard_Integer &  DX,
Standard_Integer &  DY
 

__Draw_API void Draw_Viewer::GetPosSize const Standard_Integer  id,
Standard_Integer &  X,
Standard_Integer &  Y,
Standard_Integer &  W,
Standard_Integer &  H
 

__Draw_API void Draw_Viewer::GetTrsf const Standard_Integer  id,
gp_Trsf &  T
const
 

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

__Draw_API unsigned long Draw_Viewer::GetWindow const Standard_Integer  id  )  const
 

__Draw_API Standard_Boolean Draw_Viewer::HasView const Standard_Integer  id  )  const
 

__Draw_API void Draw_Viewer::HideView const Standard_Integer  id  )  const
 

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

__Draw_API Standard_Boolean Draw_Viewer::Is3D const Standard_Integer  id  )  const
 

__Draw_API void Draw_Viewer::LastPick gp_Pnt &  P1,
gp_Pnt &  P2,
Standard_Real &  Param
 

__Draw_API Draw_Display Draw_Viewer::MakeDisplay const Standard_Integer  id  )  const
 

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

__Draw_API 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
 

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

__Draw_API void Draw_Viewer::PanView const Standard_Integer  id,
const Standard_Integer  DX,
const Standard_Integer  DY
 

__Draw_API 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
 

__Draw_API void Draw_Viewer::PostColor const Standard_Integer  icol,
const Standard_Integer  width,
const Standard_Real  gray
 

__Draw_API 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
 

__Draw_API void Draw_Viewer::RemoveDrawable const Handle(Draw_Drawable3D)&  D  ) 
 

__Draw_API void Draw_Viewer::RemoveView const Standard_Integer  id  ) 
 

__Draw_API void Draw_Viewer::Repaint2D  )  const
 

__Draw_API void Draw_Viewer::Repaint3D  )  const
 

__Draw_API void Draw_Viewer::RepaintAll  )  const
 

__Draw_API void Draw_Viewer::RepaintView const Standard_Integer  id  )  const
 

__Draw_API void Draw_Viewer::ResetView const Standard_Integer  id  ) 
 

__Draw_API void Draw_Viewer::RotateView const Standard_Integer  id,
const gp_Pnt &  ,
const gp_Dir &  ,
const   Standard_Real
 

__Draw_API void Draw_Viewer::RotateView const Standard_Integer  id,
const gp_Dir2d &  ,
const   Standard_Real
 

__Draw_API Standard_Boolean Draw_Viewer::SaveView const Standard_Integer  id,
const char *  filename
 

__Draw_API void Draw_Viewer::Select Standard_Integer &  id,
Standard_Integer &  X,
Standard_Integer &  Y,
Standard_Integer &  Button,
Standard_Boolean  waitclick = Standard_True
 

__Draw_API void Draw_Viewer::SetFocal const Standard_Integer  id,
const Standard_Real  FocalDist
 

__Draw_API void Draw_Viewer::SetPan const Standard_Integer  id,
const Standard_Integer  DX,
const Standard_Integer  DY
 

__Draw_API void Draw_Viewer::SetTitle const Standard_Integer  id,
const char *  name
 

__Draw_API void Draw_Viewer::SetTrsf const Standard_Integer  id,
gp_Trsf &  T
 

__Draw_API void Draw_Viewer::SetZoom const Standard_Integer  id,
const Standard_Real  z
 

__Draw_API Standard_Real Draw_Viewer::Zoom const Standard_Integer  id  )  const
 


Field Documentation

Draw_SequenceOfDrawable3D Draw_Viewer::myDrawables [private]
 

Draw_View* Draw_Viewer::myViews[MAXVIEW] [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 14:51:10 2008 for OpenCASCADE by  doxygen 1.4.1