3#include "Engine/Primitives/Primitive.h"
4#include "Engine/Selection/IndexSet.h"
25 static std::unique_ptr<SelectionComponent>
fromString(std::string_view
string);
29 static std::unique_ptr<SelectionComponent>
fromGroup(std::string_view name);
40 virtual bool containsFace(
46 virtual bool containsPoint(
52 virtual bool containsVertex(
78 static std::unique_ptr<PathSelectionComponent> parse(std::string_view
string);
103 std::string primPath_;
104 std::shared_ptr<IndexSet> points_;
105 std::shared_ptr<IndexSet> faces_;
106 std::shared_ptr<IndexSet> vertices_;
115 static std::unique_ptr<GroupSelectionComponent> create(std::string_view name);
122 bool inverted =
false
128 bool inverted =
false
134 bool inverted =
false
140 std::string groupName_;
Basic attribute, parameter, and node types for Enzo.
size_t Offset
enzo::Offset is the internal discontinuous index of an element in a given AttributeOwner.
Definition Types.h:100
size_t Index
enzo::Index is the continuous index of an element in a given AttributeOwner.
Definition Types.h:91
Selection component that resolves membership through a named group.
Definition SelectionComponent.h:113
bool isWholePrim(const geo::Primitive &prim) const override
Whether the component selects the prim as a whole.
Definition SelectionComponent.cpp:268
Selection component anchored to a primitive path plus optional per element index sets.
Definition SelectionComponent.h:76
bool isWholePrim(const geo::Primitive &prim) const override
Whether the component selects the prim as a whole.
Definition SelectionComponent.cpp:176
Abstract base for one piece of a Selection expression.
Definition SelectionComponent.h:20
static std::unique_ptr< SelectionComponent > fromString(std::string_view string)
Parses one component string and returns the appropriate subclass.
Definition SelectionComponent.cpp:43
virtual bool isWholePrim(const geo::Primitive &prim) const =0
Whether the component selects the prim as a whole.
static std::unique_ptr< SelectionComponent > fromGroup(std::string_view name)
Creates a group based component for the named group.
Definition SelectionComponent.cpp:64
Base class for all primitive types in the engine.