35 SlicePlaneClipper::SlicePlaneClipper() :
50 disconnect(mSlicer.get(), SIGNAL(transformChanged(
Transform3D)),
this, SLOT(changedSlot()));
55 connect(mSlicer.get(), SIGNAL(transformChanged(
Transform3D)),
this, SLOT(changedSlot()));
58 this->updateClipPlane();
81 Vector3D SlicePlaneClipper::getUnitNormal()
const
94 retval->SetNormal(mClipPlane->GetNormal());
95 retval->SetOrigin(mClipPlane->GetOrigin());
104 void SlicePlaneClipper::updateClipPlane()
109 mClipPlane = vtkPlanePtr::New();
113 Vector3D n = rMs.vector(this->getUnitNormal());
115 mClipPlane->SetNormal(n.begin());
116 mClipPlane->SetOrigin(p.begin());
119 void SlicePlaneClipper::changedSlot()
124 this->updateClipPlane();