Starmapper Site : Plotter

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Plotter

Plotter is the thing that makes Starmapper fly. Plotter is the thing that makes Starmapper pretty. Plotter is the thing that makes Starmapper useful.
Plotter is king!

Uh, sorry about that.

Description
Plotter is a pluggable object that converts raw numbers generated by Starmapper into pixels. Its mode of operation is simple: initialize a new image -> process lots of pixels -> additional post-processing pass -> return the image. In the meantime it is asked to print some strings and draw some icons (to mark locations of nodes). Basically, Plotter takes care of the actual image that will be returned to the user.

Plotter is given an array of floats (along with the coordinates of the pixel currently processed). Each elements is a value of influence of a region on this point (the actual function used to calculate influences is described FIXME uh, somewhere else... but basically it's proportional to the inverse of the distance). Plotter should know which index describes which region, because upon initialization, Plotter is also given a List of Regions (along with their colours), whose elements are in exactly the same order as in the array of influences.

So, the Plotter can do lots of different things with the data, and so do the many implementations in package jezuch.utils.starmapper3.plotters.

Included implementations

To use a specific Plotter implementation you need to set the global.plotter setting (see the Unified Configuration Model). Some Plotter implementations (look for those near the word "default") can also define their own settings, under the plotter hierarchy (like plotter.capped.cap).

There is one comment on this page. [Display comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
SourceForge.net Logo
Page was generated in 0.8013 seconds