Hi Adam,
Each Rpf frame image is made up of 6x6 subframe images (each one of
the subframe images is 256x256 pixels). The images are managed in the
TOC/entries at the frame level, though.
Hope this helps,
Don
On Thu, Aug 26, 2010 at 12:54 PM, Brightwell, William
<wbrightwell_at_mtcsc.com> wrote:
> 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:28:37 EDT