Open CASCADE Technology  7.2.0
Static Public Member Functions
Draw Class Reference

MAQUETTE DESSIN MODELISATION. More...

#include <Draw.hxx>

Static Public Member Functions

static void Load (Draw_Interpretor &theDI, const TCollection_AsciiString &theKey, const TCollection_AsciiString &theResourceFileName, TCollection_AsciiString &theDefaultsDirectory, TCollection_AsciiString &theUserDefaultsDirectory, const Standard_Boolean Verbose=Standard_False)
 
static void Set (const Standard_CString Name, const Handle< Draw_Drawable3D > &D, const Standard_Boolean Disp)
 Sets a variable. Display it if <Disp> is true. More...
 
static void Set (const Standard_CString Name, const Handle< Draw_Drawable3D > &D)
 Sets a variable, a null handle clear the vartiable. Automatic display is context driven. More...
 
static void Set (const Standard_CString Name, const Standard_Real val)
 Sets a numeric variable. More...
 
static Draw_InterpretorGetInterpretor ()
 Returns main DRAW interpretor. More...
 
static Handle< Draw_Drawable3DGet (Standard_CString &Name, const Standard_Boolean Complain=Standard_True)
 Returns a variable value. Null if the variable does not exist, a warning is printed if Complain is True. More...
 
static Standard_Boolean Get (const Standard_CString Name, Standard_Real &val)
 Gets a numeric variable. Returns True if the variable exist. More...
 
static void Set (const Standard_CString Name, const Standard_CString val)
 Sets a TCL sting variable. More...
 
static Standard_Real Atof (const Standard_CString Name)
 Converts numeric expression, that can involve DRAW variables, to real value. More...
 
static Standard_Integer Atoi (const Standard_CString Name)
 Converts numeric expression, that can involve DRAW variables, to integer value. Implemented as cast of Atof() to integer. More...
 
static void LastPick (Standard_Integer &view, Standard_Integer &X, Standard_Integer &Y, Standard_Integer &button)
 Returns last graphic selection description. More...
 
static void Repaint ()
 Asks to repaint the screen after the current command. More...
 
static void SetProgressBar (const Handle< Draw_ProgressIndicator > &thePI)
 sets progress indicator More...
 
static Handle< Draw_ProgressIndicatorGetProgressBar ()
 gets progress indicator More...
 
static void Commands (Draw_Interpretor &I)
 Defines all Draw commands. More...
 
static void BasicCommands (Draw_Interpretor &I)
 Defines Draw basic commands. More...
 
static void VariableCommands (Draw_Interpretor &I)
 Defines Draw variables handling commands. More...
 
static void GraphicCommands (Draw_Interpretor &I)
 Defines Draw variables handling commands. More...
 
static void PloadCommands (Draw_Interpretor &I)
 Defines Loads Draw plugins commands. More...
 
static void UnitCommands (Draw_Interpretor &I)
 Defines Draw unit commands. More...
 

Detailed Description

MAQUETTE DESSIN MODELISATION.

Member Function Documentation

◆ Atof()

static Standard_Real Draw::Atof ( const Standard_CString  Name)
static

Converts numeric expression, that can involve DRAW variables, to real value.

◆ Atoi()

static Standard_Integer Draw::Atoi ( const Standard_CString  Name)
static

Converts numeric expression, that can involve DRAW variables, to integer value. Implemented as cast of Atof() to integer.

◆ BasicCommands()

static void Draw::BasicCommands ( Draw_Interpretor I)
static

Defines Draw basic commands.

◆ Commands()

static void Draw::Commands ( Draw_Interpretor I)
static

Defines all Draw commands.

◆ Get() [1/2]

static Handle< Draw_Drawable3D > Draw::Get ( Standard_CString Name,
const Standard_Boolean  Complain = Standard_True 
)
static

Returns a variable value. Null if the variable does not exist, a warning is printed if Complain is True.

The name "." does a graphic selection. If the selection is a variable <Name> is overwritten with the name of the variable.

◆ Get() [2/2]

static Standard_Boolean Draw::Get ( const Standard_CString  Name,
Standard_Real val 
)
static

Gets a numeric variable. Returns True if the variable exist.

◆ GetInterpretor()

static Draw_Interpretor& Draw::GetInterpretor ( )
static

Returns main DRAW interpretor.

◆ GetProgressBar()

static Handle< Draw_ProgressIndicator > Draw::GetProgressBar ( )
static

gets progress indicator

◆ GraphicCommands()

static void Draw::GraphicCommands ( Draw_Interpretor I)
static

Defines Draw variables handling commands.

◆ LastPick()

static void Draw::LastPick ( Standard_Integer view,
Standard_Integer X,
Standard_Integer Y,
Standard_Integer button 
)
static

Returns last graphic selection description.

◆ Load()

static void Draw::Load ( Draw_Interpretor theDI,
const TCollection_AsciiString theKey,
const TCollection_AsciiString theResourceFileName,
TCollection_AsciiString theDefaultsDirectory,
TCollection_AsciiString theUserDefaultsDirectory,
const Standard_Boolean  Verbose = Standard_False 
)
static

◆ PloadCommands()

static void Draw::PloadCommands ( Draw_Interpretor I)
static

Defines Loads Draw plugins commands.

◆ Repaint()

static void Draw::Repaint ( )
static

Asks to repaint the screen after the current command.

◆ Set() [1/4]

static void Draw::Set ( const Standard_CString  Name,
const Handle< Draw_Drawable3D > &  D,
const Standard_Boolean  Disp 
)
static

Sets a variable. Display it if <Disp> is true.

◆ Set() [2/4]

static void Draw::Set ( const Standard_CString  Name,
const Handle< Draw_Drawable3D > &  D 
)
static

Sets a variable, a null handle clear the vartiable. Automatic display is context driven.

◆ Set() [3/4]

static void Draw::Set ( const Standard_CString  Name,
const Standard_Real  val 
)
static

Sets a numeric variable.

◆ Set() [4/4]

static void Draw::Set ( const Standard_CString  Name,
const Standard_CString  val 
)
static

Sets a TCL sting variable.

◆ SetProgressBar()

static void Draw::SetProgressBar ( const Handle< Draw_ProgressIndicator > &  thePI)
static

sets progress indicator

◆ UnitCommands()

static void Draw::UnitCommands ( Draw_Interpretor I)
static

Defines Draw unit commands.

◆ VariableCommands()

static void Draw::VariableCommands ( Draw_Interpretor I)
static

Defines Draw variables handling commands.


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