template<UnsignedInt dimensions, class Feature, class T>
Magnum::SceneGraph::FeatureGroup class

Group of features.

See AbstractGroupedFeature for more information.

Base classes

template<UnsignedInt dimensions, class T>
class AbstractFeatureGroup<dimensions, T>
Base for group of features.

Constructors, destructors, conversion operators

~FeatureGroup()
Destructor.

Public functions

auto isEmpty() const -> bool
Whether the group is empty.
auto size() const -> std::size_t
Count of features in the group.
auto operator[](std::size_t index) -> Feature&
Feature at given index.
auto operator[](std::size_t index) const -> const Feature&
auto add(Feature& feature) -> FeatureGroup<dimensions, Feature, T>&
Add a feature to the group.
auto remove(Feature& feature) -> FeatureGroup<dimensions, Feature, T>&
Remove a feature from the group.

Function documentation

template<UnsignedInt dimensions, class Feature, class T>
Magnum::SceneGraph::FeatureGroup<dimensions, Feature, T>::~FeatureGroup()

Destructor.

Removes all features belonging to this group, but not deletes them.

template<UnsignedInt dimensions, class Feature, class T>
const Feature& Magnum::SceneGraph::FeatureGroup<dimensions, Feature, T>::operator[](std::size_t index) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<UnsignedInt dimensions, class Feature, class T>
FeatureGroup<dimensions, Feature, T>& Magnum::SceneGraph::FeatureGroup<dimensions, Feature, T>::add(Feature& feature)

Add a feature to the group.

Returns Reference to self (for method chaining)

If the features is part of another group, it is removed from it.

template<UnsignedInt dimensions, class Feature, class T>
FeatureGroup<dimensions, Feature, T>& Magnum::SceneGraph::FeatureGroup<dimensions, Feature, T>::remove(Feature& feature)

Remove a feature from the group.

Returns Reference to self (for method chaining)

The feature must be part of the group.