Opened 15 years ago
Closed 15 years ago
#53 closed enhancement (fixed)
Remove the need for ChanMap
Reported by: | MatthewWhiting | Owned by: | MatthewWhiting |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Code base | Version: | 1.1.7 |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
A more sensible way for Object3D to work is to have a std::map<int,Object2D*> that associates a single Object2D with each z value.
This makes it clear that there is only one Object2D for a given value of z.
It will require the way all the ChanMap stuff is referenced ie. replacing maplist[m] with map[m].second etc. It might make things a bit more efficient as well, since we'll be able to use iterators etc.
Change History (3)
comment:1 Changed 15 years ago by
Description: | modified (diff) |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Added note: this came up from looking at Detection::hasEnoughChannels() and thinking that there should be a way to implement this in the Object3D class. It will be simpler with it set up as a std::map, since the channels will be already ordered and we can just cycle through them counting the maximum number of consecutive channels.