Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Draw_Viewer Class Reference

#include <Draw_Viewer.hxx>

Public Member Functions

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

Constructor & Destructor Documentation

◆ Draw_Viewer()

Draw_Viewer::Draw_Viewer ( )

◆ ~Draw_Viewer()

Draw_Viewer::~Draw_Viewer ( )

Member Function Documentation

◆ AddDrawable()

void Draw_Viewer::AddDrawable ( const occ::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 int id) const

◆ ConfigView()

void Draw_Viewer::ConfigView ( const int id) const

◆ DefineColor()

bool Draw_Viewer::DefineColor ( const int i,
const char * colname )

◆ DeleteView()

void Draw_Viewer::DeleteView ( const int id)

◆ DisplayView()

void Draw_Viewer::DisplayView ( const int id) const

◆ DrawOnView()

void Draw_Viewer::DrawOnView ( const int id,
const occ::handle< Draw_Drawable3D > & D ) const

◆ FitView()

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

◆ Flush()

void Draw_Viewer::Flush ( )

◆ Focal()

double Draw_Viewer::Focal ( const int id) const

◆ GetDrawables()

const NCollection_Sequence< occ::handle< Draw_Drawable3D > > & Draw_Viewer::GetDrawables ( )

◆ GetFrame()

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

◆ GetPan()

void Draw_Viewer::GetPan ( const int id,
int & DX,
int & DY )

◆ GetPosSize()

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

◆ GetTrsf()

void Draw_Viewer::GetTrsf ( const int id,
gp_Trsf & T ) const

◆ GetType()

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

◆ HasView()

bool Draw_Viewer::HasView ( const int id) const

◆ HideView()

void Draw_Viewer::HideView ( const int id) const

◆ HighlightOnView()

void Draw_Viewer::HighlightOnView ( const int id,
const occ::handle< Draw_Drawable3D > & D,
const Draw_ColorKind C = Draw_blanc ) const

◆ Is3D()

bool Draw_Viewer::Is3D ( const int id) const

◆ LastPick()

void Draw_Viewer::LastPick ( gp_Pnt & P1,
gp_Pnt & P2,
double & Param )

◆ MakeDisplay()

Draw_Display Draw_Viewer::MakeDisplay ( const int id) const

◆ MakeView() [1/2]

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

◆ MakeView() [2/2]

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

◆ operator<<()

Draw_Viewer & Draw_Viewer::operator<< ( const occ::handle< Draw_Drawable3D > & )

◆ PanView()

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

◆ Pick()

int Draw_Viewer::Pick ( const int id,
const int X,
const int Y,
const int Prec,
occ::handle< Draw_Drawable3D > & D,
const int First = 0 ) const

◆ PostColor()

void Draw_Viewer::PostColor ( const int icol,
const int width,
const double gray )

◆ PostScriptView()

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

◆ RemoveDrawable()

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

◆ RemoveView()

void Draw_Viewer::RemoveView ( const int 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 int id) const

◆ ResetView()

void Draw_Viewer::ResetView ( const int id)

◆ RotateView() [1/2]

void Draw_Viewer::RotateView ( const int id,
const gp_Dir2d & ,
const double  )

◆ RotateView() [2/2]

void Draw_Viewer::RotateView ( const int id,
const gp_Pnt & ,
const gp_Dir & ,
const double  )

◆ SaveView()

bool Draw_Viewer::SaveView ( const int id,
const char * filename )

◆ Select()

void Draw_Viewer::Select ( int & id,
int & X,
int & Y,
int & Button,
bool waitclick = true )

◆ SetFocal()

void Draw_Viewer::SetFocal ( const int id,
const double FocalDist )

◆ SetPan()

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

◆ SetTitle()

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

◆ SetTrsf()

void Draw_Viewer::SetTrsf ( const int id,
gp_Trsf & T )

◆ SetZoom()

void Draw_Viewer::SetZoom ( const int id,
const double z )

◆ Zoom()

double Draw_Viewer::Zoom ( const int id) const

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