Open CASCADE Technology  7.1.0.beta
Public Member Functions
Draw_View Class Reference

#include <Draw_View.hxx>

Inheritance diagram for Draw_View:
Inheritance graph
[legend]

Public Member Functions

 Draw_View (Standard_Integer theId, Draw_Viewer *theViewer, Standard_Integer theX, Standard_Integer theY, Standard_Integer theWidth, Standard_Integer theHeight)
 Constructor. More...
 
 Draw_View (Standard_Integer theId, Draw_Viewer *theViewer, const char *theTitle)
 Constructor. More...
 
 ~Draw_View ()
 Destructor. More...
 
void SetDx (const Standard_Integer theDx)
 Sets horizontal offset. More...
 
void SetDy (const Standard_Integer theDy)
 Sets vertical offset. More...
 
void SetZoom (const Standard_Real theZoom)
 Sets parameter of zoom. More...
 
void SetMatrix (const gp_Trsf &theMatrix)
 Sets view matrix. More...
 
void SetFocalDistance (const Standard_Real theDistance)
 Sets focal distance. More...
 
Standard_Integer GetDx () const
 Gets horizontal offset. More...
 
Standard_Integer GetDy () const
 Gets vertical offset. More...
 
Standard_Real GetZoom () const
 Gets parameter of zoom. More...
 
const gp_TrsfGetMatrix () const
 Gets matrix of view. More...
 
Standard_Real GetFocalDistance () const
 Gets focal distance. More...
 
public inline methods
const char * Type ()
 Returns type of view. More...
 
Standard_Boolean Is2D () const
 Returns true value if current view in 2D mode. More...
 
Standard_Real IsPerspective () const
 Returns true value if current view in perspective mode. More...
 
- Public Member Functions inherited from Draw_Window
 Draw_Window ()
 
 Draw_Window (const char *title, Standard_Integer X, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
 Draw_Window (Window mother)
 
 Draw_Window (Window mother, char *title, Standard_Integer X=0, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
 Draw_Window (const char *window)
 
void Init (Standard_Integer X=0, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
void Init (Window mother, Standard_Integer X=0, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
void StopWinManager ()
 
void SetPosition (Standard_Integer NewXpos, Standard_Integer NewYpos)
 
void SetDimension (Standard_Integer NewDx, Standard_Integer NewDy)
 
void GetPosition (Standard_Integer &PosX, Standard_Integer &PosY)
 
Standard_Integer HeightWin () const
 
Standard_Integer WidthWin () const
 
void SetTitle (const char *title)
 
char * GetTitle ()
 
void DisplayWindow ()
 
void Hide ()
 
void Destroy ()
 
void Clear ()
 
void Wait (Standard_Boolean wait=Standard_True)
 
Drawable GetDrawable () const
 
void InitBuffer ()
 
void SetColor (int)
 
void SetMode (int)
 
void DrawString (int, int, char *)
 
void DrawSegments (Segment *, int)
 
void Redraw ()
 
Standard_Boolean Save (const char *theFileName) const
 
virtual ~Draw_Window ()
 
virtual void WButtonPress (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer &button)
 
virtual void WButtonRelease (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer &button)
 
virtual void WMotionNotify (const Standard_Integer X, const Standard_Integer Y)
 
virtual void WConfigureNotify (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer dx, const Standard_Integer dy)
 
virtual void WUnmapNotify ()
 

view API

Standard_Integer myId
 Initialize view by the type. More...
 
Draw_ViewermyViewer
 Initialize view by the type. More...
 
char myType [5]
 Initialize view by the type. More...
 
Standard_Boolean myIsPers
 Initialize view by the type. More...
 
Standard_Boolean myIs2D
 Initialize view by the type. More...
 
Standard_Real myFocalDistance
 Initialize view by the type. More...
 
Standard_Real myZoom
 Initialize view by the type. More...
 
gp_Trsf myMatrix
 Initialize view by the type. More...
 
Standard_Integer myDx
 Initialize view by the type. More...
 
Standard_Integer myDy
 Initialize view by the type. More...
 
Standard_Integer myFrameX0
 Initialize view by the type. More...
 
Standard_Integer myFrameY0
 Initialize view by the type. More...
 
Standard_Integer myFrameX1
 Initialize view by the type. More...
 
Standard_Integer myFrameY1
 Initialize view by the type. More...
 
Standard_Boolean Init (const char *theType)
 Initialize view by the type. More...
 
void Transform (const gp_Trsf &theTransformation)
 Transformates view matrix. More...
 
void ResetFrame ()
 Resets frame of current view. More...
 
void GetFrame (Standard_Integer &theX0, Standard_Integer &theY0, Standard_Integer &theX1, Standard_Integer &theY1)
 Returns parameters of frame corners. More...
 
void WExpose ()
 Perform window exposing. More...
 

Additional Inherited Members

- Public Types inherited from Draw_Window
typedef void(* FCallbackBeforeTerminate) ()
 
- Static Public Member Functions inherited from Draw_Window
static void AddCallbackBeforeTerminate (FCallbackBeforeTerminate theCB)
 
static void RemoveCallbackBeforeTerminate (FCallbackBeforeTerminate theCB)
 
static Standard_Boolean DefineColor (const Standard_Integer, const char *)
 
static void Flush ()
 
- Data Fields inherited from Draw_Window
Base_Window & base
 
Window win
 
Window myMother
 
Pixmap myBuffer
 
Draw_Windownext
 
Draw_Windowprevious
 
Standard_Boolean myUseBuffer
 
Standard_Boolean withWindowManager
 
- Static Public Attributes inherited from Draw_Window
static Draw_WindowfirstWindow
 

Constructor & Destructor Documentation

Draw_View::Draw_View ( Standard_Integer  theId,
Draw_Viewer theViewer,
Standard_Integer  theX,
Standard_Integer  theY,
Standard_Integer  theWidth,
Standard_Integer  theHeight 
)

Constructor.

Draw_View::Draw_View ( Standard_Integer  theId,
Draw_Viewer theViewer,
const char *  theTitle 
)

Constructor.

Draw_View::~Draw_View ( )

Destructor.

Member Function Documentation

Standard_Integer Draw_View::GetDx ( ) const
inline

Gets horizontal offset.

Standard_Integer Draw_View::GetDy ( ) const
inline

Gets vertical offset.

Standard_Real Draw_View::GetFocalDistance ( ) const
inline

Gets focal distance.

void Draw_View::GetFrame ( Standard_Integer theX0,
Standard_Integer theY0,
Standard_Integer theX1,
Standard_Integer theY1 
)

Returns parameters of frame corners.

const gp_Trsf& Draw_View::GetMatrix ( ) const
inline

Gets matrix of view.

Standard_Real Draw_View::GetZoom ( ) const
inline

Gets parameter of zoom.

Standard_Boolean Draw_View::Init ( const char *  theType)

Initialize view by the type.

Standard_Boolean Draw_View::Is2D ( ) const
inline

Returns true value if current view in 2D mode.

Standard_Real Draw_View::IsPerspective ( ) const
inline

Returns true value if current view in perspective mode.

void Draw_View::ResetFrame ( )

Resets frame of current view.

void Draw_View::SetDx ( const Standard_Integer  theDx)
inline

Sets horizontal offset.

void Draw_View::SetDy ( const Standard_Integer  theDy)
inline

Sets vertical offset.

void Draw_View::SetFocalDistance ( const Standard_Real  theDistance)
inline

Sets focal distance.

void Draw_View::SetMatrix ( const gp_Trsf theMatrix)
inline

Sets view matrix.

void Draw_View::SetZoom ( const Standard_Real  theZoom)
inline

Sets parameter of zoom.

void Draw_View::Transform ( const gp_Trsf theTransformation)

Transformates view matrix.

const char* Draw_View::Type ( )
inline

Returns type of view.

void Draw_View::WExpose ( )
virtual

Perform window exposing.

Reimplemented from Draw_Window.

Field Documentation

Standard_Integer Draw_View::myDx
protected

Initialize view by the type.

Standard_Integer Draw_View::myDy
protected

Initialize view by the type.

Standard_Real Draw_View::myFocalDistance
protected

Initialize view by the type.

Standard_Integer Draw_View::myFrameX0
protected

Initialize view by the type.

Standard_Integer Draw_View::myFrameX1
protected

Initialize view by the type.

Standard_Integer Draw_View::myFrameY0
protected

Initialize view by the type.

Standard_Integer Draw_View::myFrameY1
protected

Initialize view by the type.

Standard_Integer Draw_View::myId
protected

Initialize view by the type.

Standard_Boolean Draw_View::myIs2D
protected

Initialize view by the type.

Standard_Boolean Draw_View::myIsPers
protected

Initialize view by the type.

gp_Trsf Draw_View::myMatrix
protected

Initialize view by the type.

char Draw_View::myType[5]
protected

Initialize view by the type.

Draw_Viewer* Draw_View::myViewer
protected

Initialize view by the type.

Standard_Real Draw_View::myZoom
protected

Initialize view by the type.


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