#include <primitive_block.h>
Inheritance diagram for NLPACS::CPrimitiveBlock:
Nevrax France
Definition at line 97 of file pacs/primitive_block.h.
from UPrimitive block, create a P.B. from a stream | |
uint | getNbPrimitive () |
get the number of primitives in the block | |
UMovePrimitive::TUserData | getUserData (uint nPrimNb) |
return the user data for a primitive of the block | |
UPrimitiveBlock * | createPrimitiveBlock (NLMISC::IStream &src) |
UPrimitiveBlock * | createPrimitiveBlockFromFile (const std::string &fileName) |
Public Member Functions | |
void | serial (NLMISC::IStream &s) |
Data Fields | |
std::vector< CPrimitiveDesc > | Primitives |
|
Create a primitive block from a stream. This may raise exception if loading failed Reimplemented from NLPACS::UPrimitiveBlock. |
|
Create a primitive block from its file name. This may raise exceptions if loading failed. Reimplemented from NLPACS::UPrimitiveBlock. |
|
get the number of primitives in the block
Implements NLPACS::UPrimitiveBlock. Definition at line 111 of file pacs/primitive_block.h. References Primitives, and uint.
00111 { return Primitives.size(); } |
|
return the user data for a primitive of the block
Implements NLPACS::UPrimitiveBlock. Definition at line 112 of file pacs/primitive_block.h. References nlassert, Primitives, NLPACS::UMovePrimitive::TUserData, and uint.
00112 { nlassert(nPrimNb < Primitives.size()); 00113 return Primitives[nPrimNb].UserData; } |
|
Definition at line 93 of file primitive_block_pacs.cpp. References Primitives, s, and uint32.
00094 { 00095 s.xmlPush ("PRIMITIVE_BLOCK"); 00096 00097 // Serial checks 00098 s.serialCheck ((uint32)'KBRP'); 00099 00100 // Serial the version 00101 (void)s.serialVersion (0); 00102 00103 s.xmlPush ("PRIMITIVES"); 00104 s.serialCont (Primitives); 00105 s.xmlPop (); 00106 00107 s.xmlPop (); 00108 } |
|
Definition at line 102 of file pacs/primitive_block.h. Referenced by getNbPrimitive(), getUserData(), and serial(). |