Ejemplo n.º 1
0
BMLBodyObject::BMLBodyObject() : BMLObject()
{
	setName("body");

	SmartBody::SBAttribute* postureAttr = createStringAttribute("posture", "", true, "Basic", 20, false, false, false, "Motion name of the idle posture");

	SmartBody::SBAttribute* startAttr = createStringAttribute("start", "", true, "Basic", 100, false, false, false, "When the new posture will be activated and begin blending with the existing posture");
	SmartBody::SBAttribute* readyAttr = createStringAttribute("ready", "", true, "Basic", 110, false, false, false, "When the new posture will be fully blended in and the old posture will be gone ");
}
Ejemplo n.º 2
0
TextRenderer::TextRenderer() {
    createInputPort<Text>(0);
    mStyle = STYLE_NORMAL;
    mPosition = POSITION_CENTER;
	mFontSize = 18;
	mColor = Color::Green();
    createStringAttribute("position", "Text position", "Position of text in view (center/bottom_left/bottom_right/top_left/top_right)", "top_left");
    createIntegerAttribute("font_size", "Font size", "Font size", mFontSize);

    createShaderProgram({
        Config::getKernelSourcePath() + "/Visualization/TextRenderer/TextRenderer.vert",
        Config::getKernelSourcePath() + "/Visualization/TextRenderer/TextRenderer.frag",
    });
}
Ejemplo n.º 3
0
SBCollisionManager::SBCollisionManager()
{
	setName("collision");

	createIntAttribute("maxNumIterations", 5, true, "Basic", 60, false, false, false, "Max number collision response iterations.");

	std::vector<std::string> collisionHandles;
	collisionHandles.push_back("none");
	collisionHandles.push_back("default");	
	SmartBody::StringAttribute* collisionHandleAttr = createStringAttribute("collisionResolutionType", "none", true, "Physics", 350, false, false, false, "Set the collision resolution method");
	collisionHandleAttr->setValidValues(collisionHandles);

	createBoolAttribute("singleChrCapsuleMode", false, true, "basic", 5, false, false, false, "Create single collision capsule for each character.");
	createDoubleAttribute("jointBVLenRadRatio", 4.0f, true, "Basic", 60, false, false, false, "Joint BV capsule length-radius ratio.");

	_maxIterations = 5;
	collisionSpace = NULL;

	_singleChrCapsuleMode = false;
	_jointBVLenRadRatio = 4.0f;
}
Ejemplo n.º 4
0
ImageClassifier::ImageClassifier() {
	createOutputPort<ImageClassification>(0);
	createStringAttribute("labels", "Labels", "Name of each class", "");
}