ITK
4.2.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Segmentation
BioCell
include
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
27
namespace
itk
28
{
29
namespace
bio
30
{
42
class
ITK_EXPORT
Gene
43
{
44
public
:
45
typedef
std::string
NameType
;
46
typedef
std::string
DomainType
;
47
typedef
double
AffinityType
;
48
typedef
std::map< DomainType, AffinityType >
ProteinDomainsType
;
49
50
typedef
struct
{
51
DomainType
m_Domain
;
52
bool
m_Type
;
53
}
ControlDomainType
;
54
55
typedef
std::vector< ControlDomainType >
GeneControlDomainsType
;
56
public
:
57
Gene
();
58
virtual
~
Gene
();
59
60
void
Copy(
const
Gene
& genome);
61
63
void
SetName(
const
NameType
& name);
64
65
void
SetName(
const
char
*name);
66
67
const
char
* GetName()
const
;
68
74
void
AddProteinDomain(
const
DomainType
& domain,
AffinityType
affinity);
75
79
void
AddGeneControlDomain(
const
DomainType
& domain,
bool
type);
80
81
private
:
82
NameType
m_Name
;
83
GeneControlDomainsType
m_ControlDomains
;
84
ProteinDomainsType
m_ProteinDomains
;
85
};
86
}
// end namespace bio
87
}
// end namespace itk
88
89
#endif
90
Generated on Tue Jul 10 2012 23:20:21 for ITK by
1.8.1