add missing constructor.

pull/3012/head
kimkulling 2020-03-19 16:20:55 +01:00
parent 9ba014739a
commit de06c860ea
1 changed files with 157 additions and 153 deletions

View File

@ -8,17 +8,16 @@
#define INCLUDED_AI_X3D_EXPORTER_H #define INCLUDED_AI_X3D_EXPORTER_H
// Header files, Assimp. // Header files, Assimp.
#include <assimp/DefaultLogger.hpp>
#include <assimp/Exporter.hpp>
#include <assimp/material.h> #include <assimp/material.h>
#include <assimp/scene.h> #include <assimp/scene.h>
#include <assimp/DefaultLogger.hpp>
#include <assimp/Exporter.hpp>
// Header files, stdlib. // Header files, stdlib.
#include <list> #include <list>
#include <string> #include <string>
namespace Assimp namespace Assimp {
{
/// \class X3DExporter /// \class X3DExporter
/// Class which export aiScene to X3D file. /// Class which export aiScene to X3D file.
@ -45,14 +44,12 @@ namespace Assimp
/// Texturing component: /// Texturing component:
/// "ImageTexture", "TextureCoordinate", "TextureTransform" /// "ImageTexture", "TextureCoordinate", "TextureTransform"
/// ///
class X3DExporter class X3DExporter {
{
/***********************************************/ /***********************************************/
/******************** Types ********************/ /******************** Types ********************/
/***********************************************/ /***********************************************/
struct SAttribute struct SAttribute {
{
const std::string Name; const std::string Name;
const std::string Value; const std::string Value;
SAttribute() : SAttribute() :
@ -60,6 +57,11 @@ class X3DExporter
Value() { Value() {
// empty // empty
} }
SAttribute(std::string name, std::string value) :
Name(name),
Value(value) {
// empty
}
}; };
/***********************************************/ /***********************************************/
@ -77,7 +79,6 @@ class X3DExporter
std::map<size_t, std::string> mDEF_Map_Material; std::map<size_t, std::string> mDEF_Map_Material;
private: private:
std::string mIndentationString; std::string mIndentationString;
/***********************************************/ /***********************************************/
@ -103,7 +104,11 @@ private:
/// \fn void AttrHelper_CommaToPoint(std::string& pStringWithComma) /// \fn void AttrHelper_CommaToPoint(std::string& pStringWithComma)
/// Convert commas in string to points. That's needed because "std::to_string" result depends on locale (regional settings). /// Convert commas in string to points. That's needed because "std::to_string" result depends on locale (regional settings).
/// \param [in, out] pStringWithComma - reference to string, which must be modified. /// \param [in, out] pStringWithComma - reference to string, which must be modified.
void AttrHelper_CommaToPoint(std::string& pStringWithComma) { for(char& c: pStringWithComma) { if(c == ',') c = '.'; } } void AttrHelper_CommaToPoint(std::string &pStringWithComma) {
for (char &c : pStringWithComma) {
if (c == ',') c = '.';
}
}
/// \fn void AttrHelper_FloatToString(const float pValue, std::string& pTargetString) /// \fn void AttrHelper_FloatToString(const float pValue, std::string& pTargetString)
/// Converts float to string. /// Converts float to string.
@ -224,7 +229,6 @@ private:
void LogError(const std::string &pMessage) { DefaultLogger::get()->error(pMessage); } void LogError(const std::string &pMessage) { DefaultLogger::get()->error(pMessage); }
public: public:
/// \fn X3DExporter() /// \fn X3DExporter()
/// Default constructor. /// Default constructor.
X3DExporter(const char *pFileName, IOSystem *pIOSystem, const aiScene *pScene, const ExportProperties *pProperties); X3DExporter(const char *pFileName, IOSystem *pIOSystem, const aiScene *pScene, const ExportProperties *pProperties);