39 #ifndef H_OGF_MESH_COMMANDS_MESH_GROB_FILTER_COMMANDS_H
40 #define H_OGF_MESH_COMMANDS_MESH_GROB_FILTER_COMMANDS_H
78 gom_arg_attribute(where, handler,
"combo_box")
79 gom_arg_attribute(where, values, "vertices;facets;cells")
81 const std::
string& where, const std::
string& filter="*",
92 gom_arg_attribute(where, handler, "combo_box")
93 gom_arg_attribute(where, values, "vertices;facets;cells")
95 const std::
string& where, const std::
string& filter,
106 gom_arg_attribute(where, handler, "combo_box")
107 gom_arg_attribute(where, values, "vertices;facets;cells")
108 void remove_from_filter(
109 const std::
string& where, const std::
string& filter,
118 gom_arg_attribute(attribute, handler, "combo_box")
119 gom_arg_attribute(attribute, values, "$grob.scalar_attributes")
120 void set_filter_from_attribute(
121 const std::
string& attribute, const std::
string& filter,
130 gom_arg_attribute(attribute, handler, "combo_box")
131 gom_arg_attribute(attribute, values, "$grob.scalar_attributes")
132 void add_to_filter_attribute(
133 const std::
string& attribute, const std::
string& filter,
142 gom_arg_attribute(attribute, handler, "combo_box")
143 gom_arg_attribute(attribute, values, "$grob.scalar_attributes")
144 void remove_from_filter_attribute(
145 const std::
string& attribute, const std::
string& filter,
155 gom_arg_attribute(from, handler, "combo_box")
156 gom_arg_attribute(from, values, "vertices;facets;cells")
157 void propagate_filter(const std::
string& from);
159 gom_arg_attribute(filter, handler, "combo_box")
160 gom_arg_attribute(filter, values, "$grob.filters")
161 void copy_filter_to_selection(const std::
string& filter);
163 gom_arg_attribute(selection, handler, "combo_box")
164 gom_arg_attribute(selection, values, "$grob.selections")
165 void copy_selection_to_filter(
166 const std::
string& selection,
bool propagate=true
169 gom_arg_attribute(where, handler, "combo_box")
170 gom_arg_attribute(where, values, "vertices;facets;cells;all")
171 void delete_filters(const std::
string& where="all");
184 static
void propagate_filter(
MeshGrob* mesh, MeshElementsFlags from);
187 enum FilterOp { FILTER_SET, FILTER_ADD, FILTER_REMOVE };
200 const std::string& where,
const std::string& filter=
"*",
216 const std::string& attribute,
const std::string& filter,
Base class for Commands related with a MeshGrob object.
Commands that manipulate mesh attributes.
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.
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.