#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 |
Definition at line 22 of file OutlineModelBuilder.h.
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 24 of file OutlineModelBuilder.cxx.
References axesEnv_Reader, axesEnvOtherConceptsFN, conceptsFile, imageSourceEnv_Reader, imagesSectionEnv_Reader, imagesSectionEnvOtherConceptsFN, outlinesEnv_Reader, and outlinesEnvOtherConceptsFN.
00025 { 00026 conceptsFile = theConceptsFile; 00027 imagesSectionEnvOtherConceptsFN = datadir + "/imageSectionOtherConceptsFile.cf";//"C:/Creatis/Maracas/src/interface/wxWindows/NDimension/data/imageSectionOtherConceptsFile.cf"; 00028 outlinesEnvOtherConceptsFN = datadir + "/outlinesOtherConceptsFile.cf";//"C:/Creatis/Maracas/src/interface/wxWindows/NDimension/data/outlinesOtherConceptsFile.cf"; 00029 axesEnvOtherConceptsFN = datadir + "/axesOtherConceptsFile.cf";//"C:/Creatis/Maracas/src/interface/wxWindows/NDimension/data/axesOtherConceptsFile.cf"; 00030 axesEnv_Reader = NULL; 00031 imagesSectionEnv_Reader = NULL; 00032 imageSourceEnv_Reader = NULL; 00033 outlinesEnv_Reader = NULL; 00034 }
OutlineModelBuilder::~OutlineModelBuilder | ( | ) |
Destroys an AxeThing
Definition at line 39 of file OutlineModelBuilder.cxx.
References axesEnv_Reader, imageSourceEnv_Reader, imagesSectionEnv_Reader, and outlinesEnv_Reader.
00040 { 00041 delete axesEnv_Reader; 00042 delete imagesSectionEnv_Reader; 00043 delete imageSourceEnv_Reader; 00044 delete outlinesEnv_Reader; 00045 }
void OutlineModelBuilder::buildAxe_Envornment | ( | std::string | axesFile, | |
std::map< std::string, AxeThing * > * | axes | |||
) |
Builds the AxeThing * environment
axesFile | File path with the object key names and specific instants for each one | |
axes | The axes to include in the enivorment |
Definition at line 113 of file OutlineModelBuilder.cxx.
References axesEnv_Reader, axesEnvOtherConceptsFN, and conceptsFile.
Referenced by KernelManagerContour::initializeEnvironment().
00114 { 00115 if( !conceptsFile.empty() ) 00116 axesEnv_Reader = new ReaderEnvironment<AxeThing *> ( axesEnvOtherConceptsFN, conceptsFile, axesFile, axes); 00117 }
void OutlineModelBuilder::buildCountour_Envornment | ( | std::string | outlinesFile, | |
std::map< std::string, ContourThing * > * | outlines | |||
) |
Builds the CountourThing * environment
outlinesFile | File path with the object key names and specific instants for each one | |
outlines | The outlines to include in the enivorment |
Definition at line 124 of file OutlineModelBuilder.cxx.
References conceptsFile, outlinesEnv_Reader, and outlinesEnvOtherConceptsFN.
Referenced by KernelManagerContour::initializeEnvironment().
00125 { 00126 if( !conceptsFile.empty() ) 00127 outlinesEnv_Reader = new ReaderEnvironment< ContourThing *> ( outlinesEnvOtherConceptsFN, conceptsFile, outlinesFile, outlines); 00128 }
void OutlineModelBuilder::buildImageSection_Envornment | ( | std::string | sectionsFile, | |
std::map< std::string, ImageSectionThing * > * | sections | |||
) |
Builds the ImageSectionThing * environment
sectionsFile | File path with the object key names and specific instants for each one | |
sections | The sections to include in the enivorment |
Definition at line 101 of file OutlineModelBuilder.cxx.
References conceptsFile, imagesSectionEnv_Reader, and imagesSectionEnvOtherConceptsFN.
Referenced by KernelManagerContour::initializeEnvironment().
00102 { 00103 if( !conceptsFile.empty() ) 00104 imagesSectionEnv_Reader = new ReaderEnvironment<ImageSectionThing *> ( imagesSectionEnvOtherConceptsFN, conceptsFile, sectionsFile, sections); 00105 }
void OutlineModelBuilder::buildImageSource_Envornment | ( | std::string | sourcesFile, | |
std::map< std::string, ImageSourceThing * > * | sources | |||
) |
Builds the ImageSourceThing * environment
sourcesFile | File path with the object key names and specific instants for each one | |
sources | The sources to include in the enivorment |
Definition at line 89 of file OutlineModelBuilder.cxx.
References conceptsFile, and imageSourceEnv_Reader.
Referenced by KernelManagerContour::initializeEnvironment().
00090 { 00091 if( !conceptsFile.empty() ) 00092 imageSourceEnv_Reader = new ReaderEnvironment<ImageSourceThing *> (conceptsFile, sourcesFile, sources); 00093 //imageSourceEnv_Reader = new ReaderEnvironment<ImageSourceThing *> ("data/holaConceptsFile.cf", sourcesFile, sources); 00094 }
SomeEnvironment< AxeThing * > * OutlineModelBuilder::getAxesEnv | ( | ) |
Gets the AxeThing environment
AxesEnv |
Definition at line 70 of file OutlineModelBuilder.cxx.
References axesEnv_Reader.
Referenced by KernelManagerContour::initializeEnvironment().
00071 { 00072 return ( axesEnv_Reader!= NULL ) ? axesEnv_Reader->getEnvironment() : new SomeEnvironment<AxeThing *>(); 00073 }
SomeEnvironment< ContourThing * > * OutlineModelBuilder::getContourEnv | ( | ) |
Gets the ContourThing environment
ContourEnv |
ContourEnv |
Definition at line 78 of file OutlineModelBuilder.cxx.
References outlinesEnv_Reader.
Referenced by KernelManagerContour::initializeEnvironment().
00079 { 00080 return ( outlinesEnv_Reader!= NULL ) ? outlinesEnv_Reader->getEnvironment() : new SomeEnvironment<ContourThing *>(); 00081 }
SomeEnvironment< ImageSectionThing * > * OutlineModelBuilder::getImSectionEnv | ( | ) |
Gets the ImageSectionThing environment
imSectionEnv |
Definition at line 62 of file OutlineModelBuilder.cxx.
References imagesSectionEnv_Reader.
Referenced by KernelManagerContour::initializeEnvironment().
00063 { 00064 return ( imagesSectionEnv_Reader!= NULL ) ? imagesSectionEnv_Reader->getEnvironment() : new SomeEnvironment<ImageSectionThing *>(); 00065 }
SomeEnvironment< ImageSourceThing * > * OutlineModelBuilder::getImSourceEnv | ( | ) |
Gets the ImageSourceThing environment
ImSourceEnv |
Definition at line 54 of file OutlineModelBuilder.cxx.
References imageSourceEnv_Reader.
Referenced by KernelManagerContour::initializeEnvironment().
00055 { 00056 return ( imageSourceEnv_Reader!= NULL ) ? imageSourceEnv_Reader->getEnvironment() : new SomeEnvironment<ImageSourceThing *>(); 00057 }
ReaderEnvironment<AxeThing *>* OutlineModelBuilder::axesEnv_Reader [private] |
Represents the environment builder based of reading files of axes
Definition at line 104 of file OutlineModelBuilder.h.
Referenced by buildAxe_Envornment(), getAxesEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().
std::string OutlineModelBuilder::axesEnvOtherConceptsFN [private] |
Definition at line 130 of file OutlineModelBuilder.h.
Referenced by buildAxe_Envornment(), and OutlineModelBuilder().
std::string OutlineModelBuilder::conceptsFile [private] |
Definition at line 124 of file OutlineModelBuilder.h.
Referenced by buildAxe_Envornment(), buildCountour_Envornment(), buildImageSection_Envornment(), buildImageSource_Envornment(), and OutlineModelBuilder().
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 114 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 109 of file OutlineModelBuilder.h.
Referenced by buildImageSection_Envornment(), getImSectionEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().
std::string OutlineModelBuilder::imagesSectionEnvOtherConceptsFN [private] |
Definition at line 126 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 119 of file OutlineModelBuilder.h.
Referenced by buildCountour_Envornment(), getContourEnv(), OutlineModelBuilder(), and ~OutlineModelBuilder().
std::string OutlineModelBuilder::outlinesEnvOtherConceptsFN [private] |
Definition at line 128 of file OutlineModelBuilder.h.
Referenced by buildCountour_Envornment(), and OutlineModelBuilder().