CustusX
15.4.0-beta
An IGT application
|
#include <cxViewRepCollection.h>
Public Types | |
typedef std::vector< RepPtr > ::iterator | RepsIter |
Iterator typedef for the internal rep vector. More... | |
Public Types inherited from cx::View | |
enum | Type { VIEW, VIEW_2D, VIEW_3D, VIEW_REAL_TIME } |
Public Member Functions | |
ViewRepCollection (vtkRenderWindowPtr renderWindow, const QString &uid, const QString &name="") | |
constructor More... | |
virtual | ~ViewRepCollection () |
void | print (std::ostream &os) |
virtual void | printSelf (std::ostream &os, Indent indent) |
virtual void | clear () |
Removes everything in the view, inluding reps. More... | |
virtual vtkRenderWindowPtr | getRenderWindow () const |
Get the vtkRenderWindow used by this View. More... | |
virtual View::Type | getType () const |
virtual void | setType (View::Type type) |
virtual QString | getTypeString () const |
virtual QString | getUid () |
Get a views unique id. More... | |
virtual QString | getName () |
Get a views name. More... | |
virtual vtkRendererPtr | getRenderer () const |
Get the renderer used by this View. More... | |
virtual void | addRep (const RepPtr &rep) |
Adds and connects a rep to the view. More... | |
virtual void | removeRep (const RepPtr &rep) |
Removes and disconnects the rep from the view. More... | |
virtual bool | hasRep (const RepPtr &rep) const |
Checks if the view already have the rep. More... | |
virtual std::vector< RepPtr > | getReps () |
Returns all reps in the view. More... | |
virtual void | removeReps () |
Removes all reps in the view. More... | |
virtual void | setBackgroundColor (QColor color) |
virtual void | setModified () |
int | computeTotalMTime () |
Public Member Functions inherited from cx::View | |
virtual | ~View () |
virtual QSize | size () const =0 |
virtual void | setZoomFactor (double factor)=0 |
virtual double | getZoomFactor () const =0 |
virtual Transform3D | get_vpMs () const =0 |
virtual DoubleBoundingBox3D | getViewport () const =0 |
virtual DoubleBoundingBox3D | getViewport_s () const =0 |
Public Attributes | |
QColor | mBackgroundColor |
QString | mUid |
The view's unique id. More... | |
QString | mName |
The view's name. More... | |
vtkRenderWindowPtr | mRenderWindow |
vtkRendererPtr | mRenderer |
std::vector< RepPtr > | mReps |
Storage for internal reps. More... | |
View::Type | mType |
boost::weak_ptr< class View > | mSelf |
Additional Inherited Members | |
Signals inherited from cx::View | |
void | resized (QSize size) |
void | mouseMove (int x, int y, Qt::MouseButtons buttons) |
void | mousePress (int x, int y, Qt::MouseButtons buttons) |
void | mouseRelease (int x, int y, Qt::MouseButtons buttons) |
void | mouseWheel (int x, int y, int delta, int orientation, Qt::MouseButtons buttons) |
void | shown () |
void | focusChange (bool gotFocus, Qt::FocusReason reason) |
void | customContextMenuRequested (const QPoint &) |
Definition at line 51 of file cxViewRepCollection.h.
typedef std::vector<RepPtr>::iterator cx::ViewRepCollection::RepsIter |
Iterator typedef for the internal rep vector.
Definition at line 94 of file cxViewRepCollection.h.
cx::ViewRepCollection::ViewRepCollection | ( | vtkRenderWindowPtr | renderWindow, |
const QString & | uid, | ||
const QString & | name = "" |
||
) |
constructor
Definition at line 47 of file cxViewRepCollection.cpp.
|
virtual |
Definition at line 63 of file cxViewRepCollection.cpp.
|
virtual |
Adds and connects a rep to the view.
Implements cx::View.
Definition at line 102 of file cxViewRepCollection.cpp.
|
virtual |
Removes everything in the view, inluding reps.
clear all content of the view. This ensures that props added from outside the rep system also is cleared, and data not cleared with RemoveAllViewProps() (added to fix problem in snw ultrasound rep, data was not cleared, dont know why).
Definition at line 127 of file cxViewRepCollection.cpp.
int cx::ViewRepCollection::computeTotalMTime | ( | ) |
Definition at line 219 of file cxViewRepCollection.cpp.
|
virtual |
|
virtual |
Get the renderer used by this View.
Implements cx::View.
Definition at line 97 of file cxViewRepCollection.cpp.
|
inlinevirtual |
Get the vtkRenderWindow used by this View.
Implements cx::View.
Definition at line 64 of file cxViewRepCollection.h.
|
virtual |
Returns all reps in the view.
Implements cx::View.
Definition at line 161 of file cxViewRepCollection.cpp.
|
inlinevirtual |
Implements cx::View.
Definition at line 66 of file cxViewRepCollection.h.
|
virtual |
Implements cx::View.
Definition at line 71 of file cxViewRepCollection.cpp.
|
virtual |
|
virtual |
Checks if the view already have the rep.
Implements cx::View.
Definition at line 166 of file cxViewRepCollection.cpp.
void cx::ViewRepCollection::print | ( | std::ostream & | os | ) |
Definition at line 171 of file cxViewRepCollection.cpp.
|
virtual |
Definition at line 177 of file cxViewRepCollection.cpp.
|
virtual |
Removes and disconnects the rep from the view.
Implements cx::View.
Definition at line 148 of file cxViewRepCollection.cpp.
|
virtual |
Removes all reps in the view.
Implements cx::View.
Definition at line 139 of file cxViewRepCollection.cpp.
|
virtual |
Implements cx::View.
Definition at line 113 of file cxViewRepCollection.cpp.
|
virtual |
Implements cx::View.
Definition at line 213 of file cxViewRepCollection.cpp.
|
inlinevirtual |
Definition at line 70 of file cxViewRepCollection.h.
QColor cx::ViewRepCollection::mBackgroundColor |
Definition at line 88 of file cxViewRepCollection.h.
QString cx::ViewRepCollection::mName |
The view's name.
Definition at line 90 of file cxViewRepCollection.h.
vtkRendererPtr cx::ViewRepCollection::mRenderer |
Definition at line 92 of file cxViewRepCollection.h.
vtkRenderWindowPtr cx::ViewRepCollection::mRenderWindow |
Definition at line 91 of file cxViewRepCollection.h.
std::vector<RepPtr> cx::ViewRepCollection::mReps |
Storage for internal reps.
Definition at line 93 of file cxViewRepCollection.h.
boost::weak_ptr<class View> cx::ViewRepCollection::mSelf |
Definition at line 96 of file cxViewRepCollection.h.
View::Type cx::ViewRepCollection::mType |
Definition at line 95 of file cxViewRepCollection.h.
QString cx::ViewRepCollection::mUid |
The view's unique id.
Definition at line 89 of file cxViewRepCollection.h.