|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
16 #include "sscConfig.h"
17 #include <boost/shared_ptr.hpp>
18 #include <boost/weak_ptr.hpp>
28 class DoubleBoundingBox3D;
29 typedef boost::shared_ptr<class Rep>
RepPtr;
48 class View :
public QObject
61 virtual QString
getUid() = 0;
67 virtual std::vector<RepPtr>
getReps() = 0;
74 virtual QSize
size()
const = 0;
83 void mouseMove(
int x,
int y, Qt::MouseButtons buttons);
84 void mousePress(
int x,
int y, Qt::MouseButtons buttons);
85 void mouseRelease(
int x,
int y, Qt::MouseButtons buttons);
86 void mouseWheel(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons);
88 void focusChange(
bool gotFocus, Qt::FocusReason reason);
91 typedef boost::shared_ptr<View>
ViewPtr;
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
virtual QSize size() const =0
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
virtual QString getUid()=0
Get a views unique id.
Namespace for all CustusX production code.
virtual DoubleBoundingBox3D getViewport_s() const =0
void focusChange(bool gotFocus, Qt::FocusReason reason)
virtual QString getTypeString() const =0
virtual void setZoomFactor(double factor)=0
virtual vtkRenderWindowPtr getRenderWindow() const =0
virtual bool hasRep(const RepPtr &rep) const =0
Checks if the view already have the rep.
void mouseMove(int x, int y, Qt::MouseButtons buttons)
boost::shared_ptr< class Rep > RepPtr
virtual DoubleBoundingBox3D getViewport() const =0
virtual QString getName()=0
Get a views name.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual Type getType() const =0
virtual vtkRendererPtr getRenderer() const =0
Get the renderer used by this View.
void customContextMenuRequested(const QPoint &)
void mouseRelease(int x, int y, Qt::MouseButtons buttons)
boost::shared_ptr< class View > ViewPtr
virtual Transform3D get_vpMs() const =0
virtual void setBackgroundColor(QColor color)=0
void mousePress(int x, int y, Qt::MouseButtons buttons)
virtual std::vector< RepPtr > getReps()=0
Returns all reps in the view.
void mouseWheel(int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
virtual double getZoomFactor() const =0
virtual void removeReps()=0
Removes all reps in the view.
virtual void removeRep(const RepPtr &rep)=0
Removes and disconnects the rep from the view.
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
virtual void setModified()=0
virtual void addRep(const RepPtr &rep)=0
Adds and connects a rep to the view.