Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

User Attribute and Handle

User Attribute and Handle
Bayard 2012/08/07 12:52
I'd like to create a user attribute TUserAttribute in OCAF which inherits from TDF_Attribute, as described in OCAF user manual.

To add it in the OCAF Tree, the TDF_Label::Add( ) take a Handle_TDF_Attribute in parameter. When I try to code :

Handle(TUserAttribute) myUserAttribute;
myUserAttribute = new TUserAttribute();
myLabel.AddAttribute (myUserAttribute);

I get 'Handle_TUserAttribute' C2065 : undeclared identifier.

Do have I necessarily to create also Handle_TUserAttribute class ?
Like in Handle_TDataStdName.hxx : DEFINE_STANDARD_HANDLE(TDataStd_Name,TDF_Attribute) ..

Thank you for your answer.

Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map