BrushInstance::BrushInstance (const scene::Path& path, scene::Instance* parent, Brush& brush) : Instance(path, parent), TransformModifier(Brush::TransformChangedCaller( brush), ApplyTransformCaller(*this)), m_brush(brush), m_selectable(SelectedChangedCaller(*this)), m_render_selected(GL_POINTS), m_render_faces_wireframe(m_faceCentroidPointsCulled, GL_POINTS), m_viewChanged(false) { m_brush.instanceAttach(Instance::path()); m_brush.attach(*this); GlobalRadiant().getCounter(counterBrushes).increment(); }
FaceInstance::FaceInstance (const FaceInstance& other) : m_face(other.m_face), m_selectable(SelectedChangedCaller(*this)), m_selectableVertices(other.m_selectableVertices), m_selectableEdges(other.m_selectableEdges), m_selectionChanged(other.m_selectionChanged) { }
FaceInstance::FaceInstance (Face& face, const SelectionChangeCallback& observer) : m_face(&face), m_selectable(SelectedChangedCaller(*this)), m_selectableVertices(observer), m_selectableEdges( observer), m_selectionChanged(observer) { }