#include <u_primitive_block.h>
Inheritance diagram for NLPACS::UPrimitiveBlock:

Nevrax France
Definition at line 46 of file u_primitive_block.h.
Public Member Functions | |
| virtual uint | getNbPrimitive ()=0 |
| get the number of primitives in the block | |
| virtual UMovePrimitive::TUserData | getUserData (uint nPrimNb)=0 |
| return the user data for a primitive of the block | |
| virtual | ~UPrimitiveBlock () |
Static Public Member Functions | |
| UPrimitiveBlock * | createPrimitiveBlock (NLMISC::IStream &src) |
| UPrimitiveBlock * | createPrimitiveBlockFromFile (const std::string &fileName) |
|
|
Definition at line 50 of file u_primitive_block.h.
00050 {}
|
|
|
Create a primitive block from a stream. This may raise exception if loading failed Reimplemented in NLPACS::CPrimitiveBlock. Definition at line 111 of file primitive_block_pacs.cpp. Referenced by createPrimitiveBlockFromFile().
|
|
|
Create a primitive block from its file name. This may raise exceptions if loading failed. Reimplemented in NLPACS::CPrimitiveBlock. Definition at line 122 of file primitive_block_pacs.cpp. References createPrimitiveBlock(), and NLMISC::CIFile::open().
00123 {
00124 NL_ALLOC_CONTEXT( Pacs )
00125
00126 NLMISC::CIFile input;
00127 if (input.open(fileName))
00128 {
00129 NLMISC::CIXml xmlInput;
00130 // Init
00131 if (xmlInput.init (input))
00132 {
00133 return createPrimitiveBlock(xmlInput);
00134 }
00135 else
00136 {
00137 throw NLMISC::Exception(std::string("Unable to init an xml input file from ") + fileName);
00138 }
00139 }
00140 return NULL;
00141 }
|
|
|
get the number of primitives in the block
Implemented in NLPACS::CPrimitiveBlock. |
|
|
return the user data for a primitive of the block
Implemented in NLPACS::CPrimitiveBlock. |
1.3.6