Blue Brain BioExplorer
BrickedVolume.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  * All rights reserved. Do not distribute without permission.
4  * Responsible Author: Daniel Nachbaur <daniel.nachbaur@epfl.ch>
5  *
6  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License version 3.0 as published
10  * by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #pragma once
23 
25 
27 
28 namespace core
29 {
34 class BrickedVolume : public virtual Volume
35 {
36 public:
43  PLATFORM_API virtual void setBrick(const void* data, const Vector3ui& position, const Vector3ui& size) = 0;
44 
45 protected:
52  BrickedVolume(const Vector3ui& dimensions, const Vector3f& spacing, const DataType type)
53  : Volume(dimensions, spacing, type)
54  {
55  }
56 };
57 } // namespace core
#define PLATFORM_API
Definition: Api.h:37
A volume type where the voxels are copied for each added brick.
Definition: BrickedVolume.h:35
BrickedVolume(const Vector3ui &dimensions, const Vector3f &spacing, const DataType type)
Constructs a new BrickedVolume object.
Definition: BrickedVolume.h:52
virtual PLATFORM_API void setBrick(const void *data, const Vector3ui &position, const Vector3ui &size)=0
Sets a brick of data in the volume.
A base class for volumes.
Definition: Volume.h:34
glm::vec3 Vector3f
Definition: MathTypes.h:137
glm::vec< 3, uint32_t > Vector3ui
Definition: MathTypes.h:134
DataType
Definition: Types.h:344