ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkBioGene.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkBioGene_h
19 #define itkBioGene_h
20 
21 
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include "itkMacro.h"
26 #include "ITKBioCellExport.h"
27 
28 namespace itk
29 {
30 namespace bio
31 {
43 class ITKBioCell_EXPORT Gene
44 {
45 public:
46  typedef std::string NameType;
47  typedef std::string DomainType;
48  typedef double AffinityType;
49  typedef std::map< DomainType, AffinityType > ProteinDomainsType;
50 
51  typedef struct {
53  bool m_Type;
55 
56  typedef std::vector< ControlDomainType > GeneControlDomainsType;
57 
58 public:
59  Gene();
60  virtual ~Gene();
61 
62  void Copy(const Gene & genome);
63 
65  void SetName(const NameType & name);
66 
67  void SetName(const char *name);
68 
69  const char * GetName() const;
70 
76  void AddProteinDomain(const DomainType & domain, AffinityType affinity);
77 
81  void AddGeneControlDomain(const DomainType & domain, bool type);
82 
83 private:
87 };
88 } // end namespace bio
89 } // end namespace itk
90 
91 #endif
NameType m_Name
Definition: itkBioGene.h:84
*brief Mask an image with the negative of a mask **This class is templated over the types of the *input image type
std::vector< ControlDomainType > GeneControlDomainsType
Definition: itkBioGene.h:56
This class implements the abstraction of a biological gene.
Definition: itkBioGene.h:43
ProteinDomainsType m_ProteinDomains
Definition: itkBioGene.h:86
std::string DomainType
Definition: itkBioGene.h:47
std::string NameType
Definition: itkBioGene.h:46
double AffinityType
Definition: itkBioGene.h:48
std::map< DomainType, AffinityType > ProteinDomainsType
Definition: itkBioGene.h:49
GeneControlDomainsType m_ControlDomains
Definition: itkBioGene.h:85