Visual Computing Library  devel
Loading...
Searching...
No Matches
mesh_components.h
1/*****************************************************************************
2 * VCLib *
3 * Visual Computing Library *
4 * *
5 * Copyright(C) 2021-2025 *
6 * Visual Computing Lab *
7 * ISTI - Italian National Research Council *
8 * *
9 * All rights reserved. *
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the Mozilla Public License Version 2.0 as published *
13 * by the Mozilla Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * Mozilla Public License Version 2.0 *
20 * (https://www.mozilla.org/en-US/MPL/2.0/) for more details. *
21 ****************************************************************************/
22
23#ifndef VCL_MESH_MESH_COMPONENTS_H
24#define VCL_MESH_MESH_COMPONENTS_H
25
26#include "components/bounding_box.h"
27#include "components/color.h"
28#include "components/custom_components.h"
29#include "components/mark.h"
30#include "components/name.h"
31#include "components/texture_images.h"
32#include "components/texture_paths.h"
33#include "components/transform_matrix.h"
34
44namespace vcl::mesh {
45
46/* Port concepts into the mesh namespace */
47template<typename T>
49template<typename T>
51template<typename T>
53template<typename T>
55template<typename T>
57template<typename T>
59template<typename T>
61template<typename T>
63
70template<typename P>
72
73template<typename S>
75
78
81
84
87
90
93
96
98template<bool STORE_TEXTURE_IMAGES>
99using Textures =
100 std::conditional_t<STORE_TEXTURE_IMAGES, TextureImages, TexturePaths>;
101
103template<typename Scalar>
105
108
// end of mesh_components group
110
111} // namespace vcl::mesh
112
113#endif // VCL_MESH_MESH_COMPONENTS_H
A class representing a box in N-dimensional space.
Definition box.h:46
The BoundingBox component class represents an axis aligned bounding box. This class is usually used a...
Definition bounding_box.h:72
The Color class represents a RGBA color that will be part of an Element (e.g. Vertex,...
Definition color.h:66
The CustomComponents Component is a container of additional components associated to an Element (e....
Definition custom_components.h:93
The Mark class is an utility class useful to un-mark components in constant time.
Definition mark.h:90
The Name component class represents a simple name stored as string. This class is usually used as a c...
Definition name.h:67
The TextureImages class represents a component that stores the textures used by a mesh....
Definition texture_images.h:102
The TexturePaths class represents a component that stores the paths of the textures used by a mesh....
Definition texture_paths.h:79
The TransformMatrix class represents a component that stores a 4x4 matrix that can be used for a tran...
Definition transform_matrix.h:70
A concept that checks whether a type T (that should be a Mesh) has the BoundingBox component (inherit...
Definition bounding_box.h:132
A concept that checks whether a type T (that should be a Element or a Mesh) has the Color component (...
Definition color.h:132
A concept that checks whether a type T (that should be an Element or a Mesh) has the CustomComponents...
Definition custom_components.h:316
A concept that checks whether a type T (that should be a Element or a Mesh) has the Mark component (i...
Definition mark.h:198
A concept that checks whether a type T (that should be a Mesh) has the Name component (inherits from ...
Definition name.h:122
A concept that checks whether a type T (that should be a Mesh) has the TextureImages component (inher...
Definition textures.h:45
A concept that checks whether a type T (that should be a Mesh) has the TexturePaths or TextureImages ...
Definition textures.h:61
A concept that checks whether a type T (that should be a Mesh) has the TransformMatrix component (inh...
Definition transform_matrix.h:147
Definition mesh_components.h:48
Definition mesh_components.h:50
Definition mesh_components.h:52
Definition mesh_components.h:54
Definition mesh_components.h:56
Definition mesh_components.h:58
Definition mesh_components.h:60
Definition mesh_components.h:62
std::conditional_t< STORE_TEXTURE_IMAGES, TextureImages, TexturePaths > Textures
Definition mesh_components.h:100