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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / User Attribute and Handle

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
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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