creaContours_lib
OutlineModelBuilder Class Reference

#include <OutlineModelBuilder.h>

Public Member Functions

 OutlineModelBuilder (std::string conceptsFile, std::string datadir="data")
 
 ~OutlineModelBuilder ()
 
SomeEnvironment
< ImageSourceThing * > * 
getImSourceEnv ()
 
SomeEnvironment
< ImageSectionThing * > * 
getImSectionEnv ()
 
SomeEnvironment< AxeThing * > * getAxesEnv ()
 
SomeEnvironment< ContourThing * > * getContourEnv ()
 
void buildImageSource_Envornment (std::string sourcesFile, std::map< std::string, ImageSourceThing * > *sources)
 
void buildImageSection_Envornment (std::string sectionsFile, std::map< std::string, ImageSectionThing * > *sections)
 
void buildAxe_Envornment (std::string axesFile, std::map< std::string, AxeThing * > *axes)
 
void buildCountour_Envornment (std::string outlinesFile, std::map< std::string, ContourThing * > *outlines)
 

Private Attributes

ReaderEnvironment< AxeThing * > * axesEnv_Reader
 
ReaderEnvironment
< ImageSectionThing * > * 
imagesSectionEnv_Reader
 
ReaderEnvironment
< ImageSourceThing * > * 
imageSourceEnv_Reader
 
ReaderEnvironment
< ContourThing * > * 
outlinesEnv_Reader
 
std::string conceptsFile
 
std::string imagesSectionEnvOtherConceptsFN
 
std::string outlinesEnvOtherConceptsFN
 
std::string axesEnvOtherConceptsFN
 

Detailed Description

Definition at line 47 of file OutlineModelBuilder.h.

Constructor & Destructor Documentation

OutlineModelBuilder::OutlineModelBuilder ( std::string  theConceptsFile,
std::string  datadir = "data" 
)

Creates an OutlineModelBuilder @ param filesNames Paired set of files with the names of the files to read ConceptsFileName, ImageSourcesFile, ImageSectionsFile, AxeThingsFile, ContoursFile @ param sources Paired set of sourceKeyName-ImageSourceThing @ param sections Paired set of sectionKeyName-ImageSectionThing @ param axes Paired set of axeKeyName-AxeThing @ param outlines Paired set of contoKeyName-ContourThing

Creates an OutlineModelBuilder @ param filesNames Paired set of files with the names of the files to read ConceptsFile, ImageSourcesFile, ImageSectionsFile, AxeThingsFile, ContoursFile @ param sources Paired set of sourceKeyName-ImageSourceThing @ param sections Paired set of sectionKeyName-ImageSectionThing @ param axes Paired set of axeKeyName-AxeThing @ param outlines Paired set of contoKeyName-ContourThing

Definition at line 49 of file OutlineModelBuilder.cxx.

References axesEnv_Reader, axesEnvOtherConceptsFN, conceptsFile, imageSourceEnv_Reader, imagesSectionEnv_Reader, imagesSectionEnvOtherConceptsFN, outlinesEnv_Reader, and outlinesEnvOtherConceptsFN.

50  {
51  conceptsFile = theConceptsFile;
52  imagesSectionEnvOtherConceptsFN = datadir + "/imageSectionOtherConceptsFile.cf";//"C:/Creatis/Maracas/src/interface/wxWindows/NDimension/data/imageSectionOtherConceptsFile.cf";
53  outlinesEnvOtherConceptsFN = datadir + "/outlinesOtherConceptsFile.cf";//"C:/Creatis/Maracas/src/interface/wxWindows/NDimension/data/outlinesOtherConceptsFile.cf";
54  axesEnvOtherConceptsFN = datadir + "/axesOtherConceptsFile.cf";//"C:/Creatis/Maracas/src/interface/wxWindows/NDimension/data/axesOtherConceptsFile.cf";
55  axesEnv_Reader = NULL;
57  imageSourceEnv_Reader = NULL;
58  outlinesEnv_Reader = NULL;
59  }
OutlineModelBuilder::~OutlineModelBuilder ( )

Destroys an AxeThing

Definition at line 64 of file OutlineModelBuilder.cxx.

References axesEnv_Reader, imageSourceEnv_Reader, imagesSectionEnv_Reader, and outlinesEnv_Reader.

65  {
66  delete axesEnv_Reader;
68  delete imageSourceEnv_Reader;
69  delete outlinesEnv_Reader;
70  }

Member Function Documentation

void OutlineModelBuilder::buildAxe_Envornment ( std::string  axesFile,
std::map< std::string, AxeThing * > *  axes 
)

Builds the AxeThing * environment

Parameters
axesFileFile path with the object key names and specific instants for each one
axesThe axes to include in the enivorment

Definition at line 138 of file OutlineModelBuilder.cxx.

References axesEnv_Reader, axesEnvOtherConceptsFN, and conceptsFile.

Referenced by KernelManagerContour::initializeEnvironment().

139  {
140  if( !conceptsFile.empty() )
141  axesEnv_Reader = new ReaderEnvironment<AxeThing *> ( axesEnvOtherConceptsFN, conceptsFile, axesFile, axes);
142  }

Here is the caller graph for this function:

void OutlineModelBuilder::buildCountour_Envornment ( std::string  outlinesFile,
std::map< std::string, ContourThing * > *  outlines 
)

Builds the CountourThing * environment

Parameters
outlinesFileFile path with the object key names and specific instants for each one
outlinesThe outlines to include in the enivorment

Definition at line 149 of file OutlineModelBuilder.cxx.

References conceptsFile, outlinesEnv_Reader, and outlinesEnvOtherConceptsFN.

Referenced by KernelManagerContour::initializeEnvironment().

150  {
151  if( !conceptsFile.empty() )
152  outlinesEnv_Reader = new ReaderEnvironment< ContourThing *> ( outlinesEnvOtherConceptsFN, conceptsFile, outlinesFile, outlines);
153  }

Here is the caller graph for this function:

void OutlineModelBuilder::buildImageSection_Envornment ( std::string  sectionsFile,
std::map< std::string, ImageSectionThing * > *  sections 
)

Builds the ImageSectionThing * environment

Parameters
sectionsFileFile path with the object key names and specific instants for each one
sectionsThe sections to include in the enivorment

Definition at line 126 of file OutlineModelBuilder.cxx.

References conceptsFile, imagesSectionEnv_Reader, and imagesSectionEnvOtherConceptsFN.

Referenced by KernelManagerContour::initializeEnvironment().

127  {
128  if( !conceptsFile.empty() )
129  imagesSectionEnv_Reader = new ReaderEnvironment<ImageSectionThing *> ( imagesSectionEnvOtherConceptsFN, conceptsFile, sectionsFile, sections);
130  }

Here is the caller graph for this function:

void OutlineModelBuilder::buildImageSource_Envornment ( std::string  sourcesFile,
std::map< std::string, ImageSourceThing * > *  sources 
)

Builds the ImageSourceThing * environment

Parameters
sourcesFileFile path with the object key names and specific instants for each one
sourcesThe sources to include in the enivorment

Definition at line 114 of file OutlineModelBuilder.cxx.

References conceptsFile, and imageSourceEnv_Reader.

Referenced by KernelManagerContour::initializeEnvironment().

115  {
116  if( !conceptsFile.empty() )
117  imageSourceEnv_Reader = new ReaderEnvironment<ImageSourceThing *> (conceptsFile, sourcesFile, sources);
118  //imageSourceEnv_Reader = new ReaderEnvironment<ImageSourceThing *> ("data/holaConceptsFile.cf", sourcesFile, sources);
119  }

Here is the caller graph for this function:

SomeEnvironment< AxeThing * > * OutlineModelBuilder::getAxesEnv ( )

Gets the AxeThing environment

Parameters
AxesEnv

Definition at line 95 of file OutlineModelBuilder.cxx.

References axesEnv_Reader.

Referenced by KernelManagerContour::initializeEnvironment().

96  {
97  return ( axesEnv_Reader!= NULL ) ? axesEnv_Reader->getEnvironment() : new SomeEnvironment<AxeThing *>();
98  }

Here is the caller graph for this function:

SomeEnvironment< ContourThing * > * OutlineModelBuilder::getContourEnv ( )

Gets the ContourThing environment

Parameters
ContourEnv

Definition at line 103 of file OutlineModelBuilder.cxx.

References outlinesEnv_Reader.

Referenced by KernelManagerContour::initializeEnvironment().

104  {
105  return ( outlinesEnv_Reader!= NULL ) ? outlinesEnv_Reader->getEnvironment() : new SomeEnvironment<ContourThing *>();
106  }

Here is the caller graph for this function:

SomeEnvironment< ImageSectionThing * > * OutlineModelBuilder::getImSectionEnv ( )

Gets the ImageSectionThing environment

Parameters
imSectionEnv

Definition at line 87 of file OutlineModelBuilder.cxx.

References imagesSectionEnv_Reader.

Referenced by KernelManagerContour::initializeEnvironment().

88  {
89  return ( imagesSectionEnv_Reader!= NULL ) ? imagesSectionEnv_Reader->getEnvironment() : new SomeEnvironment<ImageSectionThing *>();
90  }

Here is the caller graph for this function:

SomeEnvironment< ImageSourceThing * > * OutlineModelBuilder::getImSourceEnv ( )

Gets the ImageSourceThing environment

Parameters
ImSourceEnv

Definition at line 79 of file OutlineModelBuilder.cxx.

References imageSourceEnv_Reader.

Referenced by KernelManagerContour::initializeEnvironment().

80  {
81  return ( imageSourceEnv_Reader!= NULL ) ? imageSourceEnv_Reader->getEnvironment() : new SomeEnvironment<ImageSourceThing *>();
82  }

Here is the caller graph for this function:

Member Data Documentation

ReaderEnvironment<AxeThing *>* OutlineModelBuilder::axesEnv_Reader
private

Represents the environment builder based of reading files of axes

Definition at line 129 of file OutlineModelBuilder.h.

Referenced by buildAxe_Envornment(), getAxesEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().

std::string OutlineModelBuilder::axesEnvOtherConceptsFN
private

Definition at line 155 of file OutlineModelBuilder.h.

Referenced by buildAxe_Envornment(), and OutlineModelBuilder().

std::string OutlineModelBuilder::conceptsFile
private
ReaderEnvironment<ImageSourceThing *>* OutlineModelBuilder::imageSourceEnv_Reader
private

Represents the environment builder based of reading files of source images (Generally a complete volume data per image)

Definition at line 139 of file OutlineModelBuilder.h.

Referenced by buildImageSource_Envornment(), getImSourceEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().

ReaderEnvironment<ImageSectionThing *>* OutlineModelBuilder::imagesSectionEnv_Reader
private

Represents the environment builder based of reading files of section images

Definition at line 134 of file OutlineModelBuilder.h.

Referenced by buildImageSection_Envornment(), getImSectionEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().

std::string OutlineModelBuilder::imagesSectionEnvOtherConceptsFN
private

Definition at line 151 of file OutlineModelBuilder.h.

Referenced by buildImageSection_Envornment(), and OutlineModelBuilder().

ReaderEnvironment<ContourThing *>* OutlineModelBuilder::outlinesEnv_Reader
private

Represents the environment builder based of reading files of outlines (outlines)

Definition at line 144 of file OutlineModelBuilder.h.

Referenced by buildCountour_Envornment(), getContourEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().

std::string OutlineModelBuilder::outlinesEnvOtherConceptsFN
private

Definition at line 153 of file OutlineModelBuilder.h.

Referenced by buildCountour_Envornment(), and OutlineModelBuilder().


The documentation for this class was generated from the following files: