[OpenMap Users] RpfFrameCacheHandler.getSubframeData()

From: Brightwell, William <wbrightwell_at_mtcsc.com>
Date: Thu, 26 Aug 2010 16:54:57 +0000

Don,

I am trying to understand the “getSubframeData()” method found in RpfFrameCacheHandler. Could you please explain to me why the value of “6” is important in this piece of code from that method?

--- START CODE ---

       RpfTocEntry entry = tocs[tocNumber].entries[entryNumber]; /* If beyond the image boundary, forget it */ if (y < 0 || x < 0 || entry == null || y >= entry.vertFrames * 6 || x >= entry.horizFrames * 6) { return null; } if (!entry.isFramesLoaded()) { tocs[tocNumber].loadFrameInformation(entry); } RpfFrameEntry frameEntry = entry.getFrame(y / 6, x / 6); /* Get the right frame from the frame cache */ RpfFrame frame = (RpfFrame) get(frameEntry);

--- END CODE ---

Thanks,
Adam

--
W. Adam Brightwell
Software Engineer, MTCSC
Certified Scrum Master
Email: wbrightwell_at_mtcsc.com
DCO:   william.brightwell_at_chat.dco.dod.mil
Office: 843-856-1935/1985 x51632
SPAWAR: 843-218-3583
Cell: 843-810-8701
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Aug 26 2010 - 13:09:16 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT