Voreen - Volume Rendering Engine Voreen - Volume Rendering Engine
Voreen - Volume Rendering Engine Westfälische Wilhelms-Universität Münster
  • About
  • Gallery
  • Download
  • Documentation
  • Publications
  • Community

  • Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

include/voreen/core/datastructures/volume/volumecontainer.h

00001 /**********************************************************************
00002  *                                                                    *
00003  * Voreen - The Volume Rendering Engine                               *
00004  *                                                                    *
00005  * Copyright (C) 2005-2010 The Voreen Team. <http://www.voreen.org>   *
00006  *                                                                    *
00007  * This file is part of the Voreen software package. Voreen is free   *
00008  * software: you can redistribute it and/or modify it under the terms *
00009  * of the GNU General Public License version 2 as published by the    *
00010  * Free Software Foundation.                                          *
00011  *                                                                    *
00012  * Voreen is distributed in the hope that it will be useful,          *
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of     *
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the       *
00015  * GNU General Public License for more details.                       *
00016  *                                                                    *
00017  * You should have received a copy of the GNU General Public License  *
00018  * in the file "LICENSE.txt" along with this program.                 *
00019  * If not, see <http://www.gnu.org/licenses/>.                        *
00020  *                                                                    *
00021  * The authors reserve all rights not expressly granted herein. For   *
00022  * non-commercial academic use see the license exception specified in *
00023  * the file "LICENSE-academic.txt". To get information about          *
00024  * commercial licensing please contact the authors.                   *
00025  *                                                                    *
00026  **********************************************************************/
00027 
00028 #ifndef VRN_VOLUMECONTAINER_H
00029 #define VRN_VOLUMECONTAINER_H
00030 
00031 #include "voreen/core/datastructures/volume/volumecollection.h"
00032 #include "voreen/core/datastructures/volume/volumehandle.h"
00033 
00034 #include <vector>
00035 #include <string>
00036 
00037 namespace voreen {
00038 
00049 class VolumeContainer : public VolumeCollection {
00050 
00051 public:
00052 
00053     VolumeContainer();
00054 
00060     virtual ~VolumeContainer();
00061 
00070     virtual void add(VolumeHandle* volumeHandle);
00071 
00080     virtual void add(const VolumeCollection* volumeCollection);
00081 
00089     virtual void remove(const VolumeHandle* handle);
00090 
00098     virtual void remove(const VolumeCollection* volumeCollection);
00099 
00105     virtual void clear();
00106 
00122     virtual VolumeCollection* loadVolume(const std::string& filename)
00123         throw (tgt::FileException, std::bad_alloc);
00124 
00145     virtual VolumeHandle* loadRawVolume(const std::string& filename,
00146                                         const std::string& objectModel, const std::string& format,
00147                                         const tgt::ivec3& dimensions, const tgt::vec3& spacing = tgt::vec3(1.f),
00148                                         int headerskip = 0, bool bigEndian = false)
00149         throw (tgt::FileException, std::bad_alloc);
00150 
00151 
00156     virtual void release(const VolumeHandle* handle);
00157 
00162     virtual void releaseAll();
00163 
00164 protected:
00165 
00167     static const std::string loggerCat_;
00168 };
00169 
00170 }   // namespace
00171 
00172 #endif
  • Getting Started
  • Video Tutorials
  • Build Instructions
  • Adding a Module
  • Programming Tutorials
  • API Documentation
  • FAQ
edit