14 #include <vtkRenderer.h> 32 mSpaceProvider(spaceProvider)
40 return "Stream2DRep3D";
51 mTrackedStream = trackedStream;
58 this->trackedStreamChanged();
63 view->getRenderer()->AddActor(mRTStream->getActor());
68 view->getRenderer()->RemoveActor(mRTStream->getActor());
71 void Stream2DRep3D::trackedStreamChanged()
73 ToolPtr tool = mTrackedStream->getProbeTool();
74 mRTStream->setTool(tool);
75 mRTStream->setRealtimeStream(mTrackedStream->getVideoSource());
80 if(!mTrackedStream->getProbeTool())
82 if(!mTrackedStream->getVideoSource())
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
RepImpl(const QString &uid="", const QString &name="")
boost::shared_ptr< class Stream2DRep3D > Stream2DRep3DPtr
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
static boost::shared_ptr< REP > wrap_new(REP *object, QString uid)
void newVideoSource(VideoSourcePtr videoSource)
Display a stream as 2D in 3D.
boost::shared_ptr< class View > ViewPtr
Helper class for displaying a VideoSource.
static Stream2DRep3DPtr New(SpaceProviderPtr spaceProvider, const QString &uid="")
virtual void removeRepActorsFromViewRenderer(ViewPtr view)
void newTool(ToolPtr tool)
virtual void addRepActorsToViewRenderer(ViewPtr view)
virtual QString getType() const
void setTrackedStream(TrackedStreamPtr trackedStream)
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr