35 #include <vtkRenderer.h>
53 mSpaceProvider(spaceProvider)
61 return "Stream2DRep3D";
72 mTrackedStream = trackedStream;
79 this->trackedStreamChanged();
84 view->getRenderer()->AddActor(mRTStream->getActor());
89 view->getRenderer()->RemoveActor(mRTStream->getActor());
92 void Stream2DRep3D::trackedStreamChanged()
94 ToolPtr tool = mTrackedStream->getProbeTool();
95 mRTStream->setTool(tool);
96 mRTStream->setRealtimeStream(mTrackedStream->getVideoSource());
101 if(!mTrackedStream->getProbeTool())
103 if(!mTrackedStream->getVideoSource())
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
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)
Default implementation of Rep.
cxLogicManager_EXPORT SpaceProviderPtr spaceProvider()
virtual QString getType() const
void setTrackedStream(TrackedStreamPtr trackedStream)
boost::shared_ptr< class Tool > ToolPtr