#include <shape.h>
Definition at line 178 of file shape.h.
Public Member Functions | |
CShapeStream (IShape *shape) | |
CShapeStream () | |
Default constructor. Set the IShape pointer to NULL. | |
IShape * | getShapePointer () const |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
serial the shape. | |
void | setShapePointer (IShape *shape) |
Private Attributes | |
IShape * | _Shape |
|
Default constructor. Set the IShape pointer to NULL.
Definition at line 91 of file shape.cpp.
00092 { 00093 _Shape=NULL; 00094 } |
|
Constructor. Get a IShape pointer. Used to output serialization.
Definition at line 98 of file shape.cpp. References setShapePointer().
00099 { 00100 // Set the pointer 00101 setShapePointer (shape); 00102 } |
|
Get the pointer to the IShape object. Used to serial a shape in input.
Definition at line 113 of file shape.cpp. Referenced by NL3D::CInstanceLighter::light(), NL3D::CInstanceLighter::lightIgSimple(), NL3D::CShapeBank::load(), and NL3D::CAsyncFileManager3D::CMeshLoad::run().
00114 { 00115 return _Shape; 00116 } |
|
serial the shape.
Definition at line 120 of file shape.cpp. References uint32. Referenced by NL3D::CInstanceLighter::light(), and NL3D::CInstanceLighter::lightIgSimple().
00121 { 00122 // First, serial an header or checking if it is correct 00123 f.serialCheck ((uint32)'PAHS'); 00124 00125 // Then, serial the shape 00126 f.serialPolyPtr (_Shape); 00127 00128 // Ok, it's done 00129 } |
|
Set the pointer to the IShape object. Used to serial a shape in output.
Definition at line 106 of file shape.cpp. Referenced by CShapeStream().
00107 { 00108 _Shape=shape; 00109 } |
|
|