Fraxinus
2023.01.05-dev+develop.0da12
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 |
virtual void | onEveryRender () |
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 42 of file cxRepImpl.h.
|
explicit |
Definition at line 22 of file cxRepImpl.cpp.
|
virtual |
Definition at line 31 of file cxRepImpl.cpp.
|
protectedpure virtual |
Implemented in cx::SlicePlanes3DMarkerIn2DRep, cx::SlicePlanes3DRep, cx::LandmarkRep, cx::Image2DRep3D, cx::Texture3DSlicerRep, cx::GeometricRep, cx::VolumetricRep, cx::PickerRep, cx::ToolRep3D, cx::ToolRep2D, cx::OrientationAnnotationRep, cx::CrossHairRep2D, cx::OrientationAnnotationSmartRep, cx::Slices3DRep, cx::MetricNamesRep, cx::VideoFixedPlaneRep, cx::SliceRepSW, cx::FiberBundleRep, cx::DataMetricRep, cx::DisplayTextRep, cx::GeometricRep2D, cx::AxesRep, cx::OrientationAnnotation3DRep, cx::ToolMetricRep, cx::PointMetricRep2D, cx::PointMetricRep, cx::DistanceMetricRep2D, 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 55 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 65 of file cxRepImpl.cpp.
|
virtual |
|
protected |
Definition at line 88 of file cxRepImpl.cpp.
|
inlineprotected |
Definition at line 79 of file cxRepImpl.h.
|
pure virtual |
Implements cx::Rep.
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::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.
|
virtual |
|
protected |
Definition at line 83 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 50 of file cxRepImpl.cpp.
|
inlineprotectedvirtual |
Reimplemented in cx::CustomMetricRep.
Definition at line 85 of file cxRepImpl.h.
|
inlineprotectedvirtual |
Reimplemented in cx::PickerRep, cx::ToolRep3D, cx::ToolRep2D, cx::MetricNamesRep, cx::AngleMetricRep, cx::GuideRep2D, cx::PointMetricRep2D, cx::SphereMetricRep, cx::PointMetricRep, cx::ToolMetricRep, cx::DistanceMetricRep2D, cx::CustomMetricRep, cx::DistanceMetricRep, cx::SphereMetricRep2D, cx::FrameMetricRep, cx::PlaneMetricRep, cx::DonutMetricRep, and cx::RegionOfInterestMetricRep.
Definition at line 82 of file cxRepImpl.h.
|
virtual |
Implements cx::Rep.
Reimplemented in cx::Texture3DSlicerRep, and cx::SliceRepSW.
Definition at line 76 of file cxRepImpl.cpp.
|
protectedpure virtual |
Implemented in cx::SlicePlanes3DMarkerIn2DRep, cx::SlicePlanes3DRep, cx::LandmarkRep, cx::Image2DRep3D, cx::Texture3DSlicerRep, cx::GeometricRep, cx::VolumetricRep, cx::PickerRep, cx::ToolRep3D, cx::ToolRep2D, cx::OrientationAnnotationRep, cx::CrossHairRep2D, cx::OrientationAnnotationSmartRep, cx::Slices3DRep, cx::MetricNamesRep, cx::VideoFixedPlaneRep, cx::SliceRepSW, cx::FiberBundleRep, cx::DataMetricRep, cx::DisplayTextRep, cx::GeometricRep2D, cx::AxesRep, cx::OrientationAnnotation3DRep, cx::ToolMetricRep, cx::PointMetricRep2D, cx::PointMetricRep, cx::DistanceMetricRep2D, cx::SphereMetricRep2D, cx::PlaneMetricRep, and cx::Stream2DRep3D.
|
protectedslot |
Definition at line 112 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 35 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 62 of file cxRepImpl.h.