12 #ifndef CXVIEWREPCOLLECTION_H 13 #define CXVIEWREPCOLLECTION_H 38 void print(std::ostream& os);
60 virtual std::vector<RepPtr>
getReps();
73 typedef std::vector<RepPtr>::iterator
RepsIter;
75 boost::weak_ptr<class View>
mSelf;
80 #endif // CXVIEWREPCOLLECTION_H boost::weak_ptr< class View > mSelf
virtual View::Type getType() const
virtual bool hasRep(const RepPtr &rep) const
Checks if the view already have the rep.
virtual QString getTypeString() const
virtual void setModified()
virtual vtkRenderWindowPtr getRenderWindow() const
Get the vtkRenderWindow used by this View.
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
std::vector< RepPtr >::iterator RepsIter
Iterator typedef for the internal rep vector.
virtual std::vector< RepPtr > getReps()
Returns all reps in the view.
virtual void removeReps()
Removes all reps in the view.
virtual void addRep(const RepPtr &rep)
Adds and connects a rep to the view.
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
virtual void setBackgroundColor(QColor color)
QString mName
The view's name.
vtkRenderWindowPtr mRenderWindow
virtual void setType(View::Type type)
QString mUid
The view's unique id.
Formatting class for debug printing of the ssc library.
boost::shared_ptr< class ViewRepCollection > ViewRepCollectionPtr
virtual QString getName()
Get a views name.
void print(std::ostream &os)
virtual void removeRep(const RepPtr &rep)
Removes and disconnects the rep from the view.
virtual ~ViewRepCollection()
std::vector< RepPtr > mReps
Storage for internal reps.
ViewRepCollection(vtkRenderWindowPtr renderWindow, const QString &uid, const QString &name="")
constructor
virtual QString getUid()
Get a views unique id.
virtual void clear()
Removes everything in the view, inluding reps.
boost::shared_ptr< class Rep > RepPtr
virtual vtkRendererPtr getRenderer() const
Get the renderer used by this View.
virtual void printSelf(std::ostream &os, Indent indent)
Namespace for all CustusX production code.