|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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
virtual std::vector< RepPtr > getReps()
Returns all reps in the view.
std::vector< RepPtr > mReps
Storage for internal reps.
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
Namespace for all CustusX production code.
virtual void removeRep(const RepPtr &rep)
Removes and disconnects the rep from the view.
QString mName
The view's name.
virtual vtkRenderWindowPtr getRenderWindow() const =0
virtual void setModified()
virtual bool hasRep(const RepPtr &rep) const
Checks if the view already have the rep.
boost::shared_ptr< class ViewRepCollection > ViewRepCollectionPtr
virtual vtkRendererPtr getRenderer() const
Get the renderer used by this View.
virtual void setBackgroundColor(QColor color)
boost::shared_ptr< class Rep > RepPtr
virtual QString getUid()
Get a views unique id.
vtkRenderWindowPtr mRenderWindow
ViewRepCollection(vtkRenderWindowPtr renderWindow, const QString &uid, const QString &name="")
constructor
boost::weak_ptr< class View > mSelf
virtual ~ViewRepCollection()
virtual void clear()
Removes everything in the view, inluding reps.
virtual QString getTypeString() const
Formatting class for debug printing of the ssc library.
QString mUid
The view's unique id.
virtual QString getName()
Get a views name.
virtual void setType(View::Type type)
void print(std::ostream &os)
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
std::vector< RepPtr >::iterator RepsIter
Iterator typedef for the internal rep vector.
virtual void addRep(const RepPtr &rep)
Adds and connects a rep to the view.
virtual void removeReps()
Removes all reps in the view.
virtual View::Type getType() const
virtual void printSelf(std::ostream &os, Indent indent)