namespace R2C2 {
Signal3D::Signal3D(Layout3D &l, Signal &s):
- Object3D(s),
- GL::ObjectInstance(l.get_catalogue().get_signal(s.get_type()).get_object()),
- layout(l),
+ Object3D(l, s),
+ GL::ObjectInstance(l.get_catalogue().get_3d(s.get_type()).get_object()),
signal(s)
{
- layout.add_signal(*this);
layout.get_scene().add(*this);
}
Signal3D::~Signal3D()
{
- layout.remove_signal(*this);
layout.get_scene().remove(*this);
}