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
// Header files, Assimp.
#include <assimp/DefaultLogger.hpp>
#include <assimp/Exporter.hpp>
#include <assimp/material.h>
#include <assimp/scene.h>
#include <assimp/DefaultLogger.hpp>
#include <assimp/Exporter.hpp>
// Header files, stdlib.
#include <list>
#include <string>
namespace Assimp
{
namespace Assimp {
/// \class X3DExporter
/// Class which export aiScene to X3D file.
@ -45,14 +44,12 @@ namespace Assimp
/// Texturing component:
/// "ImageTexture", "TextureCoordinate", "TextureTransform"
///
class X3DExporter
{
class X3DExporter {
/***********************************************/
/******************** Types ********************/
/***********************************************/
struct SAttribute
{
struct SAttribute {
const std::string Name;
const std::string Value;
SAttribute() :
@ -60,6 +57,11 @@ class X3DExporter
Value() {
// 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;
private:
std::string mIndentationString;
/***********************************************/
@ -103,7 +104,11 @@ private:
/// \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).
/// \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)
/// Converts float to string.
@ -224,7 +229,6 @@ private:
void LogError(const std::string &pMessage) { DefaultLogger::get()->error(pMessage); }
public:
/// \fn X3DExporter()
/// Default constructor.
X3DExporter(const char *pFileName, IOSystem *pIOSystem, const aiScene *pScene, const ExportProperties *pProperties);