- //###########################################################
- // CORBA related methods
- //###########################################################
-
- //Sets an IOR of CORBA GEOM_Object_i which refers to this object
- Standard_EXPORT void SetIOR(TCollection_AsciiString& theIOR) { _ior = theIOR; }
-
- //Returns an IOR of CORBA GEOM_Object_i which refers to this object
- Standard_EXPORT TCollection_AsciiString GetIOR() { return _ior; }
-
- //###########################################################
- //Functions methods
- //###########################################################
-
- //Adds a function with a driver GUID = theGUID and a type theFunctionType
- //to the function tree of this GEOM_Object
- Standard_EXPORT Handle(GEOM_Function) AddFunction(const Standard_GUID& theGUID,
- int theFunctionType,
- bool allowSubShape=false);
-
- //Returns a number of functions of this GEOM_Object
- Standard_EXPORT int GetNbFunctions();
-
- //Returns a function with given number theFunctionNumber
- Standard_EXPORT Handle(GEOM_Function) GetFunction(int theFunctionNumber);
-
- //Return the last function of this GEOM_Object
- Standard_EXPORT Handle(GEOM_Function) GetLastFunction();
-
- //Returns all dependencies of the object
- Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetAllDependency();
-
- //Returns the dependencies of the last function
- Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetLastDependency();
-
- //###########################################################
- // Internal methods
- //###########################################################
-
- //Returns a label which could be used to store some additional data
- Standard_EXPORT TDF_Label GetFreeLabel();
-
- private:
- Handle(TDataStd_TreeNode) _root;
- TDF_Label _label;
- TCollection_AsciiString _ior;
- TCollection_AsciiString _parameters;
- int _docID;
-