CustusX
22.04-rc5
An IGT application
|
Abstract interface for entities that can be added to a View. More...
#include <cxRep.h>
Public Member Functions | |
virtual | ~Rep () |
virtual QString | getType () const =0 |
virtual void | connectToView (ViewPtr theView)=0 |
virtual void | disconnectFromView (ViewPtr theView)=0 |
virtual bool | isConnectedToView (ViewPtr theView) const =0 |
virtual void | setName (QString name)=0 |
virtual QString | getName () const =0 |
virtual QString | getUid () const =0 |
virtual void | printSelf (std::ostream &os, Indent indent)=0 |
Abstract interface for entities that can be added to a View.
Rep (Representation) is the interface that all Representations in ssc must implement.
The default implementation can be found in RepImpl. Inherit from that when implementing concrete classes.
|
pure virtual |
Do not use this method! It is only used by View to set up an internal connection between the two.
theView | The view to add this representation to. |
Implemented in cx::RepImpl.
|
pure virtual |
Do not use this method! It is only used by View to tear down an internal connection between the two.
theView | The view to disconnect from. |
Implemented in cx::RepImpl.
|
pure virtual |
Implemented in cx::RepImpl.
|
pure virtual |
Implemented in cx::SlicePlanes3DMarkerIn2DRep, cx::SlicePlanes3DRep, cx::LandmarkRep, cx::Image2DRep3D, cx::GeometricRep, cx::Texture3DSlicerRep, cx::VolumetricRep, cx::OrientationAnnotationRep, cx::PickerRep, cx::ToolRep3D, cx::Slices3DRep, cx::ToolRep2D, cx::AngleMetricRep, cx::VideoFixedPlaneRep, cx::CrossHairRep2D, cx::MetricNamesRep, cx::SphereMetricRep, cx::RepImpl, cx::OrientationAnnotationSmartRep, cx::FiberBundleRep, cx::GeometricRep2D, cx::CustomMetricRep, cx::DistanceMetricRep, cx::DisplayTextRep, cx::SliceRepSW, cx::ToolMetricRep, cx::FrameMetricRep, cx::PointMetricRep, cx::PointMetricRep2D, cx::DonutMetricRep, cx::RegionOfInterestMetricRep, cx::GuideRep2D, cx::AxesRep, cx::PlaneMetricRep, cx::DistanceMetricRep2D, cx::SphereMetricRep2D, cx::OrientationAnnotation3DRep, cx::Stream2DRep3D, and cx::StreamRep3D.
|
pure virtual |
Return an unique id for this instance, i.e. unique over all Rep instances.
Implemented in cx::RepImpl.
|
pure virtual |
Traverse the vector of views to see if this Representation is connected to one of them.
theView | A view pointer. |
Implemented in cx::RepImpl.
|
pure virtual |
Implemented in cx::Texture3DSlicerRep, cx::RepImpl, and cx::SliceRepSW.
|
pure virtual |
Set the name of this Rep. This is useful for context-menus in Views and other user interaction constructs.
name | The user-friendly name for this instance. |
Implemented in cx::RepImpl.