
CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 209
addProperties()
ESerror_t addProperties (SoHObject hObject, SoCClientName_p pNames);
hObject
The SoHObject reference for an instance of this class.
pNames[]
SoCClientName. A structure containing the names and identifiers of
properties to be added.
Adds a set of new properties to an instance.
Returns an error code,
kESErrOK on success.
getClass()
ESerror_t getClass (SoHObject hObject, char* name, int name_l);
hObject
The SoHObject reference for an instance of the class.
name
String. A buffer in which to return the unique name of the class.
name_l
Number. The size of the name buffer.
Retrieves this object’s parent class name.
Returns an error code,
kESErrOK on success.
getServer()
ESerror_t getServer (SoHObject hObject, SoHServer* phServer,
SoServerInterface_p* ppServerInterface);
hObject
The SoHObject reference for an instance of the class.
phServer
A buffer in which to return theSoHServer reference for this object.
ppServerInterface
A buffer in which to return the SoServerInterface reference for this object.
Retrieves the interface methods for this object, and the server object that manages it.
Returns an error code,
kESErrOK on success.
setClientData()
ESerror_t setClientData (SoHObject hObject, void* pData);
hObject
The SoHObject reference for an instance of the class.
pData
A pointer to the library-defined data.
Sets your own data to be stored with an object.
Returns an error code,
kESErrOK on success.
getClientData()
ESerror_t setClientData (SoHObject hObject, void** pData);
hObject
The SoHObject reference for an instance of the class.
pData
A buffer in which to return a pointer to the library-defined data.
Retrieves data that was stored with setClientData()
.
Returns an error code,
kESErrOK on success.
Comentários a estes Manuais