File indexing completed on 2026-09-19 09:27:36
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _DDF_HeaderFile
0017 #define _DDF_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <Standard_Boolean.hxx>
0024 #include <Draw_Interpretor.hxx>
0025 class TDF_Data;
0026 class TDF_Label;
0027 class Standard_GUID;
0028 class TDF_Attribute;
0029
0030
0031
0032 class DDF
0033 {
0034 public:
0035 DEFINE_STANDARD_ALLOC
0036
0037
0038
0039
0040 Standard_EXPORT static bool GetDF(const char*& Name,
0041 occ::handle<TDF_Data>& DF,
0042 const bool Complain = true);
0043
0044
0045
0046
0047 Standard_EXPORT static bool FindLabel(const occ::handle<TDF_Data>& DF,
0048 const char* const Entry,
0049 TDF_Label& Label,
0050 const bool Complain = true);
0051
0052
0053
0054
0055 Standard_EXPORT static bool AddLabel(const occ::handle<TDF_Data>& DF,
0056 const char* const Entry,
0057 TDF_Label& Label);
0058
0059
0060
0061
0062 Standard_EXPORT static bool Find(const occ::handle<TDF_Data>& DF,
0063 const char* const Entry,
0064 const Standard_GUID& ID,
0065 occ::handle<TDF_Attribute>& A,
0066 const bool Complain = true);
0067
0068
0069 template <class T>
0070 static bool Find(const occ::handle<TDF_Data>& DF,
0071 const char* const Entry,
0072 const Standard_GUID& ID,
0073 occ::handle<T>& A,
0074 const bool Complain = true)
0075 {
0076 occ::handle<TDF_Attribute> anAttr = A;
0077 return Find(DF, Entry, ID, anAttr, Complain) && !(A = occ::down_cast<T>(anAttr)).IsNull();
0078 }
0079
0080 Standard_EXPORT static Draw_Interpretor& ReturnLabel(Draw_Interpretor& theCommands,
0081 const TDF_Label& L);
0082
0083 Standard_EXPORT static void AllCommands(Draw_Interpretor& theCommands);
0084
0085
0086 Standard_EXPORT static void BasicCommands(Draw_Interpretor& theCommands);
0087
0088
0089
0090 Standard_EXPORT static void DataCommands(Draw_Interpretor& theCommands);
0091
0092
0093
0094 Standard_EXPORT static void TransactionCommands(Draw_Interpretor& theCommands);
0095
0096
0097 Standard_EXPORT static void BrowserCommands(Draw_Interpretor& theCommands);
0098 };
0099
0100 #endif