qCC_io  version 2.5.4 (Qt) - 19 Apr 2014
 All Classes Functions Variables Typedefs
Public Member Functions | Static Public Member Functions | List of all members
BinFilter Class Reference

CloudCompare dedicated binary point cloud I/O filter. More...

#include <BinFilter.h>

Inheritance diagram for BinFilter:
Inheritance graph
[legend]
Collaboration diagram for BinFilter:
Collaboration graph
[legend]

Public Member Functions

virtual CC_FILE_ERROR loadFile (const char *filename, ccHObject &container, bool alwaysDisplayLoadDialog=true, bool *coordinatesShiftEnabled=0, CCVector3d *coordinatesShift=0)
 Loads one or more entities from a file. More...
 
virtual CC_FILE_ERROR saveToFile (ccHObject *entity, const char *filename)
 Saves an entity (or a group of) to a file. More...
 

Static Public Member Functions

static CC_FILE_ERROR LoadFileV1 (QFile &in, ccHObject &container, unsigned nbScansTotal, bool alwaysDisplayLoadDialog)
 old style BIN loading
 
static CC_FILE_ERROR LoadFileV2 (QFile &in, ccHObject &container, int flags)
 new style BIN loading
 
static CC_FILE_ERROR SaveFileV2 (QFile &out, ccHObject *object)
 new style BIN saving
 
- Static Public Member Functions inherited from FileIOFilter
static ccHObject * LoadFromFile (const QString &filename, CC_FILE_TYPES fType=UNKNOWN_FILE, bool alwaysDisplayLoadDialog=true, bool *coordinatesShiftEnabled=0, CCVector3d *coordinatesShift=0)
 Loads one or more entities from a file with known type. More...
 
static CC_FILE_ERROR SaveToFile (ccHObject *entities, const char *filename, CC_FILE_TYPES fType)
 Saves an entity (or a group of) to a specific file (with name and type)
 
static void DisplayErrorMessage (CC_FILE_ERROR err, const QString &action, const QString &filename)
 Displays (to console) the message corresponding to a given error code. More...
 
static CC_FILE_TYPES GuessFileFormatFromExtension (const char *ext)
 Detecs file type from file extension.
 
static FileIOFilterCreateFilter (CC_FILE_TYPES fType)
 Factory: returns a filter given it's type.
 

Detailed Description

CloudCompare dedicated binary point cloud I/O filter.

Member Function Documentation

CC_FILE_ERROR BinFilter::loadFile ( const char *  filename,
ccHObject &  container,
bool  alwaysDisplayLoadDialog = true,
bool *  coordinatesShiftEnabled = 0,
CCVector3d *  coordinatesShift = 0 
)
virtual

Loads one or more entities from a file.

This method must be implemented by children classes.

Parameters
filenamefile to load
containercontainer to store loaded entities
alwaysDisplayLoadDialogalways display (eventual) display dialog, even if automatic guess is possible
coordinatesShiftEnabledwhether shift on load has already been defined or not (may be modified by this method)
coordinatesShiftalready applied (input) or newly applied (output) shift on load (3D translation)
Returns
error

Implements FileIOFilter.

CC_FILE_ERROR BinFilter::saveToFile ( ccHObject *  entity,
const char *  filename 
)
virtual

Saves an entity (or a group of) to a file.

This method must be implemented by children classes.

Parameters
entityentity (or group of) to save
filenamefilename
Returns
error

Implements FileIOFilter.


The documentation for this class was generated from the following files: