Home »
Public Forums »
archive »
iTools custom data operations
iTools custom data operations [message #49129] |
Tue, 20 June 2006 10:37 |
Eric Hudson
Messages: 19 Registered: June 2006
|
Junior Member |
|
|
My question is about making custom data operations for iTools. As a
simple example, say I want to write a derivative operator (a real
dy/dx, not just dy). It looks like this will never work with
subclassing IDLitDataOperation because the execute procedure is only
ever sent a single vector (the y-data). You don't get the x-data so
can't do a real derivative.
My real desire is to do much more complex stuff. I thought I could get
around this by defining a custom data class (subclassed from
IDLitDataContainer) which in the simple derivative example would
contain both the x and y vectors. My hope was that when a data
operation is called that if I said it handled this new data class that
the container would be sent to the operation and it would have both x &
y. But it doesn't work like that -- instead the operation is sent the
'data' (the IDLitData's *self._pData) from the container, which is
NOTHING since the data is stored
as separate objects in the container.
Is there any way to do this? My next thought was that I'd have to just
subclass my operators from IDLitOperation instead of DataOperation, but
this seems painful.
Thanks in advance,
Eric
|
|
|
Current Time: Sat Oct 11 11:50:34 PDT 2025
Total time taken to generate the page: 0.56614 seconds