Abstract interface for a canvas (base class). More...
Public Member Functions | |
virtual Uint32 | get_resolution_x () const =0 |
Returns the resolution of the canvas in x direction. More... | |
virtual Uint32 | get_resolution_y () const =0 |
Returns the resolution of the canvas in y direction. More... | |
virtual const char * | get_type () const =0 |
Returns the pixel type used by the canvas. More... | |
virtual Uint32 | get_layers_size () const =0 |
Returns the number of layers this canvas has. More... | |
virtual Float32 | get_gamma () const =0 |
Returns the gamma value. More... | |
virtual void | set_gamma (Float32 gamma)=0 |
Sets the gamma value. More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > | Self |
Own type. More... | |
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > | IID |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Abstract interface for a canvas (base class).
This interface is the base class for all canvases. It holds the common functionality of all different canvas interfaces, i.e., the resolution of the canvas.
|
pure virtual |
Returns the gamma value.
The gamma value should be a positive number. Typical values are 2.2 for LDR pixel types, and 1.0 for HDR pixel types.
|
pure virtual |
Returns the number of layers this canvas has.
|
pure virtual |
Returns the resolution of the canvas in x direction.
|
pure virtual |
Returns the resolution of the canvas in y direction.
|
pure virtual |
Returns the pixel type used by the canvas.
|
pure virtual |
Sets the gamma value.