Exemplo n.º 1
0
void DataGraph::SelectNode(BaseObject *node)
{
    workingNode = dynamic_cast<DataNode *>(node);
    UpdatePropertyPanel();
    
    RefreshGraph();
}
Exemplo n.º 2
0
void DataGraph::SelectHierarchyNode(UIHierarchyNode * node)
{
    DataNode * dataNode = dynamic_cast<DataNode*>((BaseObject*)node->GetUserNode());
    if (dataNode)
    {
        workingNode = dataNode;
        UpdatePropertyPanel();
    }
}
Exemplo n.º 3
0
void EntitiesGraph::SelectHierarchyNode(UIHierarchyNode * node)
{
	Entity * sceneEntity = (Entity*)(node->GetUserNode());
	workingEntity = sceneEntity;
	//workingNode = sceneNode;
	//workingScene->SetSelection(0);
	//workingScene->SetSelection(workingNode);

	UpdatePropertyPanel();
}
Exemplo n.º 4
0
void JointPropertySetting::UpdateProperties(wxPropertyGrid* pg)
{
	pg->GetProperty(wxT("Name"))->SetValue(m_joint->m_name);
	pg->GetProperty(wxT("collideConnected"))->SetValue(m_joint->m_collide_connected);

	switch (m_joint->m_type)
	{
	case Joint::e_revoluteJoint:
		UpdatePropertyPanel(static_cast<RevoluteJoint*>(m_joint), pg);
		break;
	case Joint::e_prismaticJoint:
		UpdatePropertyPanel(static_cast<PrismaticJoint*>(m_joint), pg);
		break;
	case Joint::e_distanceJoint:
		UpdatePropertyPanel(static_cast<DistanceJoint*>(m_joint), pg);
		break;
	case Joint::e_pulleyJoint:
		UpdatePropertyPanel(static_cast<PulleyJoint*>(m_joint), pg);
		break;
	case Joint::e_gearJoint:
		UpdatePropertyPanel(static_cast<GearJoint*>(m_joint), pg);
		break;
	case Joint::e_wheelJoint:
		UpdatePropertyPanel(static_cast<WheelJoint*>(m_joint), pg);
		break;
	case Joint::e_weldJoint:
		UpdatePropertyPanel(static_cast<WeldJoint*>(m_joint), pg);
		break;
	case Joint::e_frictionJoint:
		UpdatePropertyPanel(static_cast<FrictionJoint*>(m_joint), pg);
		break;
	case Joint::e_ropeJoint:
		UpdatePropertyPanel(static_cast<RopeJoint*>(m_joint), pg);
		break;
	case Joint::e_motorJoint:
		UpdatePropertyPanel(static_cast<MotorJoint*>(m_joint), pg);
		break;
	}
}
Exemplo n.º 5
0
void CPropertiesWnd::OnSelchangeComboSettings()
{
    UpdatePropertyPanel();
}