Polygon Crucher SDK - Documentation
Documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PolygonCruncherInterface.h File Reference

Defines some class for batch optimization and scene conversion for CSceneOptimizer. More...

Detailed Description

Defines some class for batch optimization and scene conversion for CSceneOptimizer.

#include "common_cpp_type.h"
#include "3DType.h"
#include "PolygonCruncherConfig.h"
#include "PolygonCruncherType.h"
#include "3DScene.h"
#include "BatchTools.h"

Go to the source code of this file.

Classes

class  CruncherProgressInfo
 This class provides information about computation progress to the different progress callback. More...
 
class  C3DPolygonCruncherObjectCreator
 This class converts an usual C3DScene to a C3DScene containing object that can be used by CSceneOptimizer. More...
 
class  BatchCruncherOptions
 This class allows to perform batch optimization, which means process a set of files. More...
 
class  CBatchOptimizer
 CBatchOptimizer allows to perform batch optimization providing BatchCruncherOptions settings and calling CBatchOptimizer::Batch. More...
 

Macros

#define CRUNCHER_CRASH_FILE_KEY   _T("CurrentOptimizedFile")
 
#define SetCurrentOptimizedFile(...)   __noop
 

Typedefs

typedef enum PolygonCruncherObjectCreatorFlags PolygonCruncherObjectCreatorFlags
 
typedef C3DScene *(* LoadCruncherBatchCallback) (const CXString &filename, CSceneImportOptions &options, CXString &resultTxt, void *data)
 A callback for loading a 3D file specified by its filename and giving some options. It returns the loaded scene. resultTxt can returns some textual information about the load operation.
 
typedef bool(* SaveCruncherBatchCallback) (bool freeSceneOnly, const CFileNameSpec &filename, CSceneExportOptions &options, C3DScene *optimizedResult, CXString &resultTxt, void *data)
 A callback for saving a to file using some options and the provided scene. If freeSceneOnly, then the scene must be released using C3DScene::Delete(). resultTxt can returns some textual information about the load operation.
 
typedef bool(* CruncherProgressCallback) (unsigned int cruncherProgressFlags, const CruncherProgressInfo &info, void *data)
 Progress callback. cruncherProgressFlags is a combination of CruncherProgress flags which inform about the useful data to retrieve in CruncherProgressInfo.
 

Enumerations

enum  PolygonCruncherObjectCreatorFlags { DEFAULT_OPTIMIZATION_OBJECT = 1 , INTERACTIVE_OPTIMIZATION_OBJECT , MULTIRESOLUTION_DATA_OBJECT }
 

Enumeration Type Documentation

◆ PolygonCruncherObjectCreatorFlags

Defines the conversion mode to prepare the scene for the CSceneOptimizer. The mode depends on the usage of the optimizer:

  • DEFAULT_OPTIMIZATION means that an object is created and optimize once for all with given optimization flags.
    This flag matches for static and dynamic optimization. cf. #OPTIMIZATION and #OPTIMIZATION_DYNAMIC
  • INTERACTIVE_OPTIMIZATION means that the object might be optimized several time with several optimization flags This flag matches for interactive optimization. cf. #OPTIMIZATION_INTERACTIVE
  • MULTIRESOLUTION_DATA means that we create a CMultiresolutionObject from a saved multiresolution data (C3DExtObject::SetMultiresolutionData)