void repo::gui::RepoWidgetAssimpFlags::setPredefinedSettings(int selection)
{
    switch (selection)
    {
    case DEFAULT :
        reset();
        break;
    case DIRECT_3D :
        reset();
        setDirect3D();
        break;
    case BASIC :
        reset();
        setBasic();
        break;
    case MEDIUM :
        reset();
        setMedium();
        break;
    case EXTREME :
        reset();
        setExtreme();
        break;
    }
}
Esempio n. 2
0
void SForce::initFind(SOPBoss* boss, GU_Detail* gdp)
{
	setBasic(boss, gdp);

	m_attr_bt_type = SHelper::findPointAttrI(m_gdp, "bt_type");
	m_attr_bt_dir = SHelper::findPointAttrV3(m_gdp, "bt_dir");
	m_attr_bt_scale = SHelper::findPointAttrF(m_gdp, "bt_scale");

	m_attr_bt_index = SHelper::findPointAttrI(m_gdp, "bt_index");
	m_attr_bt_rad = SHelper::findPointAttrF(m_gdp, "bt_rad");
	m_attr_bt_fade = SHelper::findPointAttrF(m_gdp, "bt_fade");

	if(m_attr_bt_type.isInvalid())	THROW_SOP("SForce: No \"bt_type\" point attribute", 0);
	if(m_attr_bt_dir.isInvalid())	THROW_SOP("SForce: No \"bt_dir\" point attribute", 0);
	if(m_attr_bt_scale.isInvalid())	THROW_SOP("SForce: No \"bt_scale\" point attribute", 0);
	if(m_attr_bt_index.isInvalid())	THROW_SOP("SForce: No \"bt_index\" point attribute", 0);
	if(m_attr_bt_rad.isInvalid())	THROW_SOP("SForce: No \"bt_rad\" point attribute", 0);
	if(m_attr_bt_fade.isInvalid())	THROW_SOP("SForce: No \"bt_fade\" point attribute", 0);
}
Esempio n. 3
0
void SForce::init(SOPBoss* boss, GU_Detail* gdp)
{
	setBasic(boss, gdp);

	m_attr_bt_type = SHelper::addIntPointAttr(m_gdp, "bt_type", 1, 1);
	m_attr_bt_dir = SHelper::addFloatVectorPointAttr(m_gdp, "bt_dir");
	m_attr_bt_scale = SHelper::addFloatPointAttr(m_gdp, "bt_scale", 1, 1);

	m_attr_bt_index = SHelper::addIntPointAttr(m_gdp, "bt_index", 1, -1);
	m_attr_bt_rad = SHelper::addFloatPointAttr(m_gdp, "bt_rad", 1, 1);
	m_attr_bt_fade = SHelper::addFloatPointAttr(m_gdp, "bt_fade", 1, 1);

	m_gdp->addVariableName("P", "BT");
	m_gdp->addVariableName("bt_type", "BTYPE");
	m_gdp->addVariableName("bt_dir", "BDIR");
	m_gdp->addVariableName("bt_scale", "BSCALE");

	m_gdp->addVariableName("bt_index", "BI");
	m_gdp->addVariableName("bt_rad", "BRAD");
	m_gdp->addVariableName("bt_fade", "BFADE");
}