[OpenMap Users] RpfFrameCacheHandler.getSubframeData()

From: Brightwell, William <wbrightwell_at_email.domain.hidden>
Date: Thu Aug 26 2010 - 12:54:57 EDT

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@mtcsc.com
DCO:   william.brightwell@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@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Aug 26 13:17:25 2010

This archive was generated by hypermail 2.1.8 : Thu Aug 26 2010 - 13:17:26 EDT