ImageRegionObservableHandlerInterface Class Reference

#include <imageregionobserver.h>

Inheritance diagram for ImageRegionObservableHandlerInterface:

Public Member Functions

MAXON_METHOD Result< void > ResizeImage (const IntVector2d &dimensions)
 
MAXON_METHOD Result< void > MarkDirty (const Range< IntVector2d > &dirtyRegion)
 
MAXON_METHOD Result< ImageRegionObservableRef > GetObservable ()
 
- Public Member Functions inherited from ImageRegionObservableInterface
MAXON_METHOD Result< GenericDataRegisterObserver (const Id &observerId, const ImageRegionObserverRef &observer)
 

Static Public Member Functions

static MAXON_METHOD Result< ImageRegionObservableHandlerRef > Create (const IntVector2d &dimensions)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL_DERIVED (ImageRegionObservableHandlerInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.imageregionobservablehandler")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL_DERIVED()

MAXON_INTERFACE_NONVIRTUAL_DERIVED ( ImageRegionObservableHandlerInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.imageregionobservablehandler"   
)
private

◆ Create()

static MAXON_METHOD Result<ImageRegionObservableHandlerRef> Create ( const IntVector2d dimensions)
static

Constructs .

Parameters
[in]dimensionsThe image size.
Returns
A valid observable on success.

◆ ResizeImage()

MAXON_METHOD Result<void> ResizeImage ( const IntVector2d dimensions)

Dispatches a notification about a change to the image size.

Parameters
[in]dimensionsThe new image size.
Returns
OK on success.

◆ MarkDirty()

MAXON_METHOD Result<void> MarkDirty ( const Range< IntVector2d > &  dirtyRegion)

Dispatches a notification about a regional invalidation of the observed image.

Parameters
[in]dirtyRegionThe pixel area that has been invalidated.
Returns
OK on success.

◆ GetObservable()

MAXON_METHOD Result<ImageRegionObservableRef> GetObservable ( )

Returns a reference to the registrar of observers.

Returns
A valid registrar on success.