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
Hello.
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
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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