API Documentation
Loading...
Searching...
No Matches
AssimpFactory.cpp File Reference
#include "AssimpInterface/Headers/AssimpFactory.h"
#include "AssimpInterface/Headers/NDEVRFileImporter.h"
#include "IOFactory/Headers/FactoryOptions.h"
#include "IOFactory/Headers/FactoryModelFilters.h"
#include "IOFactory/Headers/FactoryFeatures.h"
#include "Design/Headers/DesignObjectLookup.h"
#include "Design/Headers/VertexColorIterator.h"
#include "Design/Headers/Material.h"
#include "Design/Headers/Geometry.h"
#include "Design/Headers/Bone.h"
#include "Design/Headers/ImageFactory.h"
#include "Base/Headers/RGBColor.h"
#include "Base/Headers/Log.h"
#include "Base/Headers/Exception.h"
#include "Base/Headers/FileResource.h"
#include "Base/Headers/File.h"
#include "Base/Headers/Dictionary.h"
#include "Base/Headers/MatrixFunctions.h"
#include "Base/Headers/VectorFunctions.hpp"
#include "Base/Headers/ApplicationResource.h"
#include "Base/Headers/Translator.h"
#include <assimp/defs.h>
#include <assimp/config.h>
#include <assimp/material.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/Importer.hpp>
#include <assimp/Exporter.hpp>
#include <assimp/DefaultLogger.hpp>
#include <assimp/ProgressHandler.hpp>
#include <assimp/cimport.h>
#include <assimp/cexport.h>
Include dependency graph for AssimpFactory.cpp:

Classes

class  AssimpLogger
 Retrieves logs from assimp and passes them to native NDEVR logging logic. More...
 

Namespaces

namespace  NDEVR
 

Macros

#define IMPORTER_LITE   1
 

Functions

aiTextureType getNumType (UVType type)
 
Material::TileTextureMode getTileMode (aiTextureMapMode mode)
 
String getUVType (UVType type)
 
uint04 getFlags (const FactoryOptions &options)
 
String getConstType (Material::MaterialProperties type)
 
template<uint01 t_dims, class t_type >
Vector< t_dims, t_type > convertFromAIFace (const aiFace &value)
 
template<uint01 t_dims, class t_type >
void convertToAIFace (Vector< t_dims, t_type > index, const Buffer< uint04 > &vertex_offsets, aiFace &ai_face, bool flip_winding)
 
aiFace convertToAIFace (const Buffer< uint04 > &indices, const Buffer< uint04 > &vertex_offsets, bool flip_winding)
 
aiColor4D convert (RGBColor value)
 
const aiExportFormatDesc * getExportFormat (const UUID &id, const String &extension, const Assimp::Exporter &exporter)
 
Assimp::Importer & GetImporter ()
 
void readMesh (Model &root, const FactoryOptions &options, const aiScene *, aiMesh *ai_mesh, Dictionary< aiMesh *, uint04 > &mesh_offset, ProgressInfo *log)
 
void ReadAIMeshes (Model &root, const FactoryOptions &options, const aiScene *scene, Dictionary< aiMesh *, uint04 > &mesh_offset, ProgressInfo *log)
 
void ReadAIMaterials (Model &root, const aiScene *scene, const File &texture_path, Dictionary< aiMaterial *, uint04 > &mat_offset, ProgressInfo *log)
 
void readModels (Model &top_model, const aiScene *scene, const aiNode *node, const File &file, Dictionary< aiMaterial *, uint04 > &mat_offset, Dictionary< aiMesh *, uint04 > &mesh_offset, ProgressInfo *log)
 
String AssimpGetIcon (const String &extension)
 
String getDescription (const File &file)
 
void setupFormat (FileFormat &format)
 
Buffer< DynamicPointer< Camera > > readCameras (const Model &model, DesignObjectLookup *lookup, const aiScene *scene, UUID top_uuid)
 
void WriteAIMesh (aiMesh *ai_mesh, const Geometry &geo, const Material &mat, const Model &model, Matrix< fltp08 > total_transform, ProgressInfo *)
 
void setupAIMesh (aiMesh *to, const Geometry &from, const Material &material, const Model &model, ProgressInfo *log)
 
aiMaterial * WriteAIMaterial (AssimpSceneMemory &scene, const Material &mat, const Model &model, ProgressInfo *, const File &texture_path)
 
aiNode * WriteAIModels (const Model &model, AssimpSceneMemory &scene, const FactoryOptions &options, const File &texture_path, Matrix< fltp08 > total_transform, ProgressInfo *log)
 

Macro Definition Documentation

◆ IMPORTER_LITE

#define IMPORTER_LITE   1