Open CASCADE Technology  7.4.0
Static Public Member Functions | Static Protected 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 &theName)
 Returns a variable value. The name "." does a graphic selection; in this case theName will be is overwritten with the name of the variable. More...
 
static Handle< Draw_Drawable3DGetExisting (const Standard_CString &theName)
 Returns a variable value. 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 bool ParseReal (const Standard_CString theExpressionString, Standard_Real &theParsedRealValue)
 Converts the numeric expression, that can involve DRAW variables, to a 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 bool ParseInteger (const Standard_CString theExpressionString, Standard_Integer &theParsedIntegerValue)
 Converts the numeric expression, that can involve DRAW variables, to an integer value. 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...
 

Static Protected Member Functions

static Handle< Draw_Drawable3DgetDrawable (Standard_CString &theName, Standard_Boolean theToAllowPick)
 Returns a variable value. 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 theName)
inlinestatic

Returns a variable value. The name "." does a graphic selection; in this case theName will be 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.

◆ getDrawable()

static Handle< Draw_Drawable3D > Draw::getDrawable ( Standard_CString theName,
Standard_Boolean  theToAllowPick 
)
staticprotected

Returns a variable value.

Parameters
theName[in] [out] variable name, or "." to activate picking
theToAllowPick[in] when TRUE, "." name will activate picking

◆ GetExisting()

static Handle< Draw_Drawable3D > Draw::GetExisting ( const Standard_CString theName)
inlinestatic

Returns a variable value.

◆ 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

◆ ParseInteger()

static bool Draw::ParseInteger ( const Standard_CString  theExpressionString,
Standard_Integer theParsedIntegerValue 
)
static

Converts the numeric expression, that can involve DRAW variables, to an integer value.

Parameters
theExpressionStringthe strings that containes the expression involving DRAW variables to be parsed
theParsedIntegerValuean integer value that is a result of parsing
Returns
true if parsing was successfull, or false otherwise

◆ ParseReal()

static bool Draw::ParseReal ( const Standard_CString  theExpressionString,
Standard_Real theParsedRealValue 
)
static

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

Parameters
theExpressionStringthe strings that containes the expression involving DRAW variables to be parsed
theParsedRealValuea real value that is a result of parsing
Returns
true if parsing was successfull, or false otherwise

◆ 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: