Open CASCADE Technology 7.8.2.dev
DDF Class Reference

Provides facilities to manipulate data framework in a Draw-Commands environment. More...

#include <DDF.hxx>

Static Public Member Functions

static Standard_Boolean GetDF (Standard_CString &Name, Handle< TDF_Data > &DF, const Standard_Boolean Complain=Standard_True)
 Search in draw directory the framewok identified by its name <Name>. returns True if found. In that case <DF> is set.
 
static Standard_Boolean FindLabel (const Handle< TDF_Data > &DF, const Standard_CString Entry, TDF_Label &Label, const Standard_Boolean Complain=Standard_True)
 Search in <DF> the label identified by its entry <Entry>. returns <True> if found. In that case <Label> is set.
 
static Standard_Boolean AddLabel (const Handle< TDF_Data > &DF, const Standard_CString Entry, TDF_Label &Label)
 Search in <DF> the label identified by its entry <Entry>. if label doesn't exist, create and add the Label in <DF>. In that case return True.
 
static Standard_Boolean Find (const Handle< TDF_Data > &DF, const Standard_CString Entry, const Standard_GUID &ID, Handle< TDF_Attribute > &A, const Standard_Boolean Complain=Standard_True)
 Search in <DF> the attribute identified by its <ID> and its <entry>. returns <True> if found. In that case A is set.
 
template<class T >
static Standard_Boolean Find (const Handle< TDF_Data > &DF, const Standard_CString Entry, const Standard_GUID &ID, Handle< T > &A, const Standard_Boolean Complain=Standard_True)
 Safe variant for arbitrary type of argument.
 
static Draw_InterpretorReturnLabel (Draw_Interpretor &theCommands, const TDF_Label &L)
 
static void AllCommands (Draw_Interpretor &theCommands)
 
static void BasicCommands (Draw_Interpretor &theCommands)
 Basic commands.
 
static void DataCommands (Draw_Interpretor &theCommands)
 Data framework commands create, clear & copy.
 
static void TransactionCommands (Draw_Interpretor &theCommands)
 open commit abort a transaction undo facilities.
 
static void BrowserCommands (Draw_Interpretor &theCommands)
 Browser commands .
 

Detailed Description

Provides facilities to manipulate data framework in a Draw-Commands environment.

Member Function Documentation

◆ AddLabel()

static Standard_Boolean DDF::AddLabel ( const Handle< TDF_Data > & DF,
const Standard_CString Entry,
TDF_Label & Label )
static

Search in <DF> the label identified by its entry <Entry>. if label doesn't exist, create and add the Label in <DF>. In that case return True.

◆ AllCommands()

static void DDF::AllCommands ( Draw_Interpretor & theCommands)
static

◆ BasicCommands()

static void DDF::BasicCommands ( Draw_Interpretor & theCommands)
static

Basic commands.

◆ BrowserCommands()

static void DDF::BrowserCommands ( Draw_Interpretor & theCommands)
static

Browser commands .

◆ DataCommands()

static void DDF::DataCommands ( Draw_Interpretor & theCommands)
static

Data framework commands create, clear & copy.

◆ Find() [1/2]

template<class T >
static Standard_Boolean DDF::Find ( const Handle< TDF_Data > & DF,
const Standard_CString Entry,
const Standard_GUID & ID,
Handle< T > & A,
const Standard_Boolean Complain = Standard_True )
inlinestatic

Safe variant for arbitrary type of argument.

◆ Find() [2/2]

static Standard_Boolean DDF::Find ( const Handle< TDF_Data > & DF,
const Standard_CString Entry,
const Standard_GUID & ID,
Handle< TDF_Attribute > & A,
const Standard_Boolean Complain = Standard_True )
static

Search in <DF> the attribute identified by its <ID> and its <entry>. returns <True> if found. In that case A is set.

◆ FindLabel()

static Standard_Boolean DDF::FindLabel ( const Handle< TDF_Data > & DF,
const Standard_CString Entry,
TDF_Label & Label,
const Standard_Boolean Complain = Standard_True )
static

Search in <DF> the label identified by its entry <Entry>. returns <True> if found. In that case <Label> is set.

◆ GetDF()

static Standard_Boolean DDF::GetDF ( Standard_CString & Name,
Handle< TDF_Data > & DF,
const Standard_Boolean Complain = Standard_True )
static

Search in draw directory the framewok identified by its name <Name>. returns True if found. In that case <DF> is set.

◆ ReturnLabel()

static Draw_Interpretor & DDF::ReturnLabel ( Draw_Interpretor & theCommands,
const TDF_Label & L )
static

◆ TransactionCommands()

static void DDF::TransactionCommands ( Draw_Interpretor & theCommands)
static

open commit abort a transaction undo facilities.


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