Example #1
0
Doom3GroupNode::Doom3GroupNode(const Doom3GroupNode& other) :
	EntityNode(other),
	scene::GroupNode(other),
	Snappable(other),
	SelectionTestable(other),
	ComponentSelectionTestable(other),
	ComponentEditable(other),
	ComponentSnappable(other),
	CurveNode(other),
	m_contained(
		other.m_contained,
		*this, // Pass <this> as Doom3GroupNode&
		Callback(boost::bind(&scene::Node::boundsChanged, this))
	),
	m_curveNURBS(m_contained.m_curveNURBS,
				 boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	m_curveCatmullRom(m_contained.m_curveCatmullRom, 
					  boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	_originInstance(VertexInstance(m_contained.getOrigin(), boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1))),
	_updateSkin(true),
	_skinObserver(boost::bind(&Doom3GroupNode::skinChanged, this, _1))
{
	// greebo: Don't call construct() here, this should be invoked by the
	// clone() method
}
Example #2
0
Doom3GroupNode::Doom3GroupNode(const IEntityClassPtr& eclass) :
	EntityNode(eclass),
	_d3Group(
		*this, // Pass <this> as Doom3GroupNode&
		Callback(boost::bind(&scene::Node::boundsChanged, this))
	),
	_nurbsEditInstance(_d3Group.m_curveNURBS,
				 boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	_catmullRomEditInstance(_d3Group.m_curveCatmullRom,
					  boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	_originInstance(VertexInstance(_d3Group.getOrigin(), boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)))
{}
Example #3
0
Doom3GroupNode::Doom3GroupNode(const IEntityClassPtr& eclass) :
	EntityNode(eclass),
	m_contained(
		*this, // Pass <this> as Doom3GroupNode&
		Callback(boost::bind(&scene::Node::boundsChanged, this))
	),
	m_curveNURBS(m_contained.m_curveNURBS,
				 boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	m_curveCatmullRom(m_contained.m_curveCatmullRom, 
					  boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	_originInstance(VertexInstance(m_contained.getOrigin(), boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1))),
	_updateSkin(true),
	_skinObserver(boost::bind(&Doom3GroupNode::skinChanged, this, _1))
{}
Example #4
0
Doom3GroupNode::Doom3GroupNode(const Doom3GroupNode& other) :
	EntityNode(other),
	scene::GroupNode(other),
	Snappable(other),
	ComponentSelectionTestable(other),
	ComponentEditable(other),
	ComponentSnappable(other),
	CurveNode(other),
	_d3Group(
		other._d3Group,
		*this, // Pass <this> as Doom3GroupNode&
		Callback(boost::bind(&scene::Node::boundsChanged, this))
	),
	_nurbsEditInstance(_d3Group.m_curveNURBS,
				 boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	_catmullRomEditInstance(_d3Group.m_curveCatmullRom,
					  boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)),
	_originInstance(VertexInstance(_d3Group.getOrigin(), boost::bind(&Doom3GroupNode::selectionChangedComponent, this, _1)))
{
	// greebo: Don't call construct() here, this should be invoked by the
	// clone() method
}
Example #5
0
void BrushInstance::vertex_push_back (SelectableVertex& vertex)
{
	m_vertexInstances.push_back(VertexInstance(m_faceInstances, vertex));
}