bugfix: export processes for unittests.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
pull/267/head
Kim Kulling 2014-05-04 16:02:52 +02:00
parent 8c8c5329e9
commit 392730be07
14 changed files with 31 additions and 26 deletions

View File

@ -106,7 +106,7 @@ private:
* imports the given file. ReadFile is not overridable, it just calls * imports the given file. ReadFile is not overridable, it just calls
* InternReadFile() and catches any ImportErrorException that might occur. * InternReadFile() and catches any ImportErrorException that might occur.
*/ */
class BaseImporter class ASSIMP_API BaseImporter
{ {
friend class Importer; friend class Importer;

View File

@ -53,7 +53,7 @@ namespace Assimp {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** FindDegeneratesProcess: Searches a mesh for degenerated triangles. /** FindDegeneratesProcess: Searches a mesh for degenerated triangles.
*/ */
class FindDegeneratesProcess : public BaseProcess class ASSIMP_API FindDegeneratesProcess : public BaseProcess
{ {
public: public:

View File

@ -51,13 +51,12 @@ class FindInvalidDataProcessTest;
namespace Assimp { namespace Assimp {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** The FindInvalidData postprocessing step. It searches the mesh data /** The FindInvalidData post-processing step. It searches the mesh data
* for parts that are obviously invalid and removes them. * for parts that are obviously invalid and removes them.
* *
* Originally this was a workaround for some models written by Blender * Originally this was a workaround for some models written by Blender
* which have zero normal vectors. */ * which have zero normal vectors. */
class FindInvalidDataProcess class ASSIMP_API FindInvalidDataProcess : public BaseProcess
: public BaseProcess
{ {
public: public:

View File

@ -45,6 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "BaseProcess.h" #include "BaseProcess.h"
struct aiMesh; struct aiMesh;
class LimitBoneWeightsTest; class LimitBoneWeightsTest;
namespace Assimp namespace Assimp
@ -69,7 +70,7 @@ namespace Assimp
* The other weights on this bone are then renormalized to assure the sum weight * The other weights on this bone are then renormalized to assure the sum weight
* to be 1. * to be 1.
*/ */
class LimitBoneWeightsProcess : public BaseProcess class ASSIMP_API LimitBoneWeightsProcess : public BaseProcess
{ {
public: public:

View File

@ -7,7 +7,7 @@
#include "ParsingUtils.h" #include "ParsingUtils.h"
#include "irrXMLWrapper.h" #include "irrXMLWrapper.h"
#include "fast_atof.h" #include "fast_atof.h"
#include <functional>
namespace Assimp namespace Assimp
{ {
namespace Ogre namespace Ogre

View File

@ -52,11 +52,11 @@ class PretransformVerticesTest;
namespace Assimp { namespace Assimp {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** The PretransformVertices pretransforms all vertices in the nodegraph /** The PretransformVertices pre-transforms all vertices in the node tree
* and removes the whole graph. The output is a list of meshes, one for * and removes the whole graph. The output is a list of meshes, one for
* each material. * each material.
*/ */
class PretransformVertices : public BaseProcess class ASSIMP_API PretransformVertices : public BaseProcess
{ {
public: public:

View File

@ -55,7 +55,7 @@ namespace Assimp {
* to those in C or C++ so this code has been moved to a separate * to those in C or C++ so this code has been moved to a separate
* module. * module.
*/ */
class CommentRemover class ASSIMP_API CommentRemover
{ {
// class cannot be instanced // class cannot be instanced
CommentRemover() {} CommentRemover() {}

View File

@ -51,10 +51,10 @@ class RemoveRedundantMatsTest;
namespace Assimp { namespace Assimp {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** RemoveRedundantMatsProcess: Postprocessing steo to remove redundant /** RemoveRedundantMatsProcess: Post-processing step to remove redundant
* materials from the imported scene. * materials from the imported scene.
*/ */
class RemoveRedundantMatsProcess : public BaseProcess class ASSIMP_API RemoveRedundantMatsProcess : public BaseProcess
{ {
public: public:

View File

@ -46,17 +46,20 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "../include/assimp/mesh.h" #include "../include/assimp/mesh.h"
class RemoveVCProcessTest; class RemoveVCProcessTest;
namespace Assimp {
namespace Assimp {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** RemoveVCProcess: Class to exclude specific parts of the data structure /** RemoveVCProcess: Class to exclude specific parts of the data structure
* from further processing by removing them, * from further processing by removing them,
*/ */
class RemoveVCProcess : public BaseProcess class ASSIMP_API RemoveVCProcess : public BaseProcess
{ {
public: public:
/// The class constructor.
RemoveVCProcess(); RemoveVCProcess();
/// The class destructor.
~RemoveVCProcess(); ~RemoveVCProcess();
public: public:
@ -85,7 +88,7 @@ public:
// ------------------------------------------------------------------- // -------------------------------------------------------------------
/** Manually setup the configuration flags for the step /** Manually setup the configuration flags for the step
* *
* @param Bitwise combintion of the #aiComponent enumerated values. * @param Bitwise combination of the #aiComponent enumerated values.
*/ */
void SetDeleteFlags(unsigned int f) void SetDeleteFlags(unsigned int f)
{ {
@ -113,6 +116,8 @@ private:
aiScene* mScene; aiScene* mScene;
}; };
// ---------------------------------------------------------------------------
} // end of namespace Assimp } // end of namespace Assimp
#endif // !!AI_REMOVEVCPROCESS_H_INCLUDED #endif // !!AI_REMOVEVCPROCESS_H_INCLUDED

View File

@ -54,7 +54,7 @@ namespace Assimp {
* importer, such as aiMesh::mPrimitiveTypes. * importer, such as aiMesh::mPrimitiveTypes.
*/ */
// ---------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------
class ScenePreprocessor class ASSIMP_API ScenePreprocessor
{ {
// Make ourselves a friend of the corresponding test unit. // Make ourselves a friend of the corresponding test unit.
friend class ::ScenePreprocessorTest; friend class ::ScenePreprocessorTest;

View File

@ -55,7 +55,7 @@ namespace Assimp {
* A mesh with 5 lines, 3 points and 145 triangles would be split in 3 * A mesh with 5 lines, 3 points and 145 triangles would be split in 3
* submeshes. * submeshes.
*/ */
class SortByPTypeProcess : public BaseProcess class ASSIMP_API SortByPTypeProcess : public BaseProcess
{ {
public: public:

View File

@ -76,12 +76,12 @@ class SplitLargeMeshesProcess_Vertex;
#endif #endif
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** Postprocessing filter to split large meshes into submeshes /** Post-processing filter to split large meshes into sub-meshes
* *
* Applied BEFORE the JoinVertices-Step occurs. * Applied BEFORE the JoinVertices-Step occurs.
* Returns NON-UNIQUE vertices, splits by triangle number. * Returns NON-UNIQUE vertices, splits by triangle number.
*/ */
class SplitLargeMeshesProcess_Triangle : public BaseProcess class ASSIMP_API SplitLargeMeshesProcess_Triangle : public BaseProcess
{ {
friend class SplitLargeMeshesProcess_Vertex; friend class SplitLargeMeshesProcess_Vertex;
@ -144,12 +144,12 @@ public:
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** Postprocessing filter to split large meshes into submeshes /** Post-processing filter to split large meshes into sub-meshes
* *
* Applied AFTER the JoinVertices-Step occurs. * Applied AFTER the JoinVertices-Step occurs.
* Returns UNIQUE vertices, splits by vertex number. * Returns UNIQUE vertices, splits by vertex number.
*/ */
class SplitLargeMeshesProcess_Vertex : public BaseProcess class ASSIMP_API SplitLargeMeshesProcess_Vertex : public BaseProcess
{ {
public: public:

View File

@ -49,15 +49,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
struct aiMesh; struct aiMesh;
class TriangulateProcessTest; class TriangulateProcessTest;
namespace Assimp
{ namespace Assimp {
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
/** The TriangulateProcess splits up all faces with more than three indices /** The TriangulateProcess splits up all faces with more than three indices
* into triangles. You usually want this to happen because the graphics cards * into triangles. You usually want this to happen because the graphics cards
* need their data as triangles. * need their data as triangles.
*/ */
class TriangulateProcess : public BaseProcess class ASSIMP_API TriangulateProcess : public BaseProcess
{ {
public: public:

View File

@ -56,7 +56,7 @@ namespace Assimp {
* @note Although it is called #VertexTriangleAdjacency, the current version does also * @note Although it is called #VertexTriangleAdjacency, the current version does also
* support arbitrary polygons. */ * support arbitrary polygons. */
// -------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------
class VertexTriangleAdjacency class ASSIMP_API VertexTriangleAdjacency
{ {
public: public: