16 #include "cxResourceVisualizationExport.h" 21 #include <vtkSmartPointer.h> 42 class cxResourceVisualization_EXPORT
RepImpl :
public Rep 46 explicit RepImpl(
const QString& uid=
"",
const QString& name=
"");
48 virtual QString getType()
const = 0;
49 virtual void connectToView(
ViewPtr theView);
50 virtual void disconnectFromView(
ViewPtr theView);
51 virtual bool isConnectedToView(
ViewPtr theView)
const;
52 void setName(QString name);
53 QString getName()
const;
54 QString getUid()
const;
55 virtual void printSelf(std::ostream & os,
Indent indent);
62 static boost::shared_ptr<REP>
wrap_new(REP*
object, QString uid)
64 boost::shared_ptr<REP> retval(
object);
66 uid = retval->getType() +
"_" +
reinterpret_cast<long long>(retval.get());
69 retval->mSelf = retval;
83 virtual void addRepActorsToViewRenderer(
ViewPtr view) = 0;
84 virtual void removeRepActorsFromViewRenderer(
ViewPtr view) = 0;
89 static void ProcessEvents(vtkObject*
object,
95 void onStartRenderPrivate();
virtual void onEveryRender()
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
boost::shared_ptr< class View > ViewPtr
vtkSmartPointer< class vtkCallbackCommand > vtkCallbackCommandPtr
boost::weak_ptr< class Rep > RepWeakPtr
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
vtkSmartPointer< class vtkCallbackCommand > vtkCallbackCommandPtr
Formatting class for debug printing of the ssc library.
boost::weak_ptr< class View > ViewWeakPtr
Default implementation of Rep.
virtual void onModifiedStartRender()
boost::shared_ptr< class Rep > RepPtr
Abstract interface for entities that can be added to a View.
Namespace for all CustusX production code.