Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
DDocStd Class Reference

This package provides Draw services to test CAF standard documents (see TDocStd package) More...

#include <DDocStd.hxx>

Static Public Member Functions

static const occ::handle< TDocStd_Application > & GetApplication ()
 Returns the global instance of application.
static bool GetDocument (const char *&Name, occ::handle< TDocStd_Document > &Doc, const bool Complain=true)
static bool Find (const occ::handle< TDocStd_Document > &Document, const char *const Entry, TDF_Label &Label, const bool Complain=true)
static bool Find (const occ::handle< TDocStd_Document > &Document, const char *const Entry, const Standard_GUID &ID, occ::handle< TDF_Attribute > &A, const bool Complain=true)
template<class T>
static bool Find (const occ::handle< TDocStd_Document > &Document, const char *const Entry, const Standard_GUID &ID, occ::handle< T > &A, const bool Complain=true)
 Safe variant for arbitrary type of argument.
static Draw_Interpretor & ReturnLabel (Draw_Interpretor &theCommands, const TDF_Label &L)
static void AllCommands (Draw_Interpretor &theCommands)
static void ApplicationCommands (Draw_Interpretor &theCommands)
 NewDocument, Open, SaveAs, Save.
static void DocumentCommands (Draw_Interpretor &theCommands)
 Undo, Redo, SetModified, Propagate.
static void ToolsCommands (Draw_Interpretor &theCommands)
 Modified, Update.
static void MTMCommands (Draw_Interpretor &theCommands)
 Create, Add, Remove, Open, Commit, Undo, Redo, SetNestedMode.
static void ShapeSchemaCommands (Draw_Interpretor &theCommands)
 ShapeSchema_Read.

Detailed Description

This package provides Draw services to test CAF standard documents (see TDocStd package)

It provides :

  • Modification registration and Update management.
  • External references mechanism
  • UNDO/REDO
  • Document Creation, Save and Restore

Member Function Documentation

◆ AllCommands()

void DDocStd::AllCommands ( Draw_Interpretor & theCommands)
static

◆ ApplicationCommands()

void DDocStd::ApplicationCommands ( Draw_Interpretor & theCommands)
static

NewDocument, Open, SaveAs, Save.

◆ DocumentCommands()

void DDocStd::DocumentCommands ( Draw_Interpretor & theCommands)
static

Undo, Redo, SetModified, Propagate.

◆ Find() [1/3]

template<class T>
bool DDocStd::Find ( const occ::handle< TDocStd_Document > & Document,
const char *const Entry,
const Standard_GUID & ID,
occ::handle< T > & A,
const bool Complain = true )
inlinestatic

Safe variant for arbitrary type of argument.

◆ Find() [2/3]

bool DDocStd::Find ( const occ::handle< TDocStd_Document > & Document,
const char *const Entry,
const Standard_GUID & ID,
occ::handle< TDF_Attribute > & A,
const bool Complain = true )
static

◆ Find() [3/3]

bool DDocStd::Find ( const occ::handle< TDocStd_Document > & Document,
const char *const Entry,
TDF_Label & Label,
const bool Complain = true )
static

◆ GetApplication()

const occ::handle< TDocStd_Application > & DDocStd::GetApplication ( )
static

Returns the global instance of application.

◆ GetDocument()

bool DDocStd::GetDocument ( const char *& Name,
occ::handle< TDocStd_Document > & Doc,
const bool Complain = true )
static

◆ MTMCommands()

void DDocStd::MTMCommands ( Draw_Interpretor & theCommands)
static

Create, Add, Remove, Open, Commit, Undo, Redo, SetNestedMode.

◆ ReturnLabel()

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

◆ ShapeSchemaCommands()

void DDocStd::ShapeSchemaCommands ( Draw_Interpretor & theCommands)
static

ShapeSchema_Read.

◆ ToolsCommands()

void DDocStd::ToolsCommands ( Draw_Interpretor & theCommands)
static

Modified, Update.


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