![]() |
NDEVR
API Documentation
|
A DesignCommand subclass that dispatches common design operations based on a ManagedCommandType enum value and serialized string parameters. More...
Public Member Functions | |
| ManagedDesignCommand () | |
| Default constructor. | |
| virtual bool | addTarget (UUID target_id) override |
| Adds a target object UUID to this command. | |
| bool | canCombineWith (const DynamicPointer< DesignCommand > &command) override |
| Checks whether this command can be combined with another into a single operation. | |
| bool | canGroupWith (const DynamicPointer< DesignCommand > &command) override |
| Checks whether this command can be grouped with another for batch execution. | |
| void | combineWith (const DynamicPointer< DesignCommand > &command) override |
| Combines this command with another compatible command, merging their operations. | |
| void | deleteEnclosedSelection (DesignObjectLookup *lookup) |
| Deletes geometry within an enclosed selection region from the given lookup. | |
| void | execute (DesignObjectLookup *lookup) override |
| Executes this managed command against the given DesignObjectLookup. | |
| bool | hasUndo (const UUID &uuid) const |
| Checks whether undo parameters exist for a given target object. | |
| virtual StringView | icon () const override |
| Gets the icon identifier for this command based on its command_type. | |
| bool | isAsyncExecution () const override |
| Whether this command should be executed asynchronously. | |
| virtual TranslatedString | name () const override |
| Gets the human-readable translated name of this command based on its command_type. | |
| const Buffer< String > & | params () const |
| Gets the command parameters. | |
| void | removeUndo (const UUID &uuid) |
| Removes the stored undo parameters for a specific target object. | |
| void | setParams (const Buffer< String > ¶ms) |
| Sets the command parameters from a buffer of strings. | |
| void | setParams (const String ¶ms) |
| Sets the command parameters by splitting a pipe-delimited string. | |
| template<class t_arg_type> | |
| void | setUndoParams (const UUID &uuid, const t_arg_type ¶ms) |
| Stores a single undo parameter for a specific target object. | |
| template<class t_arg_type_a, class t_arg_type_b> | |
| void | setUndoParams (const UUID &uuid, const t_arg_type_a ¶m_a, const t_arg_type_b ¶m_b) |
| Stores two undo parameters for a specific target object. | |
| template<class t_arg_type_a, class t_arg_type_b, class t_arg_type_c> | |
| void | setUndoParams (const UUID &uuid, const t_arg_type_a ¶m_a, const t_arg_type_b ¶m_b, const t_arg_type_c ¶m_c) |
| Stores three undo parameters for a specific target object. | |
| String | toString () const |
| Produces a human-readable string representation of this command including its targets and parameters. | |
| Dictionary< UUID, Buffer< String > > | undoParams () |
| Gets a copy of the entire undo parameter dictionary. | |
| const Dictionary< UUID, Buffer< String > > & | undoParams () const |
| Gets the entire undo parameter dictionary (const). | |
| const Buffer< String > & | undoParams (const UUID &uuid) const |
| Gets the undo parameters stored for a specific target object. | |
| Public Member Functions inherited from DesignCommand | |
| DesignCommand () | |
| Default constructor. | |
| DesignCommand (const DesignCommand &command)=default | |
| Default copy constructor. | |
| virtual | ~DesignCommand () |
| Virtual destructor. | |
| void | setUndoRedoID (UUID undo_redo_group) |
| Sets the undo-redo group identifier for this command. | |
| UUID | undoRedoID () const |
| Gets the undo-redo group identifier for this command. | |
Static Public Member Functions | |
| static DynamicPointer< ManagedDesignCommand > | AddActiveFilters (const String &filters) |
| Creates a command to append additional filters to the active filter set. | |
| static DynamicPointer< ManagedDesignCommand > | AutoRegister (const String &filters, const UUID &reference) |
| Creates a command to automatically register objects using a filter and reference. | |
| static DynamicPointer< ManagedDesignCommand > | CalculateTangents (bool calc_tangent, bool calc_bitangent) |
| Creates a command to compute tangent and/or bitangent vectors for target geometry. | |
| static DynamicPointer< ManagedDesignCommand > | CalibrateScan (Angle< fltp08 > angle, bool calibrate_yaw, InterpolationValues value=InterpolationValues::e_linear) |
| Creates a command to calibrate scan data with an explicit angle and yaw correction. | |
| static DynamicPointer< ManagedDesignCommand > | CalibrateScan (bool calibrate_yaw, InterpolationValues value=InterpolationValues::e_linear) |
| Creates a command to calibrate scan data with optional yaw correction. | |
| static DynamicPointer< ManagedDesignCommand > | CenterAlign () |
| Creates a command to center-align the target objects at the origin. | |
| static DynamicPointer< ManagedDesignCommand > | ClearAll () |
| Creates a command to clear all design objects from the lookup. | |
| static DynamicPointer< ManagedDesignCommand > | ColorByChannel (String vertex_channel) |
| Creates a command to colorize geometry vertices based on a named data channel. | |
| static DynamicPointer< ManagedDesignCommand > | CreateGeometry (const StringView &name=StringView()) |
| Creates a command to create a new geometry object. | |
| static DynamicPointer< ManagedDesignCommand > | CreateMaterial (const StringView &name=StringView()) |
| Creates a command to create a new material object. | |
| static DynamicPointer< ManagedDesignCommand > | Delete () |
| Creates a command to delete target design objects. | |
| static DynamicPointer< ManagedDesignCommand > | DeleteEnclosedArea () |
| Creates a command to delete geometry enclosed within a selection area. | |
| static DynamicPointer< ManagedDesignCommand > | Explode () |
| Creates a command to explode grouped objects into individual children. | |
| static DynamicPointer< ManagedDesignCommand > | FillHolesByNeighbor () |
| Creates a command to fill mesh holes by extrapolating from neighboring geometry. | |
| static DynamicPointer< ManagedDesignCommand > | FlipNormals () |
| Creates a command to flip (reverse) the normals on target geometry. | |
| static DynamicPointer< ManagedDesignCommand > | Group (const String &model_name=String()) |
| Creates a command to group the target objects under a new parent model. | |
| static DynamicPointer< ManagedDesignCommand > | MakeClosedSolid (bool is_closed_solid) |
| Creates a command to mark geometry as a closed solid or open surface. | |
| static DynamicPointer< ManagedDesignCommand > | PlaceObject (const Matrix< fltp08 > &transform) |
| Creates a command to place an object using the given transformation matrix. | |
| static DynamicPointer< ManagedDesignCommand > | RemoveActiveFilter (const uint04 &index) |
| Creates a command to remove an active filter by its index. | |
| static DynamicPointer< ManagedDesignCommand > | RemoveDuplicateVertices () |
| Creates a command to remove duplicate vertices from the target geometry. | |
| static DynamicPointer< ManagedDesignCommand > | RemoveSmoothingCommand () |
| Creates a command to remove any applied smoothing from the target geometry. | |
| static DynamicPointer< ManagedDesignCommand > | ScaleObject (const fltp08 &scale) |
| Creates a command to uniformly scale an object by a single factor. | |
| static DynamicPointer< ManagedDesignCommand > | ScaleObject (const fltp08 &scale, const Vector< 3, fltp08 > &scale_center) |
| Creates a command to uniformly scale an object about a specified center point. | |
| static DynamicPointer< ManagedDesignCommand > | ScaleObject (const Vector< 3, fltp08 > &scale) |
| Creates a command to scale an object by per-axis scale factors. | |
| static DynamicPointer< ManagedDesignCommand > | ScaleObject (const Vector< 3, fltp08 > &scale, const Vector< 3, fltp08 > &scale_center) |
| Creates a command to scale an object by per-axis factors about a specified center point. | |
| static DynamicPointer< ManagedDesignCommand > | SelectObjects (bool add_to_selection) |
| Creates a non-undoable command to select target objects in the design. | |
| static DynamicPointer< ManagedDesignCommand > | SendInfo (const String &info) |
| Creates a command to append data or informational content to the target. | |
| template<class t_type> | |
| static DynamicPointer< ManagedDesignCommand > | set (NDPG geo_property, const t_type &value) |
| Creates a command to set a geometry property to the given value. | |
| template<class t_type> | |
| static DynamicPointer< ManagedDesignCommand > | set (NDPN mod_property, const t_type &value) |
| Creates a command to set a model property to the given value. | |
| static DynamicPointer< ManagedDesignCommand > | SetActiveFilters (const String &filters) |
| Creates a command to replace the active filter set on target objects. | |
| template<class t_type> | |
| static DynamicPointer< ManagedDesignCommand > | SetMaterialProperty (NDPM mat_property, const t_type &value) |
| Creates a command to set a material property to the given value. | |
| static DynamicPointer< ManagedDesignCommand > | SetMetadata (const String &label, const String &value) |
| Creates a command to set a metadata key-value pair on target objects. | |
| static DynamicPointer< ManagedDesignCommand > | SetModelMaterialMode (Model::MaterialMode mode) |
| Creates a command to set the material mode on a model. | |
| static DynamicPointer< ManagedDesignCommand > | SetNormalMode (NormalMode mode) |
| Creates a command to set the normal computation mode on target geometry. | |
| static DynamicPointer< ManagedDesignCommand > | SetNormalMode (NormalMode mode, Angle< fltp08 > smooth_angle) |
| Creates a command to set the normal mode with a smooth angle threshold. | |
| template<class t_type> | |
| static DynamicPointer< ManagedDesignCommand > | SetProperty (NDPO design_property, const t_type &value) |
| Creates a command to set a design-level property to the given value. | |
| static DynamicPointer< ManagedDesignCommand > | SetRealThickness (fltp08 real_thickness) |
| Creates a command to set the real-world thickness of a geometry. | |
| static DynamicPointer< ManagedDesignCommand > | SetSize (const Vector< 3, fltp08 > &size) |
| Creates a command to set the size of a design object. | |
| static DynamicPointer< ManagedDesignCommand > | SetUVColor (const RGBColor &uv_color) |
| Creates a command to set the UV color using the default UV type. | |
| static DynamicPointer< ManagedDesignCommand > | SetUVColor (UVType uv_type, const RGBColor &uv_color) |
| Creates a command to set the UV color for a specific UV type. | |
| static DynamicPointer< ManagedDesignCommand > | SetUVImage (UVType uv_type, const String &uv_image) |
| Creates a command to set the UV texture image for a specific UV type. | |
| static DynamicPointer< ManagedDesignCommand > | SetUVIntensity (UVType uv_type, fltp08 uv_intensity) |
| Creates a command to set the UV intensity for a specific UV type. | |
| static DynamicPointer< ManagedDesignCommand > | SetUVMode (UVType uv_type, Material::UVMode uv_mode) |
| Creates a command to set the UV mapping mode for a given UV type. | |
| static DynamicPointer< ManagedDesignCommand > | SetUVPropertyChannel (UVType uv_type, String uv_channel) |
| Creates a command to set the UV property channel for a specific UV type. | |
| static DynamicPointer< ManagedDesignCommand > | SetWindingMode (WindingMode mode) |
| Creates a command to set the polygon winding mode on target geometry. | |
| static DynamicPointer< ManagedDesignCommand > | SliceIntoPolylines (const Matrix< fltp08 > &transform, const Vector< 3, fltp08 > &spacing) |
| Creates a command to slice geometry into polylines along planes defined by a transform and spacing. | |
| static DynamicPointer< ManagedDesignCommand > | SmoothCotangentCommand (uint04 number_of_iterations) |
| Creates a cotangent-weighted smoothing command with the given iteration count. | |
| static DynamicPointer< ManagedDesignCommand > | SmoothCotangentCommand (uint04 number_of_iterations, fltp08 shrink_rate, fltp08 grow_rate) |
| Creates a cotangent-weighted smoothing command with shrink and grow rates for Taubin-style smoothing. | |
| static DynamicPointer< ManagedDesignCommand > | SmoothLaplacianCommand (uint04 number_of_iterations) |
| Creates a Laplacian smoothing command with the given iteration count. | |
| static DynamicPointer< ManagedDesignCommand > | SmoothLaplacianCommand (uint04 number_of_iterations, fltp08 shrink_rate, fltp08 grow_rate) |
| Creates a Laplacian smoothing command with shrink and grow rates for Taubin-style smoothing. | |
| template<class t_type> | |
| static DynamicPointer< ManagedDesignCommand > | UpdateVertex (VertexProperty property, uint04 vertex_id, const t_type &new_location) |
| Creates a command to update a single vertex property value. | |
| static DynamicPointer< ManagedDesignCommand > | ValidateCommand () |
| Creates a command that validates the target design objects. | |
Public Attributes | |
| ManagedCommandType | command_type |
| The type of managed operation this command represents. | |
| Buffer< String > | m_command_params |
| The serialized string parameters for this command. | |
| Dictionary< UUID, Buffer< String > > | m_undo_params |
| Per-target undo parameters keyed by UUID, used to restore previous state. | |
| Buffer< UUID > | targets |
| The UUIDs of design objects this command will operate on. | |
| Public Attributes inherited from DesignCommand | |
| bool | can_undo = true |
| Whether this command supports being undone. | |
| bool | has_executed = false |
| Whether this command has already been executed. | |
| UUID | id |
| Unique identifier for this command instance. | |
| bool | is_undo = false |
| Whether this command represents an undo operation. | |
| LogPtr | log |
| Log pipe for reporting command progress and errors. | |
| Time | time = Constant<Time>::Invalid |
| Timestamp of when the command was created or executed. | |
| bool | update_project_modified = true |
| Whether executing this command should mark the project as modified. | |
Protected Member Functions | |
| ManagedDesignCommand (ManagedCommandType command) | |
| Constructs a managed command of the given type with no parameters. | |
| ManagedDesignCommand (ManagedCommandType command, const String ¶ms) | |
| Constructs a managed command of the given type with pipe-delimited parameter string. | |
| template<class t_arg_type> | |
| ManagedDesignCommand (ManagedCommandType command, const t_arg_type ¶m_a) | |
| Constructs a managed command with a single typed parameter. | |
| template<class t_arg_type_a, class t_arg_type_b> | |
| ManagedDesignCommand (ManagedCommandType command, const t_arg_type_a ¶m_a, const t_arg_type_b ¶m_b) | |
| Constructs a managed command with two typed parameters, pipe-delimited. | |
| template<class t_arg_type_a, class t_arg_type_b, class t_arg_type_c> | |
| ManagedDesignCommand (ManagedCommandType command, const t_arg_type_a ¶m_a, const t_arg_type_b ¶m_b, const t_arg_type_c ¶m_c) | |
| Constructs a managed command with three typed parameters, pipe-delimited. | |
| template<class t_arg_type_a, class t_arg_type_b, class t_arg_type_c, class t_arg_type_d> | |
| ManagedDesignCommand (ManagedCommandType command, const t_arg_type_a ¶m_a, const t_arg_type_b ¶m_b, const t_arg_type_c ¶m_c, const t_arg_type_d ¶m_d) | |
| Constructs a managed command with four typed parameters, pipe-delimited. | |
Additional Inherited Members | |
| Protected Attributes inherited from DesignCommand | |
| UUID | m_undo_redo_group |
| The undo-redo group this command belongs to, for batch undo/redo. | |
A DesignCommand subclass that dispatches common design operations based on a ManagedCommandType enum value and serialized string parameters.
ManagedDesignCommand encodes its operation type and arguments as pipe-delimited strings, allowing commands to be constructed via static factory methods, serialized for undo/redo, and executed polymorphically through the DesignCommand interface. Each target object is identified by UUID.
Definition at line 84 of file ManagedDesignCommand.h.
| ManagedDesignCommand::ManagedDesignCommand | ( | ) |
Default constructor.
Initializes with command type e_none.
Referenced by AddActiveFilters(), AutoRegister(), CalculateTangents(), CalibrateScan(), CalibrateScan(), CenterAlign(), ClearAll(), ColorByChannel(), CreateGeometry(), CreateMaterial(), Delete(), DeleteEnclosedArea(), Explode(), FillHolesByNeighbor(), FlipNormals(), Group(), MakeClosedSolid(), PlaceObject(), RemoveActiveFilter(), RemoveDuplicateVertices(), RemoveSmoothingCommand(), ScaleObject(), ScaleObject(), ScaleObject(), ScaleObject(), SelectObjects(), SendInfo(), set(), set(), SetActiveFilters(), SetMaterialProperty(), SetMetadata(), SetModelMaterialMode(), SetNormalMode(), SetNormalMode(), SetProperty(), SetRealThickness(), SetSize(), SetUVColor(), SetUVColor(), SetUVImage(), SetUVIntensity(), SetUVMode(), SetUVPropertyChannel(), SetWindingMode(), SliceIntoPolylines(), SmoothCotangentCommand(), SmoothCotangentCommand(), SmoothLaplacianCommand(), SmoothLaplacianCommand(), UpdateVertex(), and ValidateCommand().
|
explicitprotected |
Constructs a managed command of the given type with no parameters.
| [in] | command | The type of managed command to create. |
|
protected |
|
inlineprotected |
Constructs a managed command with a single typed parameter.
| [in] | command | The type of managed command to create. |
| [in] | param_a | The parameter value, converted to String. |
Definition at line 109 of file ManagedDesignCommand.h.
References command_type, and setParams().
|
inlineprotected |
Constructs a managed command with two typed parameters, pipe-delimited.
| [in] | command | The type of managed command to create. |
| [in] | param_a | The first parameter value. |
| [in] | param_b | The second parameter value. |
Definition at line 121 of file ManagedDesignCommand.h.
References command_type, and setParams().
|
inlineprotected |
Constructs a managed command with three typed parameters, pipe-delimited.
| [in] | command | The type of managed command to create. |
| [in] | param_a | The first parameter value. |
| [in] | param_b | The second parameter value. |
| [in] | param_c | The third parameter value. |
Definition at line 134 of file ManagedDesignCommand.h.
References command_type, and setParams().
|
inlineprotected |
Constructs a managed command with four typed parameters, pipe-delimited.
| [in] | command | The type of managed command to create. |
| [in] | param_a | The first parameter value. |
| [in] | param_b | The second parameter value. |
| [in] | param_c | The third parameter value. |
| [in] | param_d | The fourth parameter value. |
Definition at line 148 of file ManagedDesignCommand.h.
References command_type, and setParams().
|
inlinestatic |
Creates a command to append additional filters to the active filter set.
| [in] | filters | The filter specification string to add. |
Definition at line 649 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlineoverridevirtual |
Adds a target object UUID to this command.
| [in] | target_id | The UUID of the design object to target. |
Reimplemented from DesignCommand.
Definition at line 823 of file ManagedDesignCommand.h.
References targets.
|
inlinestatic |
Creates a command to automatically register objects using a filter and reference.
| [in] | filters | The filter specification string. |
| [in] | reference | The UUID of the reference object to register against. |
Definition at line 660 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to compute tangent and/or bitangent vectors for target geometry.
| [in] | calc_tangent | Whether to calculate tangent vectors. |
| [in] | calc_bitangent | Whether to calculate bitangent vectors. |
Definition at line 710 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to calibrate scan data with an explicit angle and yaw correction.
| [in] | angle | The calibration angle to apply. |
| [in] | calibrate_yaw | Whether to calibrate yaw rotation. |
| [in] | value | The interpolation method to use for calibration. |
Definition at line 700 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to calibrate scan data with optional yaw correction.
| [in] | calibrate_yaw | Whether to calibrate yaw rotation. |
| [in] | value | The interpolation method to use for calibration. |
Definition at line 689 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
overridevirtual |
Checks whether this command can be combined with another into a single operation.
| [in] | command | The other command to check combination compatibility with. |
Reimplemented from DesignCommand.
|
overridevirtual |
Checks whether this command can be grouped with another for batch execution.
| [in] | command | The other command to check grouping compatibility with. |
Reimplemented from DesignCommand.
|
inlinestatic |
Creates a command to center-align the target objects at the origin.
Definition at line 777 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
Referenced by DesignObjectOrientation::DesignObjectOrientation().
|
inlinestatic |
Creates a command to clear all design objects from the lookup.
Definition at line 769 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to colorize geometry vertices based on a named data channel.
| [in] | vertex_channel | The name of the vertex data channel to use for coloring. |
Definition at line 604 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
overridevirtual |
Combines this command with another compatible command, merging their operations.
| [in] | command | The command to combine with this one. |
Reimplemented from DesignCommand.
|
inlinestatic |
Creates a command to create a new geometry object.
| [in] | name | The optional name for the new geometry. |
Definition at line 362 of file ManagedDesignCommand.h.
References ManagedDesignCommand(), and name().
|
inlinestatic |
Creates a command to create a new material object.
| [in] | name | The optional name for the new material. |
Definition at line 380 of file ManagedDesignCommand.h.
References ManagedDesignCommand(), and name().
|
inlinestatic |
Creates a command to delete target design objects.
Definition at line 353 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to delete geometry enclosed within a selection area.
Definition at line 511 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
| void ManagedDesignCommand::deleteEnclosedSelection | ( | DesignObjectLookup * | lookup | ) |
Deletes geometry within an enclosed selection region from the given lookup.
| [in] | lookup | The design object registry containing the objects to modify. |
|
overridevirtual |
Executes this managed command against the given DesignObjectLookup.
| [in] | lookup | The design object registry to modify. |
Reimplemented from DesignCommand.
|
inlinestatic |
Creates a command to explode grouped objects into individual children.
Definition at line 566 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to fill mesh holes by extrapolating from neighboring geometry.
Definition at line 558 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to flip (reverse) the normals on target geometry.
Definition at line 740 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to group the target objects under a new parent model.
| [in] | model_name | The optional name for the new parent group model. |
Definition at line 575 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inline |
Checks whether undo parameters exist for a given target object.
| [in] | uuid | The UUID of the target object to check. |
Definition at line 252 of file ManagedDesignCommand.h.
References m_undo_params.
|
overridevirtual |
Gets the icon identifier for this command based on its command_type.
Implements DesignCommand.
|
overridevirtual |
Whether this command should be executed asynchronously.
Reimplemented from DesignCommand.
|
inlinestatic |
Creates a command to mark geometry as a closed solid or open surface.
| [in] | is_closed_solid | True to mark as a closed solid, false for an open surface. |
Definition at line 622 of file ManagedDesignCommand.h.
References ManagedDesignCommand(), and is_closed_solid.
|
overridevirtual |
Gets the human-readable translated name of this command based on its command_type.
Implements DesignCommand.
Referenced by CreateGeometry(), CreateMaterial(), and toString().
Gets the command parameters.
Definition at line 179 of file ManagedDesignCommand.h.
References m_command_params.
Referenced by ManagedDesignCommand(), setParams(), setParams(), setUndoParams(), and toString().
|
inlinestatic |
Creates a command to place an object using the given transformation matrix.
| [in] | transform | The placement transformation matrix. |
Definition at line 292 of file ManagedDesignCommand.h.
References ManagedDesignCommand(), and transform.
|
inlinestatic |
Creates a command to remove an active filter by its index.
| [in] | index | The index of the filter to remove. |
Definition at line 669 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to remove duplicate vertices from the target geometry.
Definition at line 503 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to remove any applied smoothing from the target geometry.
Definition at line 495 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inline |
Removes the stored undo parameters for a specific target object.
| [in] | uuid | The UUID of the target object whose undo parameters to remove. |
Definition at line 282 of file ManagedDesignCommand.h.
References m_undo_params.
|
inlinestatic |
Creates a command to uniformly scale an object by a single factor.
| [in] | scale | The uniform scale factor applied to all three axes. |
Definition at line 397 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to uniformly scale an object about a specified center point.
| [in] | scale | The uniform scale factor. |
| [in] | scale_center | The 3D point around which scaling occurs. |
Definition at line 416 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to scale an object by per-axis scale factors.
| [in] | scale | The 3D scale vector with per-axis factors. |
Definition at line 406 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to scale an object by per-axis factors about a specified center point.
| [in] | scale | The 3D scale vector with per-axis factors. |
| [in] | scale_center | The 3D point around which scaling occurs. |
Definition at line 426 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a non-undoable command to select target objects in the design.
| [in] | add_to_selection | Whether to add to the current selection or replace it. |
Definition at line 729 of file ManagedDesignCommand.h.
References ManagedDesignCommand(), DesignCommand::can_undo, and DesignCommand::update_project_modified.
|
inlinestatic |
Creates a command to append data or informational content to the target.
| [in] | info | The data string to append. |
Definition at line 751 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set a geometry property to the given value.
| [in] | geo_property | The geometry property identifier to set. |
| [in] | value | The value to assign to the property. |
Definition at line 303 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set a model property to the given value.
| [in] | mod_property | The model property identifier to set. |
| [in] | value | The value to assign to the property. |
Definition at line 325 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to replace the active filter set on target objects.
| [in] | filters | The filter specification string. |
Definition at line 640 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set a material property to the given value.
| [in] | mat_property | The material property identifier to set. |
| [in] | value | The value to assign to the property. |
Definition at line 314 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set a metadata key-value pair on target objects.
| [in] | label | The metadata key. |
| [in] | value | The metadata value. |
Definition at line 761 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
Referenced by DesignObjectComboWidget::sendCommand(), and DesignObjectToggleWidget::sendCommand().
|
inlinestatic |
Creates a command to set the material mode on a model.
| [in] | mode | The material mode to apply. |
Definition at line 334 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the normal computation mode on target geometry.
| [in] | mode | The normal mode to apply. |
Definition at line 631 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the normal mode with a smooth angle threshold.
| [in] | mode | The normal mode to apply. |
| [in] | smooth_angle | The angle threshold for smooth shading. |
Definition at line 679 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
Sets the command parameters from a buffer of strings.
| [in] | params | The buffer of string parameters to store. |
Definition at line 163 of file ManagedDesignCommand.h.
References m_command_params, and params().
Referenced by ManagedDesignCommand(), ManagedDesignCommand(), ManagedDesignCommand(), and ManagedDesignCommand().
|
inline |
Sets the command parameters by splitting a pipe-delimited string.
| [in] | params | The pipe-delimited parameter string to split and store. |
Definition at line 171 of file ManagedDesignCommand.h.
References StringView::Convert(), m_command_params, and params().
|
inlinestatic |
Creates a command to set a design-level property to the given value.
| [in] | design_property | The design property identifier to set. |
| [in] | value | The value to assign to the property. |
Definition at line 345 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
Referenced by DesignObjectOrientation::orientationEditedSlot(), DesignObjectComboWidget::sendCommand(), and DesignObjectToggleWidget::sendCommand().
|
inlinestatic |
Creates a command to set the real-world thickness of a geometry.
| [in] | real_thickness | The thickness value to apply. |
Definition at line 435 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the size of a design object.
| [in] | size | The 3D size vector to apply. |
Definition at line 371 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inline |
Stores a single undo parameter for a specific target object.
| [in] | uuid | The UUID of the target object. |
| [in] | params | The undo parameter value, converted to String. |
Definition at line 220 of file ManagedDesignCommand.h.
References m_undo_params, and params().
|
inline |
Stores two undo parameters for a specific target object.
| [in] | uuid | The UUID of the target object. |
| [in] | param_a | The first undo parameter value. |
| [in] | param_b | The second undo parameter value. |
Definition at line 231 of file ManagedDesignCommand.h.
References m_undo_params.
|
inline |
Stores three undo parameters for a specific target object.
| [in] | uuid | The UUID of the target object. |
| [in] | param_a | The first undo parameter value. |
| [in] | param_b | The second undo parameter value. |
| [in] | param_c | The third undo parameter value. |
Definition at line 243 of file ManagedDesignCommand.h.
References m_undo_params.
|
inlinestatic |
Creates a command to set the UV color using the default UV type.
| [in] | uv_color | The color to apply. |
Definition at line 530 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the UV color for a specific UV type.
| [in] | uv_type | The UV channel type to modify. |
| [in] | uv_color | The color to apply. |
Definition at line 540 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the UV texture image for a specific UV type.
| [in] | uv_type | The UV channel type to modify. |
| [in] | uv_image | The image path or identifier to apply. |
Definition at line 550 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the UV intensity for a specific UV type.
| [in] | uv_type | The UV channel type to modify. |
| [in] | uv_intensity | The intensity value to apply. |
Definition at line 585 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the UV mapping mode for a given UV type.
| [in] | uv_type | The UV channel type to modify. |
| [in] | uv_mode | The UV mapping mode to apply. |
Definition at line 521 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the UV property channel for a specific UV type.
| [in] | uv_type | The UV channel type to modify. |
| [in] | uv_channel | The property channel name to bind. |
Definition at line 595 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to set the polygon winding mode on target geometry.
| [in] | mode | The winding mode to apply. |
Definition at line 613 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command to slice geometry into polylines along planes defined by a transform and spacing.
| [in] | transform | The transformation matrix defining slice plane orientation and origin. |
| [in] | spacing | The spacing between slice planes along each axis. |
Definition at line 720 of file ManagedDesignCommand.h.
References ManagedDesignCommand(), and transform.
|
inlinestatic |
Creates a cotangent-weighted smoothing command with the given iteration count.
| [in] | number_of_iterations | The number of smoothing iterations to perform. |
Definition at line 453 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a cotangent-weighted smoothing command with shrink and grow rates for Taubin-style smoothing.
| [in] | number_of_iterations | The number of smoothing iterations to perform. |
| [in] | shrink_rate | The shrink factor applied per iteration. |
| [in] | grow_rate | The grow factor applied per iteration. |
Definition at line 475 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a Laplacian smoothing command with the given iteration count.
| [in] | number_of_iterations | The number of smoothing iterations to perform. |
Definition at line 444 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a Laplacian smoothing command with shrink and grow rates for Taubin-style smoothing.
| [in] | number_of_iterations | The number of smoothing iterations to perform. |
| [in] | shrink_rate | The shrink factor applied per iteration. |
| [in] | grow_rate | The grow factor applied per iteration. |
Definition at line 464 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inline |
Produces a human-readable string representation of this command including its targets and parameters.
Format: "CommandName[uuid1,uuid2,...](param1|param2|...)"
Definition at line 787 of file ManagedDesignCommand.h.
References TranslatedString::englishTranslation(), name(), params(), and targets.
|
inline |
Gets a copy of the entire undo parameter dictionary.
Definition at line 210 of file ManagedDesignCommand.h.
References m_undo_params.
|
inline |
Gets the entire undo parameter dictionary (const).
Definition at line 202 of file ManagedDesignCommand.h.
References m_undo_params.
Gets the undo parameters stored for a specific target object.
| [in] | uuid | The UUID of the target object whose undo parameters to retrieve. |
Definition at line 188 of file ManagedDesignCommand.h.
References m_undo_params.
|
inlinestatic |
Creates a command to update a single vertex property value.
| [in] | property | The vertex property to modify. |
| [in] | vertex_id | The index of the vertex to update. |
| [in] | new_location | The new value to assign to the vertex property. |
Definition at line 487 of file ManagedDesignCommand.h.
References ManagedDesignCommand().
|
inlinestatic |
Creates a command that validates the target design objects.
Definition at line 388 of file ManagedDesignCommand.h.
References ManagedDesignCommand().