Class SBDVisualPresetStep#
ClassList > SBDVisualPresetStep
The SBDVisualPresetStep class is a base class for visual preset steps.More...
#include <SBDVisualPresetStep.hpp>
Public Types#
| Type | Name |
|---|---|
| enum | StructureVisibility Available structure visibility types. |
Public Functions#
| Type | Name |
|---|---|
| SBDVisualPresetStep () Constructs an empty visual preset step. |
|
| SBDVisualPresetStep (const std::string & selectionFilterString, const std::string & selectionFilterName, const std::vector< SBUUID > & actions) Builds a visual preset step with the given selection filter and actions. |
|
| SBDVisualPresetStep (const std::string & selectionFilterString, const std::string & selectionFilterName, const std::string & visualModelClassName=std::string(), const SBUUID & visualModelExtensionUUID=SBUUID(), const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selection filter, visual model, and actions. |
|
| SBDVisualPresetStep (const std::string & selectionFilterString, const std::string & selectionFilterName, const std::string & visualModelClassName, const SBUUID & visualModelExtensionUUID, const std::string & colorSchemeClassName, const SBUUID & colorSchemeExtensionUUID, const SBColor & color, const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selection filter, visual model, color scheme, and actions. |
|
| SBDVisualPresetStep (const std::string & selectionFilterString, const std::string & selectionFilterName, const std::string & visualModelClassName, const SBUUID & visualModelExtensionUUID, const std::string & colorSchemeClassName, const SBUUID & colorSchemeExtensionUUID, const SBPalette * colorPalette=nullptr, const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selection filter, visual model, color scheme, and actions. |
|
| SBDVisualPresetStep (const std::string & selectorClassName, const SBUUID & selectorExtensionUUID, const std::vector< SBUUID > & actions) Builds a visual preset step with the given selector and actions. |
|
| SBDVisualPresetStep (const std::string & selectorClassName, const SBUUID & selectorExtensionUUID, const std::string & visualModelClassName=std::string(), const SBUUID & visualModelExtensionUUID=SBUUID(), const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selector, visual model, and actions. |
|
| SBDVisualPresetStep (const std::string & selectorClassName, const SBUUID & selectorExtensionUUID, const std::string & visualModelClassName, const SBUUID & visualModelExtensionUUID, const std::string & colorSchemeClassName, const SBUUID & colorSchemeExtensionUUID, const SBColor & color, const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selector, visual model, color scheme, and actions. |
|
| SBDVisualPresetStep (const std::string & selectorClassName, const SBUUID & selectorExtensionUUID, const std::string & visualModelClassName, const SBUUID & visualModelExtensionUUID, const std::string & colorSchemeClassName, const SBUUID & colorSchemeExtensionUUID, const SBPalette * colorPalette=nullptr, const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selector, visual model, color scheme, and actions. |
|
| SBDVisualPresetStep (const std::string & selectionFilterString, const std::string & selectionFilterName, const std::string & visualModelPublicName, const std::string & colorSchemePublicName, const SBColor & color, const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selection filter, visual model, color scheme, and actions. |
|
| SBDVisualPresetStep (const std::string & selectionFilterString, const std::string & selectionFilterName, const std::string & visualModelPublicName, const std::string & colorSchemePublicName, const SBPalette * colorPalette=nullptr, const std::vector< SBUUID > & actions=std::vector< SBUUID >()) Builds a visual preset step with the given selection filter, visual model, color scheme, and actions. |
|
| SBDVisualPresetStep (const SBDVisualPresetStep & other) Copy constructor. |
|
| SBDVisualPresetStep (SBDVisualPresetStep && other) noexcept Move constructor. |
|
| bool | addActionUUID (const SBCContainerUUID & actionUUID) Adds an UUID of an action to the action UUIDs vector. Returns whether actionUUID has been added to the list. |
| void | apply (SBNodeIndexer & nodeIndexer, SBFolder * preferredFolder=nullptr) Applies the visual preset step to nodes in nodeIndexer and adds the visual models (if any) topreferredFolder . |
| void | clearColor () Clears the color. |
| void | clearColorScheme () Clears the color scheme. |
| void | clearSelectionFilter () Clears the selection filter. |
| void | clearSelector () Clears the selector. |
| void | clearVisualModel () Clears the visual model. |
| virtual SBDVisualPresetStep * | clone () const Clones the visual preset step. |
| const std::vector< SBUUID > & | getActionUUIDs () const Returns a vector of UUIDs of actions that should be applied to the "selected" nodes. |
| const SBColor & | getColor () const Returns the color. |
| const std::string & | getColorSchemeClassName () const Returns the color scheme's class name. |
| const SBUUID & | getColorSchemeExtensionUUID () const Returns the color scheme's extension UUID. |
| SBProxy * | getColorSchemeProxy () const Returns a proxy to the color scheme. |
| SBPalette * | getDefaultPaletteForCurrentColorScheme () const Returns the default color palette of the color scheme. |
| SBPalette * | getPalette () const Returns the color palette. |
| const std::string & | getSelectionFilterName () const Returns the selection filter name. |
| const std::string & | getSelectionFilterString () const Returns the selection filter string. |
| const std::string & | getSelectorClassName () const Returns the selector's class name. |
| const SBUUID & | getSelectorExtensionUUID () const Returns the selector's extension UUID. |
| SBProxy * | getSelectorProxy () const Returns a proxy to the selector. |
| const std::string & | getVisualModelClassName () const Returns the visual model's class name. |
| const SBUUID & | getVisualModelExtensionUUID () const Returns the visual model's extension UUID. |
| SBProxy * | getVisualModelProxy () const Returns a proxy to the visual model. |
| bool | hasColor () const Returns true if the visual preset step has a color. |
| bool | hasColorScheme () const Returns true if the visual preset step has a color scheme. |
| bool | hasDefaultPalette () const Returns true if the color scheme has a default color palette. |
| bool | hasSelector () const Returns true if the visual preset step has a selector. |
| bool | hasVisualModel () const Returns true if the visual preset step has a visual model. |
| bool | operator!= (const SBDVisualPresetStep & other) const Comparison operator. |
| SBDVisualPresetStep & | operator= (const SBDVisualPresetStep & other) Copy assignment. |
| SBDVisualPresetStep & | operator= (SBDVisualPresetStep && other) Move assignment. |
| bool | operator== (const SBDVisualPresetStep & other) const Comparison operator. |
| void | removeActionUUID (const SBCContainerUUID & actionUUID) Removes an UUID of an action from the action UUIDs vector. |
| void | resetPalette () Sets the color palette to the default color palette for this color scheme. |
| void | setActionUUIDs (const std::vector< SBCContainerUUID > & actionUUIDs) Sets UUIDs of actions that should be applied to the "selected" nodes. |
| void | setColor (const SBColor & color) Sets the color. |
| void | setColorSchemeClassName (const std::string & className) Sets the color scheme's class name. |
| void | setColorSchemeExtensionUUID (const SBUUID & elementUUID) Sets color scheme's extension UUID. |
| void | setColorSchemeProxy (const SBProxy * proxy) Sets the color scheme by proxy. |
| void | setPalette (SBPalette * palette) Sets the color palette to palette , it takes ownership of thepalette . |
| void | setSelectionFilter (const std::string & selectionFilterString, const std::string & selectionFilterName) Sets the selection filter to selectionFilterString and its name toselectionFilterName . |
| void | setSelectorProxy (const SBProxy * proxy) Sets the selector by proxy. |
| void | setVisualModelProxy (const SBProxy * proxy) Sets the visual model by proxy. |
| virtual std::string | toPythonCode () const Returns the string representation of the object that can be used to reconstruct it in Python. |
| virtual | ~SBDVisualPresetStep () Destructor. |
Public Static Functions#
| Type | Name |
|---|---|
| SBNodeColorScheme * | createColorScheme (const std::string & colorSchemeClassName, const SBNodeIndexer & nodeIndexer, const SBPalette * palette=nullptr) Creates a color scheme colorSchemeClassName for nodes innodeIndexer colorized with color palettepalette . |
| SBProxy * | getColorSchemeProxy (const std::string & publicName) Returns a proxy that corresponds to a color scheme with the public name publicName . |
| SBDPalette * | getDefaultPalette (const std::string & colorSchemeClassName) Returns a clone of the default color palette for color scheme colorSchemeClassName . |
| SBProxy * | getVisualModelProxy (const std::string & publicName) Returns a proxy that corresponds to a visual model with the public name publicName . |
| bool | isPerAttributeColorScheme (const std::string & colorSchemeClassName) Returns true if the color schemecolorSchemeClassName is a per-attribute color scheme. |
Protected Attributes#
| Type | Name |
|---|---|
| SBDVisualPresetStepData * | dataPointer A pointer to the private data. |
Detailed Description#
Short name: SBVisualPresetStep
Public Types Documentation#
enum StructureVisibility#
Available structure visibility types.
Public Functions Documentation#
function SBDVisualPresetStep [1/13]#
Constructs an empty visual preset step.
Initializes a new instance of SBDVisualPresetStep with default settings.
function SBDVisualPresetStep [2/13]#
Builds a visual preset step with the given selection filter and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectionFilterString,
const std::string & selectionFilterName,
const std::vector< SBUUID > & actions
)
Constructs a visual preset step with a selection filter and actions.
Creates a step that selects nodes using the provided filter string and name, and registers the specified actions.
Parameters:
selectionFilterStringThe filter string defining the node selection criteria.selectionFilterNameThe human‑readable name of the selection filter.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [3/13]#
Builds a visual preset step with the given selection filter, visual model, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectionFilterString,
const std::string & selectionFilterName,
const std::string & visualModelClassName=std::string(),
const SBUUID & visualModelExtensionUUID=SBUUID (),
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step with a selection filter, visual model, and actions.
Creates a step that selects nodes using the filter string and name, visualizes them with the specified visual model, and registers the given actions.
Parameters:
selectionFilterStringThe filter string defining the node selection criteria.selectionFilterNameThe name of the selection filter.visualModelClassNameThe class name of the visual model.visualModelExtensionUUIDThe extension UUID of the visual model.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [4/13]#
Builds a visual preset step with the given selection filter, visual model, color scheme, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectionFilterString,
const std::string & selectionFilterName,
const std::string & visualModelClassName,
const SBUUID & visualModelExtensionUUID,
const std::string & colorSchemeClassName,
const SBUUID & colorSchemeExtensionUUID,
const SBColor & color,
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step with a selection filter, visual model, color scheme, and constant color.
Creates a step that selects nodes using the given filter, visualizes them with the specified visual model, colors them using the provided color scheme and constant color, and registers the actions.
Parameters:
selectionFilterStringThe filter string defining the node selection criteria.selectionFilterNameThe name of the selection filter.visualModelClassNameThe class name of the visual model.visualModelExtensionUUIDThe extension UUID of the visual model.colorSchemeClassNameThe class name of the color scheme.colorSchemeExtensionUUIDThe extension UUID of the color scheme.colorThe constant color to be used for the color scheme.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [5/13]#
Builds a visual preset step with the given selection filter, visual model, color scheme, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectionFilterString,
const std::string & selectionFilterName,
const std::string & visualModelClassName,
const SBUUID & visualModelExtensionUUID,
const std::string & colorSchemeClassName,
const SBUUID & colorSchemeExtensionUUID,
const SBPalette * colorPalette=nullptr,
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step with a selection filter, visual model, color scheme, and a custom palette.
Creates a step that selects nodes using the filter, visualizes them with the specified visual model, applies the given color scheme initialized with the provided palette (or the default if nullptr), and registers the actions.
Parameters:
selectionFilterStringThe filter string defining the node selection criteria.selectionFilterNameThe name of the selection filter.visualModelClassNameThe class name of the visual model.visualModelExtensionUUIDThe extension UUID of the visual model.colorSchemeClassNameThe class name of the color scheme.colorSchemeExtensionUUIDThe extension UUID of the color scheme.colorPalettePointer to a color palette to use; if nullptr, the default palette is used.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [6/13]#
Builds a visual preset step with the given selector and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectorClassName,
const SBUUID & selectorExtensionUUID,
const std::vector< SBUUID > & actions
)
Constructs a visual preset step with a selector and actions.
Creates a step that uses the specified selector identified by its class name and extension UUID, and associates the given actions to be applied to the selected nodes.
Parameters:
selectorClassNameThe class name of the selector.selectorExtensionUUIDThe extension UUID of the selector.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [7/13]#
Builds a visual preset step with the given selector, visual model, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectorClassName,
const SBUUID & selectorExtensionUUID,
const std::string & visualModelClassName=std::string(),
const SBUUID & visualModelExtensionUUID=SBUUID (),
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step with a selector, visual model, and actions.
Creates a step that uses the specified selector and visual model, and registers the given actions.
Parameters:
selectorClassNameThe class name of the selector.selectorExtensionUUIDThe extension UUID of the selector.visualModelClassNameThe class name of the visual model.visualModelExtensionUUIDThe extension UUID of the visual model.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [8/13]#
Builds a visual preset step with the given selector, visual model, color scheme, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectorClassName,
const SBUUID & selectorExtensionUUID,
const std::string & visualModelClassName,
const SBUUID & visualModelExtensionUUID,
const std::string & colorSchemeClassName,
const SBUUID & colorSchemeExtensionUUID,
const SBColor & color,
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step with selector, visual model, color scheme, and constant color.
Creates a step that selects nodes using the specified selector, visualizes them with the given visual model, colors them using the specified color scheme and constant color, and registers the provided actions.
Parameters:
selectorClassNameThe class name of the selector.selectorExtensionUUIDThe extension UUID of the selector.visualModelClassNameThe class name of the visual model.visualModelExtensionUUIDThe extension UUID of the visual model.colorSchemeClassNameThe class name of the color scheme.colorSchemeExtensionUUIDThe extension UUID of the color scheme.colorThe constant color to be used for the color scheme.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [9/13]#
Builds a visual preset step with the given selector, visual model, color scheme, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectorClassName,
const SBUUID & selectorExtensionUUID,
const std::string & visualModelClassName,
const SBUUID & visualModelExtensionUUID,
const std::string & colorSchemeClassName,
const SBUUID & colorSchemeExtensionUUID,
const SBPalette * colorPalette=nullptr,
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step with selector, visual model, color scheme, and a custom palette.
Creates a step that uses the given selector and visual model, applies the specified color scheme initialized with the provided palette (or the default palette if nullptr), and registers the given actions.
Parameters:
selectorClassNameThe class name of the selector.selectorExtensionUUIDThe extension UUID of the selector.visualModelClassNameThe class name of the visual model.visualModelExtensionUUIDThe extension UUID of the visual model.colorSchemeClassNameThe class name of the color scheme.colorSchemeExtensionUUIDThe extension UUID of the color scheme.colorPalettePointer to a color palette to use; if nullptr, the default palette is used.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [10/13]#
Builds a visual preset step with the given selection filter, visual model, color scheme, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectionFilterString,
const std::string & selectionFilterName,
const std::string & visualModelPublicName,
const std::string & colorSchemePublicName,
const SBColor & color,
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step using public names for visual model and color scheme, with a constant color.
Creates a step that selects nodes using the given filter, resolves the visual model and color scheme by their public names, applies the constant color, and registers the actions.
Parameters:
selectionFilterStringThe filter string defining the node selection criteria.selectionFilterNameThe name of the selection filter.visualModelPublicNameThe public name of the visual model to use.colorSchemePublicNameThe public name of the color scheme to use.colorThe constant color to be used for the color scheme.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [11/13]#
Builds a visual preset step with the given selection filter, visual model, color scheme, and actions.
SBDVisualPresetStep::SBDVisualPresetStep (
const std::string & selectionFilterString,
const std::string & selectionFilterName,
const std::string & visualModelPublicName,
const std::string & colorSchemePublicName,
const SBPalette * colorPalette=nullptr,
const std::vector< SBUUID > & actions=std::vector< SBUUID >()
)
Constructs a visual preset step using public names for visual model and color scheme, with a custom palette.
Creates a step that selects nodes using the filter, resolves the visual model and color scheme by their public names, and applies the provided palette (or the default if nullptr) to the color scheme.
Parameters:
selectionFilterStringThe filter string defining the node selection criteria.selectionFilterNameThe name of the selection filter.visualModelPublicNameThe public name of the visual model to use.colorSchemePublicNameThe public name of the color scheme to use.colorPalettePointer to a color palette to use; if nullptr, the default palette is used.actionsA vector of UUIDs of actions to be applied.
function SBDVisualPresetStep [12/13]#
Copy constructor.
Copy constructs a visual preset step from another instance.
Creates a new visual preset step that is a deep copy of the provided other step, including its selection filter, selector, visual model, color scheme, palette, color, and actions.
Parameters:
otherThe visual preset step to copy from.
function SBDVisualPresetStep [13/13]#
Move constructor.
Move constructs a visual preset step from another instance.
Transfers ownership of the internal data from other to this instance, leaving other in a valid but unspecified state.
Parameters:
otherThe visual preset step to move from.
function addActionUUID#
Adds an UUID of an action to the action UUIDs vector. Returns whether actionUUID has been added to the list.
Adds an UUID of an action to the action UUIDs vector.
Returns whether actionUUID has been added to the list. If this UUID is already present in this visual preset step then it does nothing.
Parameters:
actionUUIDThe UUID of the action to add.
Returns:
true if the UUID was added; false otherwise.
function apply#
Applies the visual preset step to nodes in nodeIndexer and adds the visual models (if any) topreferredFolder .
Applies the visual preset step to the given node indexer and optionally to a folder.
Parameters:
nodeIndexerReference to a node indexer containing the nodes to which the step may be applied.preferredFolderOptional folder where visual models and other generated objects will be placed; if null, the active document is used.
function clearColor#
Clears the color.
Clears any constant color and resets related color scheme settings.
function clearColorScheme#
Clears the color scheme.
Clears the color scheme information, resetting class name, extension UUID, and the color flag.
function clearSelectionFilter#
Clears the selection filter.
Clears the selection filter for this visual preset step.
function clearSelector#
Clears the selector.
Clears the selector information, resetting its class name and extension UUID.
function clearVisualModel#
Clears the visual model.
Clears the visual model information, resetting its class name and extension UUID.
function clone#
Clones the visual preset step.
Creates a deep copy of this visual preset step.
Returns:
A pointer to a newly allocated SBDVisualPresetStep instance that is a copy of this object.
function getActionUUIDs#
Returns a vector of UUIDs of actions that should be applied to the "selected" nodes.
Returns the list of action UUIDs associated with this visual preset step.
Returns:
Const reference to a vector of SBUUID objects representing the action UUIDs.
function getColor#
Returns the color.
Retrieves the constant color currently set for this visual preset step.
Returns:
Reference to the SBColor object representing the current color.
function getColorSchemeClassName#
Returns the color scheme's class name.
Returns the class name of the color scheme.
Returns:
The color scheme's class name as a constant reference.
function getColorSchemeExtensionUUID#
Returns the color scheme's extension UUID.
Returns the extension UUID of the color scheme.
Returns:
The color scheme's extension UUID.
function getColorSchemeProxy [1/2]#
Returns a proxy to the color scheme.
Retrieves a proxy for the color scheme, if a color scheme is defined.
Returns:
Pointer to the color scheme proxy, or nullptr if no color scheme is set.
function getDefaultPaletteForCurrentColorScheme#
Returns the default color palette of the color scheme.
Retrieves the default palette for the color scheme currently set in this visual preset step.
Returns:
Pointer to the default palette, or nullptr if none is available.
function getPalette#
Returns the color palette.
Retrieves the current color palette associated with the color scheme.
Returns:
Pointer to the SBPalette, or nullptr if no palette is set.
function getSelectionFilterName#
Returns the selection filter name.
Returns the selection filter name of the visual preset step.
Returns:
A constant reference to the selection filter name.
function getSelectionFilterString#
Returns the selection filter string.
Returns the selection filter string of the visual preset step.
Returns:
A constant reference to the selection filter string.
function getSelectorClassName#
Returns the selector's class name.
Returns the class name of the selector.
Returns:
The selector's class name as a constant reference.
function getSelectorExtensionUUID#
Returns the selector's extension UUID.
Returns the extension UUID of the selector.
Returns:
The selector's extension UUID.
function getSelectorProxy#
Returns a proxy to the selector.
Retrieves a proxy for the selector, if a selector is defined.
Returns:
Pointer to the selector proxy, or nullptr if no selector is set.
function getVisualModelClassName#
Returns the visual model's class name.
Returns the class name of the visual model.
Returns:
The visual model's class name as a constant reference.
function getVisualModelExtensionUUID#
Returns the visual model's extension UUID.
Returns the extension UUID of the visual model.
Returns:
The visual model's extension UUID.
function getVisualModelProxy [1/2]#
Returns a proxy to the visual model.
Retrieves a proxy for the visual model, if a visual model is defined.
Returns:
Pointer to the visual model proxy, or nullptr if no visual model is set.
function hasColor#
Returns true if the visual preset step has a color.
Checks whether a constant color has been set for this visual preset step.
Returns:
true if a constant color is set, false otherwise.
function hasColorScheme#
Returns true if the visual preset step has a color scheme.
Checks whether a color scheme is defined for this visual preset step.
Returns:
true if a color scheme exists, false otherwise.
function hasDefaultPalette#
Returns true if the color scheme has a default color palette.
Determines whether the current color scheme has an associated default palette.
Returns:
true if a default palette is available for the current color scheme, false otherwise.
function hasSelector#
Returns true if the visual preset step has a selector.
Checks whether a selector is defined for this visual preset step.
Returns:
true if a selector exists, false otherwise.
function hasVisualModel#
Returns true if the visual preset step has a visual model.
Checks whether a visual model is defined for this visual preset step.
Returns:
true if a visual model exists, false otherwise.
function operator!=#
Comparison operator.
Inequality comparison operator.
Determines whether this visual preset step is not equal to other.
Parameters:
otherThe visual preset step to compare against.
Returns:
true if the two steps are not equal; false otherwise.
function operator=#
Copy assignment.
Copy assignment operator.
Copies the contents of other into this visual preset step. If other has no data, an error message is printed and the object remains unchanged.
Parameters:
otherThe source visual preset step to copy from.
Returns:
Reference to this visual preset step after assignment.
function operator=#
Move assignment.
Move assignment operator.
Moves the contents of other into this visual preset step, transferring ownership of the internal data. After the operation, other will have no data.
Parameters:
otherThe source visual preset step to move from.
Returns:
Reference to this visual preset step after assignment.
function operator==#
Comparison operator.
Equality comparison operator.
Determines whether this visual preset step is equal to other by comparing all of its properties and action UUIDs.
Parameters:
otherThe visual preset step to compare against.
Returns:
true if the two steps are equal; false otherwise.
function removeActionUUID#
Removes an UUID of an action from the action UUIDs vector.
Removes an action UUID from the action list.
Removes the specified actionUUID from the internal list of action UUIDs if it exists. If the UUID is not present, the function has no effect.
Parameters:
actionUUIDThe UUID of the action to remove.
function resetPalette#
Sets the color palette to the default color palette for this color scheme.
Resets the color palette to the default palette for the current color scheme.
function setActionUUIDs#
Sets UUIDs of actions that should be applied to the "selected" nodes.
Replaces the current list of action UUIDs with the provided list.
Parameters:
actionUUIDsVector of action UUIDs to set.
function setColor#
Sets the color.
Sets a constant color for this visual preset step and updates the color scheme if necessary.
Parameters:
colorThe color to set.
function setColorSchemeClassName#
Sets the color scheme's class name.
Sets the class name of the color scheme.
Parameters:
classNameThe new class name for the color scheme.
function setColorSchemeExtensionUUID#
Sets color scheme's extension UUID.
Sets the extension UUID of the color scheme.
Parameters:
elementUUIDThe new extension UUID for the color scheme.
function setColorSchemeProxy#
Sets the color scheme by proxy.
Sets the color scheme based on the provided proxy.
If no palette is set, the default palette is used. For constant color schemes, ensures a color is set.
Parameters:
proxyPointer to an SBProxy representing a color scheme; may be nullptr.
function setPalette#
Sets the color palette to palette , it takes ownership of thepalette .
Sets the color palette for the color scheme, taking ownership of the provided palette.
Parameters:
palettePointer to the new SBPalette; the existing palette is deleted.
function setSelectionFilter#
Sets the selection filter to selectionFilterString and its name toselectionFilterName .
void SBDVisualPresetStep::setSelectionFilter (
const std::string & selectionFilterString,
const std::string & selectionFilterName
)
Sets the selection filter for this visual preset step.
Parameters:
selectionFilterStringThe selection filter expression string.selectionFilterNameThe human readable name for the selection filter.
function setSelectorProxy#
Sets the selector by proxy.
Sets the selector based on the provided proxy.
The current selector and selection filter are cleared before setting.
Parameters:
proxyPointer to an SBProxy representing a selector; may be nullptr.
function setVisualModelProxy#
Sets the visual model by proxy.
Sets the visual model based on the provided proxy.
The current visual model is cleared before setting.
Parameters:
proxyPointer to an SBProxy representing a visual model; may be nullptr.
function toPythonCode#
Returns the string representation of the object that can be used to reconstruct it in Python.
Generates a Python code representation of the visual preset step.
Constructs a string containing a Python constructor call that can be used to recreate this visual preset step, including its selection filter, visual model, color scheme, colors, palette, and actions.
Returns:
A string with the Python code representation of this object.
function ~SBDVisualPresetStep#
Destructor.
Destroys the visual preset step, releasing any owned resources.
Public Static Functions Documentation#
function createColorScheme#
Creates a color scheme colorSchemeClassName for nodes innodeIndexer colorized with color palettepalette .
static SBNodeColorScheme * SBDVisualPresetStep::createColorScheme (
const std::string & colorSchemeClassName,
const SBNodeIndexer & nodeIndexer,
const SBPalette * palette=nullptr
)
Creates a node color scheme instance for a given per-attribute color scheme.
Parameters:
colorSchemeClassNameName of the color scheme class to create.nodeIndexerIndexer that provides the nodes to be colored.paletteOptional color palette to initialize the scheme. May be nullptr.
Returns:
Pointer to a newly allocated SBNodeColorScheme instance, or nullptr if the class name is not recognized.
function getColorSchemeProxy [2/2]#
Returns a proxy that corresponds to a color scheme with the public name publicName .
Retrieves a color scheme proxy by public name.
Returns a pointer to the color scheme proxy whose public name matches publicName. If publicName is empty or no matching proxy is found, returns nullptr.
Parameters:
publicNameThe public name of the color scheme to locate.
Returns:
Pointer to the matching SBProxy object, or nullptr if not found.
function getDefaultPalette#
Returns a clone of the default color palette for color scheme colorSchemeClassName .
static SBDPalette * SBDVisualPresetStep::getDefaultPalette (
const std::string & colorSchemeClassName
)
Retrieves the default color palette for a per-attribute color scheme.
Parameters:
colorSchemeClassNameName of the color scheme class.
Returns:
Pointer to a newly allocated SBDPalette containing the default palette, or nullptr if the class name is not recognized.
function getVisualModelProxy [2/2]#
Returns a proxy that corresponds to a visual model with the public name publicName .
Retrieves a visual model proxy by public name.
Returns a pointer to the visual model proxy whose public name matches publicName. If publicName is empty or no matching proxy is found, returns nullptr.
Parameters:
publicNameThe public name of the visual model to locate.
Returns:
Pointer to the matching SBProxy object, or nullptr if not found.
function isPerAttributeColorScheme#
Returns true if the color schemecolorSchemeClassName is a per-attribute color scheme.
static bool SBDVisualPresetStep::isPerAttributeColorScheme (
const std::string & colorSchemeClassName
)
Determines whether the given color scheme class name corresponds to a per-attribute color scheme.
Parameters:
colorSchemeClassNameThe name of the color scheme class to check.
Returns:
true if the class name represents a per-attribute color scheme, false otherwise.
Protected Attributes Documentation#
variable dataPointer#
A pointer to the private data.