57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
74 class PCL_CLASS ImageWindow;
146 namespace ViewPropertyAttribute
150 WriteProtected = 0x00000001,
151 ReadProtected = 0x00000002,
152 Volatile = 0x00000010,
153 Permanent = 0x00000020,
154 NotSerializable = 0x00000040,
155 Storable = 0x00000080,
156 Reserved = 0x10000000,
157 Protected = 0x20000000,
158 NoChange = 0x80000000
382 void Lock(
bool notify =
true )
const;
421 void UnlockForWrite(
bool notify =
true )
const;
517 return this->
Image();
530 void GetSize(
int& width,
int& height )
const;
537 int w, dum; GetSize( w, dum );
return w;
545 int dum, h; GetSize( dum, h );
return h;
556 int w, h; GetSize( w, h );
return Rect( w, h );
613 EnableScreenTransferFunctions( !disable, notify );
745 SetProperties( properties, notify,
746 ViewPropertyAttribute::Storable
747 | ViewPropertyAttribute::NoChange );
773 SetProperties( properties, notify,
774 ViewPropertyAttribute::Storable
775 | ViewPropertyAttribute::Permanent
776 | ViewPropertyAttribute::NoChange );
796 return PropertyValue(
IsoString( property ) );
827 return ComputeProperty(
IsoString( property ), notify );
850 if ( HasProperty( propertyId ) )
851 return PropertyValue( propertyId );
852 return ComputeProperty( propertyId, notify );
886 SetPropertyValue(
IsoString( property ), value, notify, attributes );
908 SetPropertyValue( property, value, notify,
909 ViewPropertyAttribute::Storable
910 | ViewPropertyAttribute::NoChange );
915 SetStorablePropertyValue(
IsoString( property ), value, notify );
939 SetPropertyValue( property, value, notify,
940 ViewPropertyAttribute::Storable
941 | ViewPropertyAttribute::Permanent
942 | ViewPropertyAttribute::NoChange );
947 SetStorablePropertyValue(
IsoString( property ), value, notify );
969 return PropertyType(
IsoString( property ) );
988 return PropertyAttributes(
IsoString( property ) );
1010 SetPropertyAttributes(
IsoString( property ), attributes, notify );
1022 return HasProperty(
IsoString( property ) );
1039 DeleteProperty(
IsoString( property ), notify );
1051 if ( HasProperty( property ) )
1052 DeleteProperty( property, notify );
1057 DeletePropertyIfExists(
IsoString( property ), notify );
1072 return id.IsValidIdentifier();
1073 return id.Left( p ).IsValidIdentifier() &&
id.Substring( p+2 ).IsValidIdentifier();
1108 View( std::nullptr_t ) : UIObject( nullptr )
1112 friend class ImageWindow;
1113 friend class ProcessImplementation;
1114 friend class ProcessInterface;
1115 friend class ProcessInstance;
1116 friend class ViewList;
1117 friend class ViewListEventDispatcher;
1118 friend class ControlEventDispatcher;
1119 friend class ProcessContextDispatcher;
1120 friend class InterfaceDispatcher;
1121 friend class InternalViewEnumerator;
1122 friend class InternalPreviewEnumerator;
A type-safe collection of enumerated flags.
Implements a generic, two-dimensional, shared or local image.
A generic rectangle in the two-dimensional space.
static const size_type notFound
Acts like a union for all types of images in PCL, with optional class-wide ownership of transported i...
High-level interface to an image window object in the PixInsight core application.
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Root base class for all user interface objects.
Acts like a union to store instances of different data types.
High-level interface to a PixInsight view object.
void Unlock(bool notify=true) const
void UnlockForRead(bool notify=true) const
void SetScreenTransferFunctions(const stf_list &, bool notify=true)
bool IsStoredPreview() const
ImageVariant GetImage() const
void DestroyScreenTransferFunctions(bool notify=true)
void GetScreenTransferFunctions(stf_list &) const
void DisableScreenTransferFunctions(bool disable=true, bool notify=true)
bool AreScreenTransferFunctionsEnabled() const
void GetSize(int &width, int &height) const
ImageWindow Window() const
void RelockForRead(bool notify=true) const
void AddToDynamicTargets()
void Lock(bool notify=true) const
ImageVariant Image() const
static View ViewById(const IsoString &fullId)
void RemoveFromDynamicTargets()
void Rename(const IsoString &newId)
bool IsDynamicTarget() const
void EnableScreenTransferFunctions(bool=true, bool notify=true)
static Array< View > AllViews(bool excludePreviews=false)
static Array< View > AllPreviews()
static bool IsValidViewId(const S &id)
void LockForWrite(bool notify=true) const
bool IsVolatilePreview() const
bool IsCompletePreview() const
bool IsPartialPreview() const
ViewPropertyAttributes PropertyAttributes(const IsoString &property) const
void SetStorableProperties(const PropertyArray &properties, bool notify=true)
static bool IsReservedViewPropertyId(const IsoString &id)
PropertyArray Properties() const
bool HasProperty(const IsoString &property) const
void SetStorablePermanentProperties(const PropertyArray &properties, bool notify=true)
PropertyArray StorableProperties() const
void SetStorablePermanentPropertyValue(const IsoString &property, const Variant &value, bool notify=true)
Variant PropertyValue(const IsoString &property) const
PropertyArray StorablePermanentProperties() const
PropertyArray PermanentProperties() const
void DeleteProperty(const IsoString &property, bool notify=true)
void SetPropertyAttributes(const IsoString &property, ViewPropertyAttributes attributes, bool notify=true)
Variant::data_type PropertyType(const IsoString &property) const
void SetProperties(const PropertyArray &properties, bool notify=true, ViewPropertyAttributes attributes=ViewPropertyAttribute::NoChange)
void SetPropertyValue(const IsoString &property, const Variant &value, bool notify=true, ViewPropertyAttributes attributes=ViewPropertyAttribute::NoChange)
PropertyDescriptionArray PropertyDescriptions() const
Variant ComputeOrFetchProperty(const S &property, bool notify=true)
void SetStorablePropertyValue(const IsoString &property, const Variant &value, bool notify=true)
Variant ComputeProperty(const IsoString &property, bool notify=true)
void DeletePropertyIfExists(const IsoString &property, bool notify=true)