CFx SDK Documentation 2024 SP0
|
#include <FMDataSerialize.h>
Public Types | |
enum | OdaObjectMarker { ePoint2dMarker = 1 , eContour2dMarker = 2 , eProfile2dMarker = 3 , eBodyMarker = 4 , eFaceMarker = 5 , ePoint3dMarker = 6 } |
enum | Version { v64bit = -2 , v32bit = -1 , vAuto = 0 , vKeyTypeAdded = 1 , vSaveColorsAdded = 2 , vCurrent = 2 } |
Static Public Attributes | |
static const OdUInt32 | iSigLen = 4 |
static const OdUInt32 | iVerLen = 2 |
Provides functionality for reading and writing binary data to a file.
Definition at line 124 of file FMDataSerialize.h.
Defines types of object markers.
Enumerator | |
---|---|
ePoint2dMarker | OdGePoint2d marker. |
eContour2dMarker | Contour2D marker. |
eProfile2dMarker | Profile2D marker. |
eBodyMarker | Body marker. |
eFaceMarker | Face marker. |
ePoint3dMarker | OdGePoint3d marker. |
Definition at line 131 of file FMDataSerialize.h.
Defines Facet Modeler file or binary stream format versions.
Enumerator | |
---|---|
v64bit | Force old-style 64-bit. |
v32bit | Force old-style 32-bit. |
vAuto | Version from the file. |
vKeyTypeAdded | Version where saving unified for different bitness. |
vSaveColorsAdded | Version where added saving of Face color fields. |
vCurrent | Current version. |
Definition at line 155 of file FMDataSerialize.h.
FacetModeler::BinaryStream::BinaryStream | ( | ) |
Default constructor.
FacetModeler::BinaryStream::~BinaryStream | ( | ) |
Destructor.
bool FacetModeler::BinaryStream::Create | ( | const OdString & | szFile | ) |
Opens a file from the file system for writing.
szFile | [in] Filename string. |
bool FacetModeler::BinaryStream::Create | ( | OdStreamBuf * | pFileBuff | ) |
Opens a stream buffer for writing a binary stream to.
pFileBuff | [in] Pointer to the OdStreamBuf object. |
|
inline |
Gets version of this stream object.
Definition at line 237 of file FMDataSerialize.h.
Opens a file from the file system for reading in the specified format version.
szFile | [in] Filename string. |
ver | [in] File version to read. |
bool FacetModeler::BinaryStream::Open | ( | OdStreamBuf * | pFileBuff, |
Version | ver = vAuto |
||
) |
Opens a stream buffer for reading in the specified format version.
pFileBuff | [in] Pointer to the OdStreamBuf object. |
ver | [in] Format version to use for reading. |
Reads a contour object.
val | [out] Read Contour2D object. |
void FacetModeler::BinaryStream::Read | ( | OdGePoint2d & | val | ) |
Reads a point object.
val | [out] Read OdGePoint2d object. |
void FacetModeler::BinaryStream::Read | ( | OdGePoint3d & | val | ) |
Reads a point.
val | [out] Read OdGePoint3d object. |
Reads a profile object.
val | [out] Read Profile2d object. |
|
inline |
Reads the specified number of bytes.
pData | [out] Pointer to the read data. |
length | [in] Number of bytes to read. |
void FacetModeler::BinaryStream::ReadEdgeImages | ( | EdgeImages & | edgeImages | ) |
Reads an EdgeImages array.
edgeImages | [out] Read EdgeImages array. |
void FacetModeler::BinaryStream::ReadFaceImages | ( | FaceImages & | faceImages | ) |
Reads a FaceImages array.
faceImages | [out] Read FaceImages array. |
Reads a KeyType object.
val | [out] Read KeyType value. |
void FacetModeler::BinaryStream::ReadVertexImages | ( | VertexImages & | vertexImages, |
Body * | pBody | ||
) |
Reads a VertexImages array from the specified body.
vertexImages | [out] VertexImages output array. |
pBody | [in] Body to read from. |
Resets the stream of a file pointer to the start and sets a format version.
ver | [in] Format version. |
void FacetModeler::BinaryStream::SetVertexListForBody | ( | VertexImages & | vertexImages, |
Body & | val | ||
) |
Sets a vertex list for the specified body using a VertexImages array.
vertexImages | [in] VertexImages array to set. |
val | [in/out] Body to set. |
Writes the body.
val | [in] Body object to write. |
Writes the contour.
val | [in] Contour2D object to write. |
Writes the face.
val | [in] Face object to write. |
void FacetModeler::BinaryStream::Write | ( | const OdGePoint2d & | val | ) |
Writes the 2D point.
val | [in] OdGePoint2d object to write. |
void FacetModeler::BinaryStream::Write | ( | const OdGePoint3d & | val | ) |
Writes the 3D point.
val | [in] OdGePoint3d object to write. |
Writes the profile.
val | [in] Profile2D object to write. |
|
inline |
Writes data with a defined size.
val | [in] Data to write. |
Definition at line 264 of file FMDataSerialize.h.
Writes the specified number of bytes of data.
pData | [in] Pointer to data to write. |
length | [in] Count of bytes to write. |
Writes the edge.
pEdge | [in] Edge to write. |
Writes the body edges list.
val | [in] Body to write. |
Writes the vertex.
pVertex | [in] Pointer to vertex to write. |
Writes the specified number of vertices from the vertex list.
pVertexList | [in] Vertex list pointer. |
uVtxCount | [in] Vertices number to write. |
|
static |
Definition at line 176 of file FMDataSerialize.h.
|
static |
Definition at line 177 of file FMDataSerialize.h.