NorMIT-nav
16.5
An IGT application
|
Default implementation of Rep. More...
#include <cxRepImpl.h>
Public Member Functions | |
RepImpl (const QString &uid="", const QString &name="") | |
virtual | ~RepImpl () |
virtual QString | getType () const =0 |
virtual void | connectToView (ViewPtr theView) |
virtual void | disconnectFromView (ViewPtr theView) |
virtual bool | isConnectedToView (ViewPtr theView) const |
void | setName (QString name) |
QString | getName () const |
QString | getUid () const |
virtual void | printSelf (std::ostream &os, Indent indent) |
Public Member Functions inherited from cx::Rep | |
virtual | ~Rep () |
Static Public Member Functions | |
template<class REP > | |
static boost::shared_ptr< REP > | wrap_new (REP *object, QString uid) |
Protected Slots | |
void | setModified () |
Protected Member Functions | |
ViewPtr | getView () const |
vtkRendererPtr | getRenderer () |
RepPtr | getSelf () |
virtual void | onModifiedStartRender () |
virtual void | addRepActorsToViewRenderer (ViewPtr view)=0 |
virtual void | removeRepActorsFromViewRenderer (ViewPtr view)=0 |
Default implementation of Rep.
Subclass from here to get a concrete class.
The connection to View is handled here, but subclasses must implement at least:
Definition at line 63 of file cxRepImpl.h.
|
explicit |
Definition at line 43 of file cxRepImpl.cpp.
|
virtual |
Definition at line 52 of file cxRepImpl.cpp.
|
protectedpure virtual |
Implemented in cx::SlicePlanes3DMarkerIn2DRep, cx::SlicePlanes3DRep, cx::LandmarkRep, cx::Image2DRep3D, cx::Texture3DSlicerRep, cx::VolumetricRep, cx::ToolRep2D, cx::PickerRep, cx::ToolRep3D, cx::Slices3DRep, cx::OrientationAnnotationRep, cx::CrossHairRep2D, cx::OrientationAnnotationSmartRep, cx::VideoFixedPlaneRep, cx::SliceRepSW, cx::FiberBundleRep, cx::MetricNamesRep, cx::DataMetricRep, cx::DisplayTextRep, cx::GeometricRep2D, cx::GeometricRep, cx::AxesRep, cx::OrientationAnnotation3DRep, cx::ToolMetricRep, cx::PointMetricRep2D, cx::PointMetricRep, cx::SphereMetricRep2D, cx::PlaneMetricRep, and cx::Stream2DRep3D.
|
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. |
Implements cx::Rep.
Definition at line 76 of file cxRepImpl.cpp.
|
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. |
Implements cx::Rep.
Definition at line 86 of file cxRepImpl.cpp.
|
virtual |
|
protected |
Definition at line 109 of file cxRepImpl.cpp.
|
inlineprotected |
Definition at line 100 of file cxRepImpl.h.
|
pure virtual |
Implements cx::Rep.
Implemented in cx::SlicePlanes3DMarkerIn2DRep, cx::SlicePlanes3DRep, cx::LandmarkRep, cx::Image2DRep3D, cx::Texture3DSlicerRep, cx::VolumetricRep, cx::Slices3DRep, cx::OrientationAnnotationRep, cx::PickerRep, cx::ToolRep3D, cx::ToolRep2D, cx::AngleMetricRep, cx::VideoFixedPlaneRep, cx::CrossHairRep2D, cx::MetricNamesRep, cx::SphereMetricRep, cx::OrientationAnnotationSmartRep, cx::FiberBundleRep, cx::GeometricRep2D, cx::DistanceMetricRep, cx::GeometricRep, cx::DisplayTextRep, cx::SliceRepSW, cx::DonutMetricRep, cx::ToolMetricRep, cx::FrameMetricRep, cx::PointMetricRep, cx::PointMetricRep2D, cx::GuideRep2D, cx::AxesRep, cx::PlaneMetricRep, cx::SphereMetricRep2D, cx::OrientationAnnotation3DRep, cx::Stream2DRep3D, and cx::StreamRep3D.
|
virtual |
|
protected |
Definition at line 104 of file cxRepImpl.cpp.
|
virtual |
Traverse the vector of views to see if this Representation is connected to one of them.
theView | A view pointer. |
Implements cx::Rep.
Definition at line 71 of file cxRepImpl.cpp.
|
inlineprotectedvirtual |
Reimplemented in cx::PickerRep, cx::ToolRep2D, cx::ToolRep3D, cx::MetricNamesRep, cx::AngleMetricRep, cx::GuideRep2D, cx::PointMetricRep2D, cx::SphereMetricRep, cx::PointMetricRep, cx::ToolMetricRep, cx::DistanceMetricRep, cx::SphereMetricRep2D, cx::DonutMetricRep, cx::FrameMetricRep, and cx::PlaneMetricRep.
Definition at line 103 of file cxRepImpl.h.
|
virtual |
Implements cx::Rep.
Reimplemented in cx::Texture3DSlicerRep, and cx::SliceRepSW.
Definition at line 97 of file cxRepImpl.cpp.
|
protectedpure virtual |
Implemented in cx::SlicePlanes3DMarkerIn2DRep, cx::SlicePlanes3DRep, cx::LandmarkRep, cx::Image2DRep3D, cx::Texture3DSlicerRep, cx::VolumetricRep, cx::ToolRep2D, cx::PickerRep, cx::ToolRep3D, cx::Slices3DRep, cx::OrientationAnnotationRep, cx::CrossHairRep2D, cx::OrientationAnnotationSmartRep, cx::VideoFixedPlaneRep, cx::SliceRepSW, cx::FiberBundleRep, cx::MetricNamesRep, cx::DataMetricRep, cx::DisplayTextRep, cx::GeometricRep2D, cx::GeometricRep, cx::AxesRep, cx::OrientationAnnotation3DRep, cx::ToolMetricRep, cx::PointMetricRep2D, cx::PointMetricRep, cx::SphereMetricRep2D, cx::PlaneMetricRep, and cx::Stream2DRep3D.
|
protectedslot |
Definition at line 132 of file cxRepImpl.cpp.
|
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. |
Implements cx::Rep.
Definition at line 56 of file cxRepImpl.cpp.
|
inlinestatic |
Usage: Define functions in each subclass with the signature: static REPPtr New(QString uid="") { return wrap_new(new REP(), uid); }
Definition at line 83 of file cxRepImpl.h.