SiGraph: sulcal graphs


foldLabels.h
Go to the documentation of this file.
1
2#ifndef SI_FOLD_BUILDMODEL_H
3#define SI_FOLD_BUILDMODEL_H
4
5
6#include <si/fold/frgraph.h>
7#include <si/model/model.h>
8#include <si/domain/domain.h>
9
10
11namespace sigraph
12{
13
17 class FoldLabels : public std::set<std::string>
18 {
19 public:
20 FoldLabels();
21 FoldLabels( const std::string & filename );
23
24 void readLabels( const std::string & filename );
25 MGraph* createModel( const Model* mod, const Domain* dom,
26 const Model* defMod = 0 ) const;
27
28 protected:
30 void makeVertex( MGraph* mg, const std::string & label, const Model* mod,
31 const Domain* dom ) const;
32
33 private:
34 };
35
36 // inline
37
38 inline FoldLabels::FoldLabels() : std::set<std::string>()
39 {
40 }
41
42
43 inline FoldLabels::FoldLabels( const std::string & filename )
44 : std::set<std::string>()
45 {
46 readLabels( filename );
47 }
48
49
51 {
52 }
53
54}
55
56#endif
57
Domaine de validité.
Definition domain.h:18
void readLabels(const std::string &filename)
MGraph * createModel(const Model *mod, const Domain *dom, const Model *defMod=0) const
void makeVertex(MGraph *mg, const std::string &label, const Model *mod, const Domain *dom) const
Crée le noeud et les bons attributs, duplique le modèle et le domaine.
Graph modèle (classe abstraite).
Definition mgraph.h:48
Modèle pour l'évaluation de cliques de graphes (classe abstraite).
Definition model.h:26
STL namespace.