24 mSpaceProvider = spaceProvider;
25 mListener = mSpaceProvider->createListener();
27 connect(
mListener.get(), SIGNAL(changed()),
this, SLOT(changedSlot()));
31 mRep->setShowAxesLabels(
false);
32 mRep->setFontSize(0.08);
33 mRep->setAxisLength(0.03);
40 connect(mBase.get(), SIGNAL(changed()),
this, SLOT(changedSlot()));
47 connect(mTool.get(), SIGNAL(toolVisible(
bool)),
this, SLOT(changedSlot()));
51 void AxisConnector::changedSlot()
54 mRep->setTransform(rMs);
56 mRep->setVisible(
true);
60 mRep->setVisible(mTool->getVisible());
67 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