This is a threaded class which pumps an iterator to load data while the application still has control - as new Stars are manufactured they are put in the ArcObjCont.
ImageProd is a factory which produces PlanarImages - this returns a reference to the factory rather than the image to allow for easier background loading.
This represents a Catalog with Duplicate entries - effectively this is the compass Catalog - we may do somethings a little differently for this like having an extra set of criteria.
Pass the factory class name the command for the factory and the name for this server to the constructor - these will have to be passed on the command line tot he main loop.
Find the star plotted near the given screen coordinates - this came from Hipparcos - it assumes stars are ordered in RA comming from the catalog and does a binary searc based on that assumption.
Translate ascii leaf name to a uint32
The following encoding is used:
The string leaf name has the always the same structure, it begins with
an N or S, indicating north or south cap and then numbers 0-3 follow
indicating which child to descend into.
As with Source Archive the notion here is to define the operations applicable to an archive of images so a client can maike use of an aritrary archive.
Pass the factory class name the command for the factory and the name for this server to the constructor - these will have to be passed on the command line tot he main loop.
first open the file - then see what depth we need
then read it and get max an min
also insert NaN in the values so any values not
in file will be blank
MuAlpha and MuDelta for the purpose of animation need to give the offset in degrees for a given year this means subtracting the zero year and converting to degrees.
Translate uint32 to an ascii leaf name
The encoding described above may be decoded again using the following
procedure:
Traverse the uint32 from left to right.
This is just to identify Plates from other objects
the ra and dec will be the plate center - other archive object info is
not meaningfull for this object.
sortIndex: sort the index so that the first node is the invalid node
(index 0), the next 8 nodes are the root nodes
and then we put all the leaf nodes in the following block
in ascending id-order.
Pass the factory class name the command for the factory and the name for this server to the constructor - these will have to be passed on the command line tot he main loop.
The SpatialVector is a standard 3D vector class with the addition
that each coordinate (x,y,z) is also kept in ra,dec since we expect
the vector to live on the surface of the unit sphere, i.e.
vMax: compute the maximum number of vertices for the
polyhedron after buildlevel of subdivisions and
the total number of nodes that we store
also, calculate the number of leaf nodes that we eventually have.