<commit_before>/*
	This file is part of the MinSG library extension BlueSurfels.
	Copyright (C) 2014 <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_SurfelRenderer2.h"
#include "../../ELibMinSG.h"
#include "../ELibMinSGExt.h"
#include <EScript/EScript.h>

namespace E_MinSG {
namespace BlueSurfels{

using namespace MinSG;
using namespace MinSG::BlueSurfels;


EScript::Type* E_SurfelRenderer2::typeObject=nullptr;

//! (static) initMembers
void E_SurfelRenderer2::init(EScript::Namespace & lib) {
	// E_SurfelRenderer2 ---|> E_NodeRendererState ---|> E_State ---|> Object
	typeObject = new EScript::Type(E_NodeRendererState::getTypeObject());
	declareConstant(&lib,getClassName(),typeObject);
	addFactory<SurfelRenderer2,E_SurfelRenderer2>();

	//! [ESF] new MinSG.SurfelRenderer2
	ES_CTOR(typeObject, 0, 0, EScript::create(new SurfelRenderer2))

	//! [ESMF] Number surfelRenderer.getCountFactor()
	ES_MFUN(typeObject,const SurfelRenderer2,"getCountFactor",0,0,thisObj->getCountFactor())

	//! [ESMF] Number surfelRenderer.getSizeFactor()
	ES_MFUN(typeObject,const SurfelRenderer2,"getSizeFactor",0,0,thisObj->getSizeFactor())

	//! [ESMF] Number surfelRenderer.getMaxSurfelSize()
	ES_MFUN(typeObject,const SurfelRenderer2,"getMaxSurfelSize",0,0,thisObj->getMaxSurfelSize())

	//! [ESMF] self surfelRenderer.setCountFactor( Number )
	ES_MFUN(typeObject,SurfelRenderer2,"setCountFactor",1,1, (thisObj->setCountFactor(parameter[0].to<float>(rt)),thisEObj) )

	//! [ESMF] self surfelRenderer.setSizeFactor( Number )
	ES_MFUN(typeObject,SurfelRenderer2,"setSizeFactor",1,1, (thisObj->setSizeFactor(parameter[0].to<float>(rt)),thisEObj) )
	
	//! [ESMF] self surfelRenderer.setMaxSurfelSize( Number )
	ES_MFUN(typeObject,SurfelRenderer2,"setMaxSurfelSize",1,1, (thisObj->setMaxSurfelSize(parameter[0].to<float>(rt)),thisEObj) )
}
//---

//! (ctor)
E_SurfelRenderer2::E_SurfelRenderer2(SurfelRenderer2 * _obj, EScript::Type * type):E_NodeRendererState(_obj,type?type:typeObject){
}

//! (ctor)
E_SurfelRenderer2::~E_SurfelRenderer2(){
}

}
}

#endif // MINSG_EXT_BLUE_SURFELS
<commit_msg>added debug function to hide surfels<commit_after>/*
	This file is part of the MinSG library extension BlueSurfels.
	Copyright (C) 2014 <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_SurfelRenderer2.h"
#include "../../ELibMinSG.h"
#include "../ELibMinSGExt.h"
#include <EScript/EScript.h>

namespace E_MinSG {
namespace BlueSurfels{

using namespace MinSG;
using namespace MinSG::BlueSurfels;


EScript::Type* E_SurfelRenderer2::typeObject=nullptr;

//! (static) initMembers
void E_SurfelRenderer2::init(EScript::Namespace & lib) {
	// E_SurfelRenderer2 ---|> E_NodeRendererState ---|> E_State ---|> Object
	typeObject = new EScript::Type(E_NodeRendererState::getTypeObject());
	declareConstant(&lib,getClassName(),typeObject);
	addFactory<SurfelRenderer2,E_SurfelRenderer2>();

	//! [ESF] new MinSG.SurfelRenderer2
	ES_CTOR(typeObject, 0, 0, EScript::create(new SurfelRenderer2))

	//! [ESMF] Number surfelRenderer.getCountFactor()
	ES_MFUN(typeObject,const SurfelRenderer2,"getCountFactor",0,0,thisObj->getCountFactor())

	//! [ESMF] Number surfelRenderer.getSizeFactor()
	ES_MFUN(typeObject,const SurfelRenderer2,"getSizeFactor",0,0,thisObj->getSizeFactor())

	//! [ESMF] Number surfelRenderer.getMaxSurfelSize()
	ES_MFUN(typeObject,const SurfelRenderer2,"getMaxSurfelSize",0,0,thisObj->getMaxSurfelSize())

	//! [ESMF] Bool surfelRenderer.getDebugHideSurfels()
	ES_MFUN(typeObject,const SurfelRenderer2,"getDebugHideSurfels",0,0,thisObj->getDebugHideSurfels())

	//! [ESMF] self surfelRenderer.setCountFactor( Number )
	ES_MFUN(typeObject,SurfelRenderer2,"setCountFactor",1,1, (thisObj->setCountFactor(parameter[0].to<float>(rt)),thisEObj) )

	//! [ESMF] self surfelRenderer.setSizeFactor( Number )
	ES_MFUN(typeObject,SurfelRenderer2,"setSizeFactor",1,1, (thisObj->setSizeFactor(parameter[0].to<float>(rt)),thisEObj) )
	
	//! [ESMF] self surfelRenderer.setMaxSurfelSize( Number )
	ES_MFUN(typeObject,SurfelRenderer2,"setMaxSurfelSize",1,1, (thisObj->setMaxSurfelSize(parameter[0].to<float>(rt)),thisEObj) )
	
	//! [ESMF] self surfelRenderer.setDebugHideSufels( Bool )
	ES_MFUN(typeObject,SurfelRenderer2,"setDebugHideSufels",1,1, (thisObj->setDebugHideSufels(parameter[0].toBool()),thisEObj) )
}
//---

//! (ctor)
E_SurfelRenderer2::E_SurfelRenderer2(SurfelRenderer2 * _obj, EScript::Type * type):E_NodeRendererState(_obj,type?type:typeObject){
}

//! (ctor)
E_SurfelRenderer2::~E_SurfelRenderer2(){
}

}
}

#endif // MINSG_EXT_BLUE_SURFELS

{'fraction_non_alphanumeric': 0.14618601872137024, 'fraction_numerical': 0.018920533758215494, 'mean_word_length': 6.8346333853354135, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 39, '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': '1868527', 'n_tokens_mistral': 1846, 'n_tokens_neox': 1774, 'n_words': 298}