<commit_before>/*
	This file is part of the MinSG library extension BlueSurfels.
	Copyright (C) 2017-2018 <NAME> <<EMAIL>>
	
	This library is subject to the terms of the Mozilla Public License, v. 2.0.
	You should have received a copy of the MPL along with this library; see the 
	file LICENSE. If not, you can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifdef MINSG_EXT_BLUE_SURFELS

#include "E_ShaderStrategy.h"

#include <E_Util/E_Utils.h>
#include <E_Util/IO/E_FileLocator.h>

#include <EScript/EScript.h>

namespace E_MinSG {
namespace BlueSurfels {
using namespace MinSG::BlueSurfels;

//! (static)
EScript::Type * E_ShaderStrategy::getTypeObject() {
	// E_ShaderStrategy ---|> E_AbstractSurfelStrategy ---|> Object
	static EScript::ERef<EScript::Type> typeObject = new EScript::Type(E_AbstractSurfelStrategy::getTypeObject());
	return typeObject.get();
}

//! initMembers
void E_ShaderStrategy::init(EScript::Namespace & lib) {
	EScript::Type * typeObject = getTypeObject();
	initPrintableName(typeObject,getClassName());
	declareConstant(&lib,getClassName(),typeObject);
	addFactory<ShaderStrategy,E_ShaderStrategy>();

	//! [ESMF] new ShaderStrategy
	ES_CTOR(typeObject, 0, 0, new ShaderStrategy)
  
	ES_MFUN(typeObject, ShaderStrategy, "refreshShader", 0, 0, (thisObj->refreshShader(), thisEObj))
  ES_MGETSET(ShaderStrategy, std::string, ShaderVS)
  ES_MGETSET(ShaderStrategy, std::string, ShaderFS)
  ES_MGETSET(ShaderStrategy, std::string, ShaderGS)
	
	ES_MFUN(typeObject, ShaderStrategy, "addSearchPath", 1, 1, (thisObj->getFileLocator().addSearchPath(parameter[0].toString()), thisEObj))
}

} /* BlueSurfels */
} /* MinSG */
#endif // MINSG_EXT_BLUE_SURFELS<commit_msg>added option for surfel culling<commit_after>/*
	This file is part of the MinSG library extension BlueSurfels.
	Copyright (C) 2017-2018 <NAME> <<EMAIL>>
	
	This library is subject to the terms of the Mozilla Public License, v. 2.0.
	You should have received a copy of the MPL along with this library; see the 
	file LICENSE. If not, you can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifdef MINSG_EXT_BLUE_SURFELS

#include "E_ShaderStrategy.h"

#include <E_Util/E_Utils.h>
#include <E_Util/IO/E_FileLocator.h>

#include <EScript/EScript.h>

namespace E_MinSG {
namespace BlueSurfels {
using namespace MinSG::BlueSurfels;

//! (static)
EScript::Type * E_ShaderStrategy::getTypeObject() {
	// E_ShaderStrategy ---|> E_AbstractSurfelStrategy ---|> Object
	static EScript::ERef<EScript::Type> typeObject = new EScript::Type(E_AbstractSurfelStrategy::getTypeObject());
	return typeObject.get();
}

//! initMembers
void E_ShaderStrategy::init(EScript::Namespace & lib) {
	EScript::Type * typeObject = getTypeObject();
	initPrintableName(typeObject,getClassName());
	declareConstant(&lib,getClassName(),typeObject);
	addFactory<ShaderStrategy,E_ShaderStrategy>();

	//! [ESMF] new ShaderStrategy
	ES_CTOR(typeObject, 0, 0, new ShaderStrategy)
  
	ES_MFUN(typeObject, ShaderStrategy, "refreshShader", 0, 0, (thisObj->refreshShader(), thisEObj))
  ES_MGETSET(ShaderStrategy, std::string, ShaderVS)
  ES_MGETSET(ShaderStrategy, std::string, ShaderFS)
  ES_MGETSET(ShaderStrategy, std::string, ShaderGS)
  ES_MGETSET(ShaderStrategy, bool, SurfelCulling)
	
	ES_MFUN(typeObject, ShaderStrategy, "addSearchPath", 1, 1, (thisObj->getFileLocator().addSearchPath(parameter[0].toString()), thisEObj))
}

} /* BlueSurfels */
} /* MinSG */
#endif // MINSG_EXT_BLUE_SURFELS
{'fraction_non_alphanumeric': 0.13182346109175377, 'fraction_numerical': 0.011033681765389082, 'mean_word_length': 6.002032520325203, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '817358', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1168, 'n_words': 266}