qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
Serializable object interface. More...
#include <ccSerializableObject.h>
Public Types | |
enum | DeserializationFlags { DF_POINT_COORDS_64_BITS = 1 , DF_SCALAR_VAL_32_BITS = 2 } |
Deserialization flags (bit-field) More... | |
typedef QMultiMap< unsigned, unsigned > | LoadedIDMap |
Map of loaded unique IDs (old ID --> new ID) | |
Public Member Functions | |
virtual | ~ccSerializableObject ()=default |
Destructor. | |
virtual bool | isSerializable () const |
Returns whether object is serializable of not. More... | |
virtual bool | toFile (QFile &out) const |
Saves data to binary stream. More... | |
virtual bool | fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) |
Loads data from binary stream. More... | |
Static Public Member Functions | |
static bool | WriteError () |
Sends a custom error message (write error) and returns 'false'. More... | |
static bool | ReadError () |
Sends a custom error message (read error) and returns 'false'. More... | |
static bool | MemoryError () |
Sends a custom error message (not enough memory) and returns 'false'. More... | |
static bool | CorruptError () |
Sends a custom error message (corrupted file) and returns 'false'. More... | |
Serializable object interface.
|
inlinestatic |
Sends a custom error message (corrupted file) and returns 'false'.
Shortcut for returning a standardized error message in the fromFile method.
|
inlinevirtual |
Loads data from binary stream.
in | input file (already opened) |
dataVersion | file version |
flags | deserialization flags (see ccSerializableObject::DeserializationFlags) |
oldToNewIDMap | map to link old IDs with new IDs |
Reimplemented in ccColorScale, ccGLMatrixTpl< T >, ccGLMatrixTpl< float >, ccGLMatrixTpl< double >, ccHObject, ccIndexedTransformation, ccMaterial, ccObject, ccScalarField, ccViewportParameters, WaveformDescriptor, and ccWaveform.
|
inlinevirtual |
Returns whether object is serializable of not.
Reimplemented in cc2DLabel, cc2DViewportLabel, cc2DViewportObject, ccArray< Type, N, ComponentType >, ccArray< ccColor::Rgb, 3, ColorCompType >, ccArray< CompressedNormType, 1, CompressedNormType >, ccArray< CCVector3, 3, PointCoordinateType >, ccArray< ccColor::Rgba, 4, ColorCompType >, ccArray< TexCoords2D, 2, float >, ccCameraSensor, ccColorScale, ccCustomHObject, ccFacet, ccGBLSensor, ccGenericMesh, ccGenericPointCloud, ccGLMatrixTpl< T >, ccGLMatrixTpl< float >, ccGLMatrixTpl< double >, ccHObject, ccImage, ccIndexedTransformation, ccIndexedTransformationBuffer, ccMaterial, ccMaterialSet, ccMesh, ccMeshGroup, ccPolyline, ccScalarField, ccSensor, ccSubMesh, ccViewportParameters, WaveformDescriptor, and ccWaveform.
|
inlinestatic |
Sends a custom error message (not enough memory) and returns 'false'.
Shortcut for returning a standardized error message in the fromFile method.
|
inlinestatic |
Sends a custom error message (read error) and returns 'false'.
Shortcut for returning a standardized error message in the fromFile method.
|
inlinevirtual |
Saves data to binary stream.
out | output file (already opened) |
Reimplemented in ccColorScale, ccGLMatrixTpl< T >, ccGLMatrixTpl< float >, ccGLMatrixTpl< double >, ccHObject, ccIndexedTransformation, ccMaterial, ccObject, ccScalarField, ccViewportParameters, WaveformDescriptor, and ccWaveform.
|
inlinestatic |
Sends a custom error message (write error) and returns 'false'.
Shortcut for returning a standardized error message in the toFile method.