#include <layerset.h>
Class to choose layers or alphas from an image.
Public Types | |
using | LayerHash = HashSet< String, LayerSetCompare > |
Public Member Functions | |
MAXON_METHOD Result< void > | SetSelectedLayers (const LayerHash &layers) |
MAXON_METHOD const LayerHash & | GetSelectedLayers () const |
MAXON_METHOD void | SetSelectedImage (const String &image) |
MAXON_METHOD String | GetSelectedImage () const |
MAXON_METHOD void | SetMode (LAYERSETMODE mode) |
MAXON_METHOD LAYERSETMODE | GetMode () const |
MAXON_METHOD void | SetCalculateAlpha (Bool calcAlpha) |
MAXON_METHOD Bool | GetCalculateAlpha () const |
MAXON_METHOD Bool | IsEqual (const LayerSetInterface *other) const |
MAXON_METHOD HashInt | GetHashCode () const |
MAXON_FUNCTION void | FlushLayers () |
MAXON_FUNCTION Bool | HasLayerSelection () const |
MAXON_FUNCTION Bool | IsLayerEnabled (const String &name) const |
MAXON_FUNCTION Bool | HasMultiImageSelection () const |
MAXON_FUNCTION Bool | IsMultiImageEnabled (const String &name) const |
MAXON_FUNCTION Result< void > | RemoveLayer (const String &layer) |
MAXON_FUNCTION Result< void > | AddLayer (const String &layer) |
Static Public Member Functions | |
static MAXON_METHOD Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (LayerSetInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.layerset") | |
using LayerHash = HashSet<String, LayerSetCompare> |
|
private |
MAXON_METHOD Result<void> SetSelectedLayers | ( | const LayerHash & | layers | ) |
Sets the selected layers.
[in] | layers | The layers to set. |
MAXON_METHOD const LayerHash& GetSelectedLayers | ( | ) | const |
Gets the selected layers.
MAXON_METHOD void SetSelectedImage | ( | const String & | image | ) |
Sets the selected image.
[in] | image | The image to set. |
MAXON_METHOD String GetSelectedImage | ( | ) | const |
Gets the selected image.
MAXON_METHOD void SetMode | ( | LAYERSETMODE | mode | ) |
Sets the mode.
[in] | mode | The mode to set. |
MAXON_METHOD LAYERSETMODE GetMode | ( | ) | const |
Gets the mode.
MAXON_METHOD void SetCalculateAlpha | ( | Bool | calcAlpha | ) |
Sets the alpha calculation mode.
[in] | calcAlpha | The mode to set. |
MAXON_METHOD Bool GetCalculateAlpha | ( | ) | const |
Gets the alpha calculation mode.
MAXON_METHOD Bool IsEqual | ( | const LayerSetInterface * | other | ) | const |
MAXON_METHOD HashInt GetHashCode | ( | ) | const |
MAXON_FUNCTION void FlushLayers | ( | ) |
MAXON_FUNCTION Bool HasLayerSelection | ( | ) | const |
MAXON_FUNCTION Bool IsLayerEnabled | ( | const String & | name | ) | const |
MAXON_FUNCTION Bool HasMultiImageSelection | ( | ) | const |
MAXON_FUNCTION Bool IsMultiImageEnabled | ( | const String & | name | ) | const |
MAXON_FUNCTION Result<void> RemoveLayer | ( | const String & | layer | ) |
MAXON_FUNCTION Result<void> AddLayer | ( | const String & | layer | ) |
|
static |
Describe all elements of this class for I/O operations.
[in] | stream | The stream that is used to register the class members. |