Blue Brain BioExplorer
CommonTypes.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  *
4  * The Blue Brain BioExplorer is a tool for scientists to extract and analyse
5  * scientific data from visualization
6  *
7  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
8  *
9  * This library is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU Lesser General Public License version 3.0 as published
11  * by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #pragma once
24 
26 #define NO_USER_DATA -1
27 
29 {
30  mono = 0,
31  left = 1,
32  right = 2,
33  side_by_side = 3
34 };
35 
37 {
39  plane = 1,
40  sphere = 2
41 };
42 
44 {
46  basic = 1,
47  diffuse = 2,
48  electron = 3,
49  cartoon = 4,
51  perlin = 6,
53  checker = 8,
54  goodsell = 9,
55  surface_normal = 10
56 };
57 
59 {
61  emitter = 1,
62  receiver = 2
63 };
64 
66 {
68  vector
69 };
70 
71 #define OCTREE_DATA_OFFSET_X 0
72 #define OCTREE_DATA_OFFSET_Y 1
73 #define OCTREE_DATA_OFFSET_Z 2
74 #define OCTREE_DATA_SPACING_X 3
75 #define OCTREE_DATA_SPACING_Y 4
76 #define OCTREE_DATA_SPACING_Z 5
77 #define OCTREE_DATA_DIMENSION_X 6
78 #define OCTREE_DATA_DIMENSION_Y 7
79 #define OCTREE_DATA_DIMENSION_Z 8
80 #define OCTREE_DATA_INITIAL_DISTANCE 9
81 #define OCTREE_DATA_VALUES 10
82 #define OCTREE_DATA_INDICES 11
83 
84 #define FIELD_VECTOR_DATA_SIZE 6
85 #define FIELD_VECTOR_OFFSET_POSITION_X 0
86 #define FIELD_VECTOR_OFFSET_POSITION_Y 1
87 #define FIELD_VECTOR_OFFSET_POSITION_Z 2
88 #define FIELD_VECTOR_OFFSET_DIRECTION_X 3
89 #define FIELD_VECTOR_OFFSET_DIRECTION_Y 4
90 #define FIELD_VECTOR_OFFSET_DIRECTION_Z 5
91 
92 #define FIELD_POINT_DATA_SIZE 4
93 #define FIELD_POINT_OFFSET_POSITION_X 0
94 #define FIELD_POINT_OFFSET_POSITION_Y 1
95 #define FIELD_POINT_OFFSET_POSITION_Z 2
96 #define FIELD_POINT_OFFSET_VALUE 3
97 
98 #define RAY_FLAG_PRIMARY 0
99 #define RAY_FLAG_SECONDARY 1
MaterialChameleonMode
Definition: CommonTypes.h:59
@ receiver
Definition: CommonTypes.h:62
@ undefined_chameleon_mode
Definition: CommonTypes.h:60
@ emitter
Definition: CommonTypes.h:61
MaterialShadingMode
Definition: CommonTypes.h:44
@ surface_normal
Definition: CommonTypes.h:55
@ electron
Definition: CommonTypes.h:48
@ undefined_shading_mode
Definition: CommonTypes.h:45
@ electron_transparency
Definition: CommonTypes.h:50
@ diffuse
Definition: CommonTypes.h:47
@ cartoon
Definition: CommonTypes.h:49
@ goodsell
Definition: CommonTypes.h:54
@ checker
Definition: CommonTypes.h:53
@ basic
Definition: CommonTypes.h:46
@ perlin
Definition: CommonTypes.h:51
@ diffuse_transparency
Definition: CommonTypes.h:52
MaterialClippingMode
Definition: CommonTypes.h:37
@ plane
Definition: CommonTypes.h:39
@ no_clipping
Definition: CommonTypes.h:38
@ sphere
Definition: CommonTypes.h:40
OctreeDataType
Definition: CommonTypes.h:66
@ point
Definition: CommonTypes.h:67
@ vector
Definition: CommonTypes.h:68
CameraStereoMode
Definition: CommonTypes.h:29
@ mono
Definition: CommonTypes.h:30
@ left
Definition: CommonTypes.h:31
@ side_by_side
Definition: CommonTypes.h:33
@ right
Definition: CommonTypes.h:32