39#ifndef H_OGF_MESH_COMMANDS_MESH_GROB_FILTER_COMMANDS_H
40#define H_OGF_MESH_COMMANDS_MESH_GROB_FILTER_COMMANDS_H
81 const std::
string& where, const std::
string& filter=
"*",
95 const std::
string& where, const std::
string& filter,
108 void remove_from_filter(
109 const std::
string& where, const std::
string& filter,
120 void set_filter_from_attribute(
121 const std::
string& attribute, const std::
string& filter,
132 void add_to_filter_attribute(
133 const std::
string& attribute, const std::
string& filter,
144 void remove_from_filter_attribute(
145 const std::
string& attribute, const std::
string& filter,
157 void propagate_filter(const std::
string& from);
161 void copy_filter_to_selection(const std::
string& filter);
165 void copy_selection_to_filter(
166 const std::
string& selection,
bool propagate=true
171 void delete_filters(const std::
string& where=
"all");
185 static
void propagate_filter(
MeshGrob* mesh, MeshElementsFlags from);
188 enum FilterOp { FILTER_SET, FILTER_ADD, FILTER_REMOVE };
201 const std::string& where,
const std::string& filter=
"*",
217 const std::string& attribute,
const std::string& filter,
MeshGrobCommands()
MeshGrobCommands constructor.
void apply_filter_op(FilterOp op, const std::string &where, const std::string &filter="*", bool propagate=true)
applies an operation to a filter
MeshGrobFiltersCommands()
MeshGrobAttributesCommands constructor.
~MeshGrobFiltersCommands() override
MeshGrobAttributesCommands destructor.
combo_box gom_arg_attribute(where, values, "vertices;edges;facets;cells") void set_filter(const std gom_arg_attribute(where, handler, "combo_box") gom_arg_attribute(where
adds subsets to a filter
void apply_filter_op_attribute(FilterOp op, const std::string &attribute, const std::string &filter, bool propagate=true)
applies an operation to a filter based on attribute values
A Grob wrapper around Geogram's Mesh class.
Base class for Commands related with a MeshGrob object.
Global Graphite namespace.
Definitions common to all include files in the mesh library.