![]() |
Polygon Crucher SDK - Documentation
Documentation
|
Defines some class for batch optimization and scene conversion for CSceneOptimizer. More...
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 } |
Defines the conversion mode to prepare the scene for the CSceneOptimizer. The mode depends on the usage of the optimizer: