|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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();
Namespace for all CustusX production code.
vtkSmartPointer< class vtkCallbackCommand > vtkCallbackCommandPtr
boost::weak_ptr< class View > ViewWeakPtr
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
Abstract interface for entities that can be added to a View.
boost::shared_ptr< class Rep > RepPtr
boost::shared_ptr< class View > ViewPtr
Default implementation of Rep.
vtkSmartPointer< class vtkCallbackCommand > vtkCallbackCommandPtr
virtual void onModifiedStartRender()
Formatting class for debug printing of the ssc library.
boost::weak_ptr< class Rep > RepWeakPtr
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
virtual void onEveryRender()