37 #include "cxResourceVisualizationExport.h"
42 #include <vtkSmartPointer.h>
63 class cxResourceVisualization_EXPORT
RepImpl :
public Rep
67 explicit RepImpl(
const QString& uid=
"",
const QString& name=
"");
69 virtual QString getType()
const = 0;
70 virtual void connectToView(
ViewPtr theView);
71 virtual void disconnectFromView(
ViewPtr theView);
72 virtual bool isConnectedToView(
ViewPtr theView)
const;
73 void setName(QString name);
74 QString getName()
const;
75 QString getUid()
const;
76 virtual void printSelf(std::ostream & os,
Indent indent);
83 static boost::shared_ptr<REP>
wrap_new(REP*
object, QString uid)
85 boost::shared_ptr<REP> retval(
object);
87 uid = retval->getType() +
"_" +
reinterpret_cast<long>(retval.get());
90 retval->mSelf = retval;
104 virtual void addRepActorsToViewRenderer(
ViewPtr view) = 0;
105 virtual void removeRepActorsFromViewRenderer(
ViewPtr view) = 0;
109 static void ProcessEvents(vtkObject*
object,
115 void onStartRenderPrivate();
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.