The following files were according to the Math Lib reorganization (see the commit log of revision 24464 for more information): source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h The file release/scripts/ui/properties_render.py was also updated according the RNA UI API renaming in revision 24795.
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
#ifndef BLENDER_FILE_LOADER_H
|
|
# define BLENDER_FILE_LOADER_H
|
|
|
|
# include <string.h>
|
|
# include <float.h>
|
|
|
|
# include "../system/FreestyleConfig.h"
|
|
# include "../scene_graph/NodeGroup.h"
|
|
# include "../scene_graph/NodeTransform.h"
|
|
# include "../scene_graph/NodeShape.h"
|
|
# include "../scene_graph/IndexedFaceSet.h"
|
|
# include "../geometry/BBox.h"
|
|
# include "../geometry/Geom.h"
|
|
# include "../geometry/GeomCleaner.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "DNA_material_types.h"
|
|
#include "DNA_scene_types.h"
|
|
#include "render_types.h"
|
|
#include "renderdatabase.h"
|
|
|
|
#include "BKE_mesh.h"
|
|
#include "BKE_scene.h"
|
|
#include "BLI_math.h"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
class NodeGroup;
|
|
|
|
class LIB_SCENE_GRAPH_EXPORT BlenderFileLoader
|
|
{
|
|
public:
|
|
/*! Builds a MaxFileLoader */
|
|
BlenderFileLoader(Render *re, SceneRenderLayer* srl);
|
|
virtual ~BlenderFileLoader();
|
|
|
|
/*! Loads the 3D scene and returns a pointer to the scene root node */
|
|
NodeGroup * Load();
|
|
|
|
/*! Gets the number of read faces */
|
|
inline unsigned int numFacesRead() {return _numFacesRead;}
|
|
|
|
/*! Gets the smallest edge size read */
|
|
inline real minEdgeSize() {return _minEdgeSize;}
|
|
|
|
protected:
|
|
void insertShapeNode(ObjectRen *obr, int id);
|
|
|
|
protected:
|
|
Render* _re;
|
|
SceneRenderLayer* _srl;
|
|
NodeGroup* _Scene;
|
|
unsigned _numFacesRead;
|
|
real _minEdgeSize;
|
|
};
|
|
|
|
#endif // BLENDER_FILE_LOADER_H
|