PCL
|
A structure to hold global pixel readout options. More...
#include <ReadoutOptions.h>
Public Types | |
enum | |
enum | |
enum | |
enum | |
using | readout_data = ReadoutData::value_type |
using | readout_mode = ReadoutMode::value_type |
Public Member Functions | |
ReadoutOptions ()=default | |
ReadoutOptions (const ReadoutOptions &)=default | |
int | CoordinateItems () const |
int | CoordinatePrecision () const |
readout_data | Data () const |
void | DisableAlphaChannel (bool disable=true) |
void | DisableBroadcast (bool disable=true) |
void | DisableEclipticCoordinates (bool disable=true) |
void | DisableEquatorialCoordinates (bool disable=true) |
void | DisableGalacticCoordinates (bool disable=true) |
void | DisableMaskChannel (bool disable=true) |
void | DisablePreview (bool disable=true) |
void | DisablePreviewCenter (bool disable=true) |
void | EnableAlphaChannel (bool enable=true) |
void | EnableBroadcast (bool enable=true) |
void | EnableEclipticCoordinates (bool enable=true) |
void | EnableEquatorialCoordinates (bool enable=true) |
void | EnableGalacticCoordinates (bool enable=true) |
void | EnableMaskChannel (bool enable=true) |
void | EnablePreview (bool enable=true) |
void | EnablePreviewCenter (bool enable=true) |
unsigned | IntegerRange () const |
bool | IsBroadcastEnabled () const |
bool | IsInteger () const |
bool | IsReal () const |
readout_mode | Mode () const |
ReadoutOptions & | operator= (const ReadoutOptions &)=default |
int | Precision () const |
int | PreviewSize () const |
int | PreviewZoomFactor () const |
int | ProbeSize () const |
int | RealCoordinatePrecision () const |
void | Set16BitRange () |
void | Set32BitRange () |
void | Set8BitRange () |
void | SetCoordinateItems (int n) |
void | SetCoordinatePrecision (int n) |
void | SetData (readout_data d) |
void | SetInteger (bool b=true) |
void | SetIntegerRange (unsigned n) |
void | SetMode (readout_mode m) |
void | SetPrecision (int n) |
void | SetPreviewSize (int sz) |
void | SetPreviewZoomFactor (int zoom) |
void | SetProbeSize (int sz) |
void | SetReal (bool b=true) |
bool | ShowAlphaChannel () const |
bool | ShowEclipticCoordinates () const |
bool | ShowEquatorialCoordinates () const |
bool | ShowGalacticCoordinates () const |
bool | ShowMaskChannel () const |
bool | ShowPreview () const |
bool | ShowPreviewCenter () const |
Static Public Member Functions | |
static ReadoutOptions | GetCurrentOptions () |
static void | SetCurrentOptions (const ReadoutOptions &) |
ReadoutOptions holds a set of parameters that define how PixInsight calculates and presents numerical pixel data obtained directly from images.
Readouts are generated dynamically when the user moves a pointing device cursor over an image in PixInsight. Generated readout data are shown on the Readout toolbar, normally located at the bottom of the core application's main window, and are also shown on popup windows when the user clicks on the image. Furthermore, when the user presses the mouse over an image, readout values are sent to interface windows that request them (see Readout Notification Functions). When those interfaces receive readout values, they usually provide some visual feedback, or use them to modify their behavior, as appropriate.
With ReadoutOptions you can specify two sets of parameters: a first set that defines how readout values are calcualted, and a second set that indicates how the numerical readout values are presented to the user.
The first parameter set includes the color space in which data is generated (e.g. RGB, HSV, CIE Lab, etc), the calculation mode used (average, median, minimum or maximum), and the size of the square box used to calculate readouts.
The second set of parameters lets you choose between real and integer readouts. Real readouts are normalized to the [0,1] interval, where 0=black and 1=white. For real readouts you may also specify a resolution degree in terms of the amount of decimal digits shown (from 0 to 15). Integer readouts are given in the range from zero to an arbitrary maximum value that you can specify from 1 to 2^32-1.
Definition at line 159 of file ReadoutOptions.h.
using pcl::ReadoutOptions::readout_data = ReadoutData::value_type |
Represents a pixel readout data mode.
Definition at line 166 of file ReadoutOptions.h.
using pcl::ReadoutOptions::readout_mode = ReadoutMode::value_type |
Represents a pixel readout calculation mode.
Definition at line 171 of file ReadoutOptions.h.
anonymous enum |
Maximum allowed size of a square readout probe.
Definition at line 176 of file ReadoutOptions.h.
anonymous enum |
Maximum allowed number of decimal digits for real readout display.
Definition at line 181 of file ReadoutOptions.h.
anonymous enum |
Minimum and maximum allowed sizes of a square readout preview.
Definition at line 186 of file ReadoutOptions.h.
anonymous enum |
Maximum allowed zoom factor for readout previews.
Definition at line 191 of file ReadoutOptions.h.
|
default |
Constructs a default ReadoutOptions object.
|
default |
Copy constructor.
|
inline |
Returns the number of items used in sexagesimal representations of celestial spherical coordinates. The returned value can be one of:
Definition at line 504 of file ReadoutOptions.h.
|
inline |
Returns the number of decimal digits represented for the last item in sexagesimal representations of celestial spherical coordinates. The returned value is an integer in the range [0,8].
Definition at line 527 of file ReadoutOptions.h.
|
inline |
Returns the readout data mode in this ReadoutOptions object.
Definition at line 222 of file ReadoutOptions.h.
|
inline |
Disables inclusion of alpha channel values on pixel readouts.
This is a convenience function, equivalent to: EnableAlphaChannel( !disable )
Definition at line 274 of file ReadoutOptions.h.
|
inline |
Disables or enables broadcasting of readout notifications.
Definition at line 577 of file ReadoutOptions.h.
|
inline |
Disables ecliptic coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 463 of file ReadoutOptions.h.
|
inline |
Disables equatorial coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 435 of file ReadoutOptions.h.
|
inline |
Disables galactic coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 491 of file ReadoutOptions.h.
|
inline |
Disables inclusion of mask channel values on pixel readouts.
This is a convenience function, equivalent to: EnableMaskChannel( !disable )
Definition at line 302 of file ReadoutOptions.h.
|
inline |
Disables generation of real-time readout previews.
Definition at line 382 of file ReadoutOptions.h.
|
inline |
Disables or enables crosshair center lines on real-time readout previews.
Definition at line 407 of file ReadoutOptions.h.
|
inline |
Enables inclusion of alpha channel values on pixel readouts.
Definition at line 263 of file ReadoutOptions.h.
|
inline |
Enables or disables broadcasting of readout notifications.
Definition at line 568 of file ReadoutOptions.h.
|
inline |
Enables ecliptic coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 454 of file ReadoutOptions.h.
|
inline |
Enables equatorial coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 426 of file ReadoutOptions.h.
|
inline |
Enables galactic coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 482 of file ReadoutOptions.h.
|
inline |
Enables inclusion of mask channel values on pixel readouts.
Definition at line 291 of file ReadoutOptions.h.
|
inline |
Enables generation of real-time readout previews.
Definition at line 374 of file ReadoutOptions.h.
|
inline |
Enables or disables crosshair center lines on real-time readout previews.
Definition at line 399 of file ReadoutOptions.h.
|
static |
Returns the current readout options retrieved from the PixInsight core application.
|
inline |
Returns the maximum value of integer pixel readouts.
Definition at line 645 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables broadcasting of readout notifications.
Definition at line 559 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object disables floating point real pixel readouts.
This is a convenience function, equivalent to: !IsReal().
Definition at line 606 of file ReadoutOptions.h.
References pcl::ProcessParameterType::IsReal().
|
inline |
Returns true iff this ReadoutOptions object enables floating point real pixel readouts.
Definition at line 586 of file ReadoutOptions.h.
|
inline |
Returns the readout calculation mode in this ReadoutOptions object.
Definition at line 238 of file ReadoutOptions.h.
|
default |
Copy assignment operator. Returns a reference to this object.
|
inline |
Returns the precision for floating point real pixel readouts. The returned value is the number of decimal digits employed to represent real pixel readouts.
Definition at line 627 of file ReadoutOptions.h.
|
inline |
Returns the size in pixels of the real-time readout preview.
Definition at line 328 of file ReadoutOptions.h.
|
inline |
Returns the zoom factor applied to real-time readout previews. The returned value has the same meaning as for ImageWindow::ZoomFactor() and ImageWindow::SetViewport().
Definition at line 347 of file ReadoutOptions.h.
|
inline |
Returns the readout probe size in pixels.
Definition at line 310 of file ReadoutOptions.h.
|
inline |
Returns the actual number of decimal digits that should be used to represent spherical coordinates, as a function of the number of represented sexagesimal items. Returns a maximum of 3, 5 and 7 digits, respectively for 3, 2 and 1 represented items. These constraints allow for the representation of coordinates with milliarcsecond precision.
Definition at line 539 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Selects the 16-bit integer readout range.
This is a convenience function, equivalent to: SetIntegerRange( uint16_max )
Definition at line 675 of file ReadoutOptions.h.
References uint16_max.
|
inline |
Selects the 32-bit integer readout range.
This is a convenience function, equivalent to: SetIntegerRange( uint32_max )
Definition at line 686 of file ReadoutOptions.h.
References uint32_max.
|
inline |
Selects the 8-bit integer readout range.
This is a convenience function, equivalent to: SetIntegerRange( uint8_max )
Definition at line 664 of file ReadoutOptions.h.
References uint8_max.
|
inline |
Sets the number of items used in sexagesimal representations of celestial spherical coordinates. The specified value n must be one of:
Definition at line 517 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Sets the number of decimal digits represented for the last item in sexagesimal representations of celestial spherical coordinates. The specified value n must be in the range [0,8].
Definition at line 549 of file ReadoutOptions.h.
References pcl::Range().
|
static |
Sets new readout options in the PixInsight core application.
|
inline |
Sets the readout data mode in this ReadoutOptions object.
Definition at line 230 of file ReadoutOptions.h.
|
inline |
Enables or disables integer pixel readouts.
This is a convenience function, equivalent to: SetReal( !b )
Definition at line 617 of file ReadoutOptions.h.
|
inline |
Sets the maximum value of integer pixel readouts.
Definition at line 653 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Sets the readout calculation mode in this ReadoutOptions object.
Definition at line 246 of file ReadoutOptions.h.
|
inline |
Sets the precision for floating point real pixel readouts. The specified value is the number n of decimal digits employed to represent real pixel readouts.
Definition at line 637 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Sets the size in pixels of the real-time readout preview. The specified size sz must be an odd integer in the range [15,127].
Definition at line 337 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Sets the zoom factor to apply for generation of real-time readout previews. The specified zoom factor must be in the range [1,16], and has the same meaning as zoom factors for ImageWindow::SetViewport().
Definition at line 357 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Sets the readout probe size in pixels. If a value of one is specified, readouts will be calculated for a single pixel. The specified size sz must be an odd integer in the range [1,15].
Definition at line 320 of file ReadoutOptions.h.
References pcl::Range().
|
inline |
Enables or disables floating point real pixel readouts.
Definition at line 594 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables presentation of alpha channel pixel readouts.
Definition at line 255 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables ecliptic coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 445 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables equatorial coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 417 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables galactic coordinates, which can be shown when the image has a valid astrometric solution.
Definition at line 473 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables presentation of mask channel pixel readouts.
Definition at line 283 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables generation of real-time readout previews.
Definition at line 366 of file ReadoutOptions.h.
|
inline |
Returns true iff this ReadoutOptions object enables crosshair center lines on real-time readout previews.
Definition at line 391 of file ReadoutOptions.h.