Creates lists of object location for image simulation. These lists are usually fed in to RealizeObjects to actually draw the objects onto the image.
There are two placement modes: Grid and Random. In Grid mode, galaxies are placed on an rectangular grid with the specified spacing. In Random mode, the specified number of galaxies and stars are placed at random locations on image. In either mode, it's possible to create an empty region along the border of the image.
Parameters
| Name | Type | Description |
|---|---|---|
| Seed | int | If set, use to seed the random number generator. If not set, a random seed will be used. |
| PlacementMode | string | "Random" or "Grid". Sets the mode as described above. |
| NumberStars | int | In random mode, number of stars to place in image. |
| NumberGalaxies | int | In random mode, number of galaxies to place in image. |
| GridSpacing | int | In grid mode, sets the size of the galaxy grid in units of pixels. |
| BorderSize | int | If set, no objects will be placed within this number of pixels from the edge of the image. |
Inputs
| Name | Type | Description |
|---|---|---|
| Image/Width | int | Pixel width of the image. |
| Image/Height | int | Pixel height of the image. |
Outputs
| Name | Type | Description |
|---|---|---|
| Image/ObjectX | double* | Array of x-coordinates of objects, in pixel units. |
| Image/ObjectY | double* | Array of y-coordinates of objects, in pixel units. |
| Image/ObjectTypes | int* | Array of types of objects, as specified in SimConst.h |
| Image/NumberObjs | int | Number of objects placed in image. This will be the length of the above arrays. |