CustusX  20.03-rc1
An IGT application
cx::VideoFixedPlaneRep Class Reference

Display a VideoSource in a View. More...

#include <cxVideoRep.h>

Inheritance diagram for cx::VideoFixedPlaneRep:
cx::RepImpl cx::Rep

Public Member Functions

 VideoFixedPlaneRep (const QString &uid, const QString &name="")
 
virtual ~VideoFixedPlaneRep ()
 
virtual QString getType () const
 
void setRealtimeStream (VideoSourcePtr data)
 
void setTool (ToolPtr tool)
 
void setShowSector (bool on)
 
bool getShowSector () const
 
- Public Member Functions inherited from cx::RepImpl
 RepImpl (const QString &uid="", const QString &name="")
 
virtual ~RepImpl ()
 
virtual void connectToView (ViewPtr theView)
 
virtual void disconnectFromView (ViewPtr theView)
 
virtual bool isConnectedToView (ViewPtr theView) const
 
void setName (QString name)
 
QString getName () const
 
QString getUid () const
 
virtual void printSelf (std::ostream &os, Indent indent)
 
- Public Member Functions inherited from cx::Rep
virtual ~Rep ()
 

Protected Member Functions

virtual void addRepActorsToViewRenderer (ViewPtr view)
 
virtual void removeRepActorsFromViewRenderer (ViewPtr view)
 
- Protected Member Functions inherited from cx::RepImpl
ViewPtr getView () const
 
vtkRendererPtr getRenderer ()
 
RepPtr getSelf ()
 
virtual void onModifiedStartRender ()
 
virtual void onEveryRender ()
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::RepImpl
template<class REP >
static boost::shared_ptr< REP > wrap_new (REP *object, QString uid)
 
- Protected Slots inherited from cx::RepImpl
void setModified ()
 

Detailed Description

Display a VideoSource in a View.

A rep visualizing a VideoSource directly into the view plane. It does not follow the tool, but controls the camera in order to fill the entire View.

Used by CustusX.

Date
Oct 31, 2010
Author
christiana

Definition at line 45 of file cxVideoRep.h.

Constructor & Destructor Documentation

cx::VideoFixedPlaneRep::VideoFixedPlaneRep ( const QString &  uid,
const QString &  name = "" 
)

Definition at line 37 of file cxVideoRep.cpp.

cx::VideoFixedPlaneRep::~VideoFixedPlaneRep ( )
virtual

Definition at line 74 of file cxVideoRep.cpp.

Member Function Documentation

void cx::VideoFixedPlaneRep::addRepActorsToViewRenderer ( ViewPtr  view)
protectedvirtual

Implements cx::RepImpl.

Definition at line 178 of file cxVideoRep.cpp.

bool cx::VideoFixedPlaneRep::getShowSector ( ) const

Definition at line 84 of file cxVideoRep.cpp.

virtual QString cx::VideoFixedPlaneRep::getType ( ) const
inlinevirtual
Returns
a string identifying the Rep type. Each suclass implement this with its own class name. Subclasses from other namespaces (such as cx and snw) should add that namespace as a prefix.

Implements cx::RepImpl.

Definition at line 51 of file cxVideoRep.h.

void cx::VideoFixedPlaneRep::removeRepActorsFromViewRenderer ( ViewPtr  view)
protectedvirtual

Implements cx::RepImpl.

Definition at line 193 of file cxVideoRep.cpp.

void cx::VideoFixedPlaneRep::setRealtimeStream ( VideoSourcePtr  data)

Definition at line 112 of file cxVideoRep.cpp.

void cx::VideoFixedPlaneRep::setShowSector ( bool  on)

Definition at line 78 of file cxVideoRep.cpp.

void cx::VideoFixedPlaneRep::setTool ( ToolPtr  tool)

Definition at line 106 of file cxVideoRep.cpp.


The documentation for this class was generated from the following files: