#include <customgui_layerset.h>
Layer set custom data type ( CUSTOMDATATYPE_LAYERSET ).
公共成员函数 |
|
Bool | IsPopulated () const |
Bool | IsLayerEnabled (const maxon::String &name) const |
Bool | FindLayerSet (const maxon::String &name) const |
String | GetName () const |
LAYERSETMODE | GetMode () const |
void | SetMode ( LAYERSETMODE t_mode) |
void | RemoveLayer (const maxon::String &layer) |
void | AddLayer (const maxon::String &layer) |
void | FlushLayers () |
void | SetPreviewMode ( Int32 s) |
Int32 | GetPreviewMode (void) |
const LayerSet & | operator= (const LayerSet &layerset) |
Bool | operator== (const LayerSet &layerset) const |
void | CopyTo ( LayerSet &dst) const |
私有成员函数 |
|
LayerSet () | |
~LayerSet () |
Alloc/Free |
|
static LayerSet * | Alloc () |
static void | Free ( LayerSet *layerset) |
|
|
Bool IsPopulated | ( | ) | const |
Checks if the layer set has content.
Bool IsLayerEnabled | ( | const maxon::String & | name | ) | const |
Checks if a layer is enabled.
[in] | name | The name of the layer to check for. |
Bool FindLayerSet | ( | const maxon::String & | name | ) | const |
Checks if a layer is in the set.
[in] | name | The name of the layer to check for. |
String GetName | ( | ) | const |
Gets the set's name.
LAYERSETMODE GetMode | ( | ) | const |
Gets the layer set mode.
void SetMode | ( | LAYERSETMODE | t_mode | ) |
Sets a new layer set mode.
[in] | t_mode | The mode to set: LAYERSETMODE |
void RemoveLayer | ( | const maxon::String & | layer | ) |
Removes a layer.
[in] | layer | The name of the layer to remove. |
void AddLayer | ( | const maxon::String & | layer | ) |
Adds a layer.
[in] | layer | The name of the layer to add. |
void FlushLayers | ( | ) |
Flushes all layers.
void SetPreviewMode | ( | Int32 | s | ) |
Sets the preview mode.
[in] | s | The preview mode to set. |
Int32 GetPreviewMode | ( | void | ) |
Gets the preview mode.
const LayerSet & operator= | ( | const LayerSet & | layerset | ) |
Assignment operator. Copies the source layerset .
[in] | layerset | The source layer set. |
Bool operator== | ( | const LayerSet & | layerset | ) | const |
Equality operator. Checks if the set and layerset are equal.
[in] | layerset | The layer set to compare with. |
void CopyTo | ( | LayerSet & | dst | ) | const |
Copies the layer set to dst .
[in] | dst | The destination layer set. |
|
static |
Allocates a layer set data. Destroy the allocated layer set data with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs layer set datas allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | layerset | The layer set data to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |