creaContours_lib
|
#include <OsirixParser.h>
Public Member Functions | |
OsirixParser (std::string xsdfile="", double *spacing=NULL, int *extent=NULL) | |
~OsirixParser () | |
int | ParseFile (const char *xmlfile) |
std::string | getErrorLine () |
std::string | getContoursFileName () |
const std::map< int, vector < vector< double > > > & | getContoursMapMM () |
const std::map< int, vector < vector< double > > > & | getContoursMapPX () |
const std::map< int, std::string > & | getContoursNameMM () |
const std::map< int, std::string > & | getContoursNamePX () |
Private Types | |
typedef vector< vector< double > > | vectorXYZ |
Private Member Functions | |
void | saveCreaContoursFormat () |
void | writeHeader (FILE *pFile) |
void | writeContours (FILE *pFile) |
void | writeContoursStatic (FILE *pFile) |
void | setErrorLine (DOMNodeList *list) |
void | getUserData (DOMElement *element) |
void | getData (DOMNodeList *list, std::vector< std::string > &vect, std::string tagname) |
DOMNode * | getLastNode (DOMNodeList *list) |
void | parseOSIRIX_DICT (DOMNodeList *list) |
void | parseOSIRIX_POINT_MM (DOMNodeList *list) |
void | parseOSIRIX_POINT_PX (DOMNodeList *list) |
Definition at line 64 of file OsirixParser.h.
|
private |
Definition at line 143 of file OsirixParser.h.
OsirixParser::OsirixParser | ( | std::string | xsdfile = "" , |
double * | spacing = NULL , |
||
int * | extent = NULL |
||
) |
Constructor for the parser, with the information of the pixel spacing and image dimensions
Definition at line 34 of file OsirixParser.cxx.
References _extent, _spacing, CREACONTOUR, CREACONTOUR_IMAGEDIMENSIONS, CREACONTOUR_IMAGESPACING, CREACONTOUR_INSTANT, CREACONTOUR_NUMBEROFCONTOURS, CREACONTOUR_NUMBEROFCONTOURSSTATIC, CREACONTOUR_NUMBEROFCONTROLPOINTS, CREACONTOUR_TYPEMODEL, CREACONTOUR_TYPEVIEW, CREACONTOUR_VERSION, OSIRIX_ARRAY, OSIRIX_DICT, OSIRIX_IMAGEINDEX, OSIRIX_IMAGES, OSIRIX_INTEGER, OSIRIX_KEY, OSIRIX_NAME, OSIRIX_NUMBEROFROIS, OSIRIX_POINT_MM, OSIRIX_POINT_PX, OSIRIX_ROIS, OSIRIX_STRING, schema, and TEMPIMPORTOSIRIXFILE.
Referenced by ParseFile().
OsirixParser::~OsirixParser | ( | ) |
std::string OsirixParser::getContoursFileName | ( | ) |
Definition at line 488 of file OsirixParser.cxx.
References TEMPIMPORTOSIRIXFILE.
Referenced by KernelManagerContour::parseOsirixFile().
|
inline |
Definition at line 88 of file OsirixParser.h.
|
inline |
Definition at line 91 of file OsirixParser.h.
|
inline |
Definition at line 96 of file OsirixParser.h.
|
inline |
Definition at line 99 of file OsirixParser.h.
|
private |
Definition at line 395 of file OsirixParser.cxx.
std::string OsirixParser::getErrorLine | ( | ) |
|
private |
Definition at line 222 of file OsirixParser.cxx.
|
private |
Definition at line 246 of file OsirixParser.cxx.
References OSIRIX_DICT, and parseOSIRIX_DICT().
Referenced by ParseFile().
int OsirixParser::ParseFile | ( | const char * | xmlfile | ) |
Definition at line 122 of file OsirixParser.cxx.
References errorline, getUserData(), OsirixParser(), saveCreaContoursFormat(), and schema.
|
private |
Definition at line 250 of file OsirixParser.cxx.
References _imageindex, _roiname, OSIRIX_IMAGEINDEX, OSIRIX_INTEGER, OSIRIX_NAME, OSIRIX_POINT_MM, OSIRIX_POINT_PX, OSIRIX_STRING, parseOSIRIX_POINT_MM(), and parseOSIRIX_POINT_PX().
Referenced by getUserData().
|
private |
Definition at line 301 of file OsirixParser.cxx.
References _roiname, contoursmapMM, contoursnameMM, and OSIRIX_STRING.
Referenced by parseOSIRIX_DICT().
|
private |
Definition at line 349 of file OsirixParser.cxx.
References _imageindex, _roiname, contoursmapPX, contoursnamePX, and OSIRIX_STRING.
Referenced by parseOSIRIX_DICT().
|
private |
Definition at line 407 of file OsirixParser.cxx.
References TEMPIMPORTOSIRIXFILE, writeContours(), writeContoursStatic(), and writeHeader().
Referenced by ParseFile().
|
private |
|
private |
Definition at line 427 of file OsirixParser.cxx.
References _extent, _spacing, contoursmapPX, CREACONTOUR_INSTANT, CREACONTOUR_NUMBEROFCONTROLPOINTS, CREACONTOUR_TYPEMODEL, and CREACONTOUR_TYPEVIEW.
Referenced by saveCreaContoursFormat().
|
private |
Definition at line 418 of file OsirixParser.cxx.
References _extent, _spacing, CREACONTOUR_IMAGEDIMENSIONS, CREACONTOUR_IMAGESPACING, and CREACONTOUR_NUMBEROFCONTOURSSTATIC.
Referenced by saveCreaContoursFormat().
|
private |
Definition at line 469 of file OsirixParser.cxx.
References _extent, _spacing, contoursmapPX, CREACONTOUR, CREACONTOUR_IMAGEDIMENSIONS, CREACONTOUR_IMAGESPACING, CREACONTOUR_NUMBEROFCONTOURS, and CREACONTOUR_VERSION.
Referenced by saveCreaContoursFormat().
|
private |
Definition at line 141 of file OsirixParser.h.
Referenced by OsirixParser(), writeContours(), writeContoursStatic(), and writeHeader().
|
private |
Definition at line 109 of file OsirixParser.h.
Referenced by parseOSIRIX_DICT(), and parseOSIRIX_POINT_PX().
|
private |
Definition at line 110 of file OsirixParser.h.
Referenced by parseOSIRIX_DICT(), parseOSIRIX_POINT_MM(), and parseOSIRIX_POINT_PX().
|
private |
Definition at line 140 of file OsirixParser.h.
Referenced by OsirixParser(), writeContours(), writeContoursStatic(), and writeHeader().
|
private |
Definition at line 144 of file OsirixParser.h.
Referenced by parseOSIRIX_POINT_MM().
|
private |
Definition at line 145 of file OsirixParser.h.
Referenced by parseOSIRIX_POINT_PX(), writeContours(), and writeHeader().
|
private |
Definition at line 147 of file OsirixParser.h.
Referenced by parseOSIRIX_POINT_MM().
|
private |
Definition at line 148 of file OsirixParser.h.
Referenced by parseOSIRIX_POINT_PX().
|
private |
Definition at line 125 of file OsirixParser.h.
Referenced by OsirixParser(), and writeHeader().
|
private |
Definition at line 127 of file OsirixParser.h.
Referenced by OsirixParser(), writeContoursStatic(), and writeHeader().
|
private |
Definition at line 128 of file OsirixParser.h.
Referenced by OsirixParser(), writeContoursStatic(), and writeHeader().
|
private |
Definition at line 131 of file OsirixParser.h.
Referenced by OsirixParser(), and writeContours().
|
private |
Definition at line 129 of file OsirixParser.h.
Referenced by OsirixParser(), and writeHeader().
|
private |
Definition at line 136 of file OsirixParser.h.
Referenced by OsirixParser(), and writeContoursStatic().
|
private |
Definition at line 133 of file OsirixParser.h.
Referenced by OsirixParser(), and writeContours().
|
private |
Definition at line 132 of file OsirixParser.h.
Referenced by OsirixParser(), and writeContours().
|
private |
Definition at line 134 of file OsirixParser.h.
Referenced by OsirixParser(), and writeContours().
|
private |
Definition at line 126 of file OsirixParser.h.
Referenced by OsirixParser(), and writeHeader().
|
private |
Definition at line 107 of file OsirixParser.h.
Referenced by ParseFile(), and setErrorLine().
|
private |
Definition at line 115 of file OsirixParser.h.
Referenced by OsirixParser().
|
private |
Definition at line 112 of file OsirixParser.h.
Referenced by getUserData(), and OsirixParser().
|
private |
Definition at line 116 of file OsirixParser.h.
Referenced by OsirixParser(), and parseOSIRIX_DICT().
|
private |
Definition at line 114 of file OsirixParser.h.
Referenced by OsirixParser().
|
private |
Definition at line 117 of file OsirixParser.h.
Referenced by OsirixParser(), and parseOSIRIX_DICT().
|
private |
Definition at line 113 of file OsirixParser.h.
Referenced by OsirixParser().
|
private |
Definition at line 123 of file OsirixParser.h.
Referenced by OsirixParser(), and parseOSIRIX_DICT().
|
private |
Definition at line 118 of file OsirixParser.h.
Referenced by OsirixParser().
|
private |
Definition at line 120 of file OsirixParser.h.
Referenced by OsirixParser(), and parseOSIRIX_DICT().
|
private |
Definition at line 121 of file OsirixParser.h.
Referenced by OsirixParser(), and parseOSIRIX_DICT().
|
private |
Definition at line 119 of file OsirixParser.h.
Referenced by OsirixParser().
|
private |
Definition at line 122 of file OsirixParser.h.
Referenced by OsirixParser(), parseOSIRIX_DICT(), parseOSIRIX_POINT_MM(), and parseOSIRIX_POINT_PX().
|
private |
Definition at line 105 of file OsirixParser.h.
Referenced by OsirixParser(), and ParseFile().
|
private |
Definition at line 138 of file OsirixParser.h.
Referenced by getContoursFileName(), OsirixParser(), and saveCreaContoursFormat().