Hello,
I'm trying to get started with OCAF and I'm not finding a way to get a label from it's ID.
I'm talking about ID but it doesn't have an ID method like TDF_Attribute has.
Is there a class that acts like a mapping of TDF_Labels with some identifier ?
I've looked a bit into TDF classes and didn't really found anything that would do what I want. It leads me to think that I might be conceptually wrong on my design and that maybe I should change the way I'm designing my app.
My logic is as follow :
So I would like to know if there is a way to do something like this with OCAF ? Or maybe I should think about it differently ? (But I don't see how)
Any help will be appreciated !
Cheers,
Jojain
I'm trying to get started with OCAF and I'm not finding a way to get a label from it's ID.
I'm talking about ID but it doesn't have an ID method like TDF_Attribute has.
Is there a class that acts like a mapping of TDF_Labels with some identifier ?
I've looked a bit into TDF classes and didn't really found anything that would do what I want. It leads me to think that I might be conceptually wrong on my design and that maybe I should change the way I'm designing my app.
My logic is as follow :
- I create a document
- The document can have several parts, parts are stored in the document with a part label
- Several parts are populated in the document, a GUI action triggers a Qt Signal that convey a Command object
- Several slots are connected to this signal and modify the document depending on the kind of command
- Let's say the command is a part color change. The command object would hold some ID identifying the part aswell as data for the color.
- The document slots receive the Command object and needs to identify which label it must attach the color attributes. (At this point I have some troubles)
So I would like to know if there is a way to do something like this with OCAF ? Or maybe I should think about it differently ? (But I don't see how)
Any help will be appreciated !
Cheers,
Jojain