PCL
|
Client-side interface to a PixInsight ViewList object. More...
#include <ViewList.h>
Public Types | |
using | view_event_handler = void(Control::*)(ViewList &sender, View &view) |
Public Types inherited from pcl::Control | |
using | child_event_handler = void(Control::*)(Control &sender, Control &child) |
using | close_event_handler = void(Control::*)(Control &sender, bool &allowClose) |
using | event_handler = void(Control::*)(Control &sender) |
using | file_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers, bool &wantsFiles) |
using | file_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers) |
using | keyboard_event_handler = void(Control::*)(Control &sender, int key, unsigned modifiers, bool &wantsKey) |
using | mouse_button_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int button, unsigned buttons, unsigned modifiers) |
using | mouse_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, unsigned buttons, unsigned modifiers) |
using | mouse_wheel_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int delta, unsigned buttons, unsigned modifiers) |
using | move_event_handler = void(Control::*)(Control &sender, const pcl::Point &newPos, const pcl::Point &oldPos) |
using | paint_event_handler = void(Control::*)(Control &sender, const pcl::Rect &updateRect) |
using | resize_event_handler = void(Control::*)(Control &sender, int newWidth, int newHeight, int oldWidth, int oldHeight) |
using | view_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers, bool &wantsView) |
using | view_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers) |
Additional Inherited Members | |
Static Public Member Functions inherited from pcl::Control | |
static void | HideToolTip () |
static Control & | Null () |
static void | ShowToolTip (const Point &pos, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static void | ShowToolTip (int x, int y, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static String | ToolTipText () |
Static Public Member Functions inherited from pcl::UIObject | |
static UIObject & | Null () |
Protected Member Functions inherited from pcl::UIObject | |
UIObject ()=default | |
UIObject (const UIObject &x) | |
UIObject (UIObject &&x) | |
UIObject & | operator= (const UIObject &x) |
UIObject & | operator= (UIObject &&x) |
Definition at line 76 of file ViewList.h.
pcl::ViewList::ViewList | ( | Control & | parent = Control::Null() | ) |
Constructs a ViewList as a child control of parent.
|
inlineoverride |
Destroys a ViewList control.
Definition at line 88 of file ViewList.h.
View pcl::ViewList::CurrentView | ( | ) | const |
Returns the view that is currently selected in this ViewList control, or View::Null() if there is no view selected.
View pcl::ViewList::ExcludedView | ( | ) | const |
Returns the excluded view of this ViewList control, or View::Null() if this ViewList excludes no view.
The excluded view is never included in the list of items of a ViewList control, regardless of the current state of inclusion for main views and previews. This feature is useful when there is a view that shouldn't be referenced in a processing interface. For example, a dynamic interface can easily avoid references to its own dynamic target by excluding it from a ViewList.
By default, ViewList controls exclude no views.
void pcl::ViewList::ExcludeView | ( | const View & | v | ) |
Sets the excluded view of this ViewList control, or clears it (to exclude no view) if View::Null() is specified.
|
inline |
Updates this ViewList control, regenerating the list of items for all existing views, including all main views and previews.
This is a convenience member function, equivalent to: Regenerate( true, true )
Calling this member function implicitly enables the inclusion of main views and previews in the list of items of this ViewList control.
Definition at line 163 of file ViewList.h.
|
inline |
Updates this ViewList control, regenerating the list of items for existing main views exclusively.
This is a convenience member function, equivalent to: Regenerate( true, false )
Calling this member function implicitly disables the inclusion of previews in the list of items of this ViewList control.
Definition at line 129 of file ViewList.h.
|
inline |
Updates this ViewList control, regenerating the list of items for existing previews exclusively.
This is a convenience member function, equivalent to: Regenerate( false, true )
Calling this member function implicitly disables the inclusion of main views in the list of items of this ViewList control.
Definition at line 146 of file ViewList.h.
bool pcl::ViewList::HasView | ( | const View & | view | ) |
Returns true iff the specified view has been included in the list of items of this ViewList control.
bool pcl::ViewList::IncludesMainViews | ( | ) | const |
Returns true iff this ViewList control includes main views (images).
bool pcl::ViewList::IncludesPreviews | ( | ) | const |
Returns true iff this ViewList control includes previews.
bool pcl::ViewList::IncludesRealTimePreview | ( | ) | const |
Returns true iff this ViewList control includes the virtual real-time preview.
See the documentation for Regenerate() for more information about the virtual real-time preview.
void pcl::ViewList::Regenerate | ( | bool | mainViews = true , |
bool | previews = true , |
||
bool | realTimePreview = false |
||
) |
Regenerates the list of view items in this ViewList control.
mainViews | Whether to enable inclusion of main views (images) - true by default. |
previews | Whether to enable inclusion of previews - true by default. |
realTimePreview | Whether to include the virtual real-time preview - false by default. |
The virtual real-time preview is a high-level interface to the image currently represented in the Real-Time Preview window. This is a special view that is not attached to any existing image window, and hence has only limited functionality. For example, the standard HistogramTransformation and Statistics tools enable access to this virtual view to obtain the histogram and statistical data, respectively, of the image being represented on the Real-Time Preview window.
In general, a module must not gain access to the virtual real-time preview unless it implements some interactive functionality that depends on the current state of the Real-Time Preview window.
void pcl::ViewList::RemoveView | ( | const View & | view | ) |
Removes the specified view from the list of existing items of this ViewList control.
void pcl::ViewList::SelectView | ( | const View & | view | ) |
Selects the specified view in this ViewList control.
If View::Null() is specified, the ViewList control selects a special item (usually, the first item) with the "No View Selected" text. This is equivalent to a "no selection" state.
If the specified view is not included in this ViewList, calling this member function has no effect.