56 SlicePlaneClipper::SlicePlaneClipper() :
71 disconnect(mSlicer.get(), SIGNAL(transformChanged(
Transform3D)),
this, SLOT(changedSlot()));
76 connect(mSlicer.get(), SIGNAL(transformChanged(
Transform3D)),
this, SLOT(changedSlot()));
79 this->updateClipPlane();
102 Vector3D SlicePlaneClipper::getUnitNormal()
const 115 retval->SetNormal(mClipPlane->GetNormal());
116 retval->SetOrigin(mClipPlane->GetOrigin());
125 void SlicePlaneClipper::updateClipPlane()
130 mClipPlane = vtkPlanePtr::New();
134 Vector3D n = rMs.vector(this->getUnitNormal());
136 mClipPlane->SetNormal(n.begin());
137 mClipPlane->SetOrigin(p.begin());
140 void SlicePlaneClipper::changedSlot()
145 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.