Continued
Finance| No Comments »Had to take time off to deal with some more immediate financial issues….
If I recall, I was starting to define how the data flow was going to behave w.r.t. the ScalarArray datatype. The whole setDirtyBit/cook order. I’m using the imgNode system as an example.
- The source node has to be able to define its ScalarArrayBounds with a minimum of cooking.
- This is passed down through the operators to the Buffer node, where it keeps a master list of the entire ScalarArray for display.
- Any time a node has a parameter change, it calls Node::setDirty(), which triggers updates to all its output nodes downstream by calling setDirty() on them.
- ImgNode::getBBox() is used to get the image bounds. FinNode::getBounds() is the equivalent.
- ImgNode::fillTile() is used to calculate a piece of the image. FinNode::calcData() is the equivalent.
Got the Buffer class, and all the execution methods filled in.
Start on the Fin Viewer! Need to be able to see these samples. I know I shouldn’t go too crazy in implementing this. Just need the basics to be able to see these samples, scan across them, etc. I keep looking for examples of other financial software online…. Just tick marks I guess….
At the very least, I would need a way to make tickmarks. The values can be done with niceNum() (Graphics Gems I), but for time, I would need a niceNum() for financial time. Something that will handle years/months/days/hours/minutes/seconds.
Got the file to read in the data. Working on the display next.
There are 3 instances of a 2D gl view, one for the channel editor, one for the image viewer, and now a 3rd one for the fin viewer. I REALLY should create a GL 2D palette class. This would take/save views from a BBox, then subclass this for the the image viewer, and the fin viewer. I guess I have the time. I really don’t feel like re-writing all the get/save 2D view stuff….
Ok, maybe I don’t have to change the other two existing widgets. That would take a while. But for the FinView, I’ll start with the 2D canvas widget first, then have the FinView subclass off of that. I can look into using it for the other classes later. And I’ll have it available for future classes.


