45 mSpaceProvider = spaceProvider;
46 mListener = mSpaceProvider->createListener();
48 connect(
mListener.get(), SIGNAL(changed()),
this, SLOT(changedSlot()));
52 mRep->setShowAxesLabels(
false);
53 mRep->setFontSize(0.08);
54 mRep->setAxisLength(0.03);
61 connect(mBase.get(), SIGNAL(changed()),
this, SLOT(changedSlot()));
68 connect(mTool.get(), SIGNAL(toolVisible(
bool)),
this, SLOT(changedSlot()));
72 void AxisConnector::changedSlot()
75 mRep->setTransform(rMs);
77 mRep->setVisible(
true);
81 mRep->setVisible(mTool->getVisible());
88 mRep->setVisible(
false);
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
static AxesRepPtr New(const QString &uid="")
csREF
the data reference space (r) using LPS (left-posterior-superior) coordinates.
void mergeWith(SpaceListenerPtr base)
SpaceListenerPtr mListener
void connectTo(ToolPtr tool)
Identification of a Coordinate system.
AxisConnector(CoordinateSystem space, SpaceProviderPtr spaceProvider)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
boost::shared_ptr< class SpaceListener > SpaceListenerPtr
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr