A service that contains registered algorithms for removing vertices or shapes from a group of vertices or shapes.
More...
|
|
| GeometryFilter (const GeometryFilter &&filter)=delete |
| | Move constructor is deleted; filters are non-movable.
|
|
| GeometryFilter (const GeometryFilter &filter)=delete |
| | Copy constructor is deleted; filters are non-copyable.
|
|
virtual | ~GeometryFilter ()=default |
| | Virtual destructor defaulted for proper polymorphic cleanup.
|
| virtual bool | canRunFilter (const GeometryFilterParameters &) |
| | Returns whether this filter can be applied given the target parameters.
|
| virtual Buffer< FilterDescription > | defaultFilterArguments () |
| | Returns the default set of FilterDescription arguments for this filter.
|
| const String & | filterID () const |
| | Returns the internal string identifier of this filter.
|
| const TranslatedString & | filterName () const |
| | Returns the user-facing translated name of this filter.
|
| virtual bool | runFilter (GeometryFilterParameters ¶meters)=0 |
| | Executes this filter on the given parameters, modifying the filtered flags.
|
|
|
String | m_id |
| | The internal unique string identifier for this filter.
|
|
TranslatedString | m_name |
| | The user-facing translated display name for this filter.
|
A service that contains registered algorithms for removing vertices or shapes from a group of vertices or shapes.
- See also
- Geometry, GeometryBoolean, GeometryRegistration
Definition at line 51 of file GeometryFilter.h.
◆ GeometryFilter()
◆ AddAvailableFilter()
Registers a GeometryFilter instance in the global available filters dictionary.
- Parameters
-
| [in] | filter | The filter to register. Ownership is not transferred. |
References GeometryFilter().
◆ AddFilterCommand()
Creates a design command that adds a single filter to the active filter set.
- Parameters
-
| [in] | filter | The filter description to add. |
- Returns
- A DynamicPointer to the created ManagedDesignCommand for undo/redo support.
◆ AvailableFilters()
Returns the global dictionary of all registered GeometryFilter instances keyed by their ID.
- Returns
- A const reference to the dictionary mapping filter IDs to filter pointers.
◆ canRunFilter()
Returns whether this filter can be applied given the target parameters.
- Parameters
-
| [in] | parameters | The filter parameters to check compatibility against. |
- Returns
- True if the filter can run with the given parameters, false otherwise. Default is true.
Reimplemented in PropertyChannelFilter.
Definition at line 138 of file GeometryFilter.h.
◆ ClearAllFiltering()
| void GeometryFilter::ClearAllFiltering |
( |
Geometry & | geo, |
|
|
LogPtr | log, |
|
|
const void * | lock ) |
|
staticprotected |
Clears all filtering results from the given geometry, restoring it to unfiltered state.
- Parameters
-
| [in] | geo | The geometry to clear filtering from. |
| [in] | log | An optional log for reporting progress. |
| [in] | lock | An optional lock pointer for thread synchronization. |
◆ defaultFilterArguments()
◆ ExecuteFiltering() [1/2]
Executes filtering on a single Geometry object using the filters described in the JSON node.
- Parameters
-
| [in] | active_filters | A JSON node describing which filters to apply and their parameters. |
| [in] | transform | The transformation matrix to apply to the geometry. |
| [in] | geo | The geometry to filter. |
| [in] | log | An optional log for reporting progress or errors. |
| [in] | lock | An optional lock pointer for thread synchronization. |
◆ ExecuteFiltering() [2/2]
| void GeometryFilter::ExecuteFiltering |
( |
const JSONNode & | active_filters, |
|
|
Model & | model, |
|
|
LogPtr | log, |
|
|
const void * | lock ) |
|
static |
Executes filtering on all geometry within a Model using the filters described in the JSON node.
- Parameters
-
| [in] | active_filters | A JSON node describing which filters to apply and their parameters. |
| [in] | model | The model whose geometry will be filtered. |
| [in] | log | An optional log for reporting progress or errors. |
| [in] | lock | An optional lock pointer for thread synchronization. |
◆ filterID()
| const String & GeometryFilter::filterID |
( |
| ) |
const |
|
inlinenodiscard |
Returns the internal string identifier of this filter.
- Returns
- A const reference to the filter's ID string.
Definition at line 156 of file GeometryFilter.h.
References m_id.
◆ filterName()
Returns the user-facing translated name of this filter.
- Returns
- A const reference to the filter's translated name.
Definition at line 150 of file GeometryFilter.h.
References m_name.
◆ FinishFiltering()
Applies the filtering results back to the geometry after filter execution.
- Parameters
-
| [in] | transform | The transformation matrix that was used during filtering. |
| [in] | geo | The geometry to apply filtered results to. |
| [in] | params | The parameters containing the filtering results. |
◆ GetAvailableDescriptions()
Retrieves the default FilterDescription entries for all registered filters.
- Returns
- A buffer of FilterDescription objects representing all available filter configurations.
◆ PrepareForFiltering()
Prepares geometry data for filtering by populating the parameters with vertex data.
- Parameters
-
| [in] | transform | The transformation matrix to apply. |
| [in] | geo | The geometry to prepare. |
| [in] | params | The parameters struct to populate with geometry data. |
◆ runFilter()
Executes this filter on the given parameters, modifying the filtered flags.
- Parameters
-
| [in] | parameters | The filter parameters including vertices, transform, and output filtered flags. |
- Returns
- True if the filter was successfully applied and produced changes, false otherwise.
Implemented in PropertyChannelFilter.
◆ SetFiltersCommand()
Creates a design command that replaces the entire active filter set with the given filters.
- Parameters
-
| [in] | filter | The complete set of filter descriptions to apply. |
- Returns
- A DynamicPointer to the created ManagedDesignCommand for undo/redo support.
◆ ToCommandString()
Serializes a set of filter descriptions into a command string representation.
- Parameters
-
| [in] | descriptions | The filter descriptions to serialize. |
- Returns
- A String containing the serialized command representation.
- Note
- The exact format and purpose of this command string is unclear; it may be used for undo/redo command serialization or for persisting filter configurations.
The documentation for this class was generated from the following file: