Visual Computing Library
Loading...
Searching...
No Matches
vcl::comp::HasColor Concept Reference

HasColor concept is satisfied only if a Element/Mesh class provides the types and member functions specified in this concept. These types and member functions allow to access to a vcl::comp::Color component of a given element/mesh. More...

#include <vclib/concepts/mesh/components/color.h>

Concept definition

template<typename T>
concept vcl::comp::HasColor = requires (T&& obj) {
typename RemoveRef<T>::ColorType;
{ obj.color() } -> ColorConcept;
}
ColorConcept is satisfied only if a class provides the member functions specified in this concept....
Definition color.h:41
HasColor concept is satisfied only if a Element/Mesh class provides the types and member functions sp...
Definition color.h:47

Detailed Description

HasColor concept is satisfied only if a Element/Mesh class provides the types and member functions specified in this concept. These types and member functions allow to access to a vcl::comp::Color component of a given element/mesh.

Note that this concept does not discriminate between the Horizontal Color component and the vertical OptionalColor component, therefore it does not guarantee that a template Element type that satisfies this concept provides Color component at runtime (it is guaranteed only that the proper member functions are available at compile time).