Fraxinus  22.04-rc3
An IGT application
cx::ViewRepCollection Class Reference

#include <cxViewRepCollection.h>

Inheritance diagram for cx::ViewRepCollection:
cx::View cx::ViewLinkingViewContainerItem cx::ViewLinkingViewWidget

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< RepPtrgetReps ()
 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< RepPtrmReps
 Storage for internal reps. More...
 
View::Type mType
 
boost::weak_ptr< class ViewmSelf
 

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 &)
 

Detailed Description

Date
2014-09-26
Author
Christian Askeland

Definition at line 30 of file cxViewRepCollection.h.

Member Typedef Documentation

typedef std::vector<RepPtr>::iterator cx::ViewRepCollection::RepsIter

Iterator typedef for the internal rep vector.

Definition at line 73 of file cxViewRepCollection.h.

Constructor & Destructor Documentation

cx::ViewRepCollection::ViewRepCollection ( vtkRenderWindowPtr  renderWindow,
const QString &  uid,
const QString &  name = "" 
)

constructor

Definition at line 26 of file cxViewRepCollection.cpp.

cx::ViewRepCollection::~ViewRepCollection ( )
virtual

Definition at line 42 of file cxViewRepCollection.cpp.

Member Function Documentation

void cx::ViewRepCollection::addRep ( const RepPtr rep)
virtual

Adds and connects a rep to the view.

Implements cx::View.

Definition at line 81 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::clear ( )
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 106 of file cxViewRepCollection.cpp.

int cx::ViewRepCollection::computeTotalMTime ( )

Definition at line 198 of file cxViewRepCollection.cpp.

QString cx::ViewRepCollection::getName ( )
virtual

Get a views name.

Implements cx::View.

Definition at line 71 of file cxViewRepCollection.cpp.

vtkRendererPtr cx::ViewRepCollection::getRenderer ( ) const
virtual

Get the renderer used by this View.

Implements cx::View.

Definition at line 76 of file cxViewRepCollection.cpp.

virtual vtkRenderWindowPtr cx::ViewRepCollection::getRenderWindow ( ) const
inlinevirtual

Get the vtkRenderWindow used by this View.

Implements cx::View.

Definition at line 43 of file cxViewRepCollection.h.

std::vector< RepPtr > cx::ViewRepCollection::getReps ( )
virtual

Returns all reps in the view.

Implements cx::View.

Definition at line 140 of file cxViewRepCollection.cpp.

virtual View::Type cx::ViewRepCollection::getType ( ) const
inlinevirtual

Implements cx::View.

Definition at line 45 of file cxViewRepCollection.h.

QString cx::ViewRepCollection::getTypeString ( ) const
virtual

Implements cx::View.

Definition at line 50 of file cxViewRepCollection.cpp.

QString cx::ViewRepCollection::getUid ( )
virtual

Get a views unique id.

Implements cx::View.

Definition at line 66 of file cxViewRepCollection.cpp.

bool cx::ViewRepCollection::hasRep ( const RepPtr rep) const
virtual

Checks if the view already have the rep.

Implements cx::View.

Definition at line 145 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::print ( std::ostream &  os)

Definition at line 150 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::printSelf ( std::ostream &  os,
Indent  indent 
)
virtual

Definition at line 156 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::removeRep ( const RepPtr rep)
virtual

Removes and disconnects the rep from the view.

Implements cx::View.

Definition at line 127 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::removeReps ( )
virtual

Removes all reps in the view.

Implements cx::View.

Definition at line 118 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::setBackgroundColor ( QColor  color)
virtual

Implements cx::View.

Definition at line 92 of file cxViewRepCollection.cpp.

void cx::ViewRepCollection::setModified ( )
virtual

Implements cx::View.

Definition at line 192 of file cxViewRepCollection.cpp.

virtual void cx::ViewRepCollection::setType ( View::Type  type)
inlinevirtual

Definition at line 49 of file cxViewRepCollection.h.

Member Data Documentation

QColor cx::ViewRepCollection::mBackgroundColor

Definition at line 67 of file cxViewRepCollection.h.

QString cx::ViewRepCollection::mName

The view's name.

Definition at line 69 of file cxViewRepCollection.h.

vtkRendererPtr cx::ViewRepCollection::mRenderer

Definition at line 71 of file cxViewRepCollection.h.

vtkRenderWindowPtr cx::ViewRepCollection::mRenderWindow

Definition at line 70 of file cxViewRepCollection.h.

std::vector<RepPtr> cx::ViewRepCollection::mReps

Storage for internal reps.

Definition at line 72 of file cxViewRepCollection.h.

boost::weak_ptr<class View> cx::ViewRepCollection::mSelf

Definition at line 75 of file cxViewRepCollection.h.

View::Type cx::ViewRepCollection::mType

Definition at line 74 of file cxViewRepCollection.h.

QString cx::ViewRepCollection::mUid

The view's unique id.

Definition at line 68 of file cxViewRepCollection.h.


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