Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIShaderRepository.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkIShaderRepository.h"
18 
19 namespace mitk
20 {
22  struct IShaderRepository::ShaderPrivate
23  {
24  ShaderPrivate() : id(-1) {}
25  int id;
26  std::string name;
27  std::string materialXml;
28  };
29 
30  IShaderRepository::Shader::Shader() : d(new ShaderPrivate) {}
31  void IShaderRepository::Shader::SetId(int id) { d->id = id; }
33  int IShaderRepository::Shader::GetId() const { return d->id; }
34  std::string IShaderRepository::Shader::GetName() const { return d->name; }
35  std::string IShaderRepository::Shader::GetMaterialXml() const { return d->materialXml; }
36  void IShaderRepository::Shader::SetName(const std::string &name) { d->name = name; }
37  void IShaderRepository::Shader::SetMaterialXml(const std::string &xml) { d->materialXml = xml; }
38 }
void SetMaterialXml(const std::string &xml)
void SetName(const std::string &name)
DataCollection - Class to facilitate loading/accessing structured data.