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();
vtkPlanePtr getClipPlane()
bool getInvertPlane() const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkPlanePtr getClipPlaneCopy()
SliceProxyPtr getSlicer()
void setSlicer(SliceProxyPtr slicer)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
static SlicePlaneClipperPtr New()
boost::shared_ptr< class SlicePlaneClipper > SlicePlaneClipperPtr
Clip several 3D volumes using a SliceProxy.
void setInvertPlane(bool on)
vtkSmartPointer< class vtkPlane > vtkPlanePtr
Namespace for all CustusX production code.