NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::View Class Referenceabstract

#include <cxView.h>

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

Public Types

enum  Type { VIEW, VIEW_2D, VIEW_3D, VIEW_REAL_TIME }
 

Signals

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

Public Member Functions

virtual ~View ()
 
virtual Type getType () const =0
 
virtual QString getTypeString () const =0
 
virtual QString getUid ()=0
 Get a views unique id. More...
 
virtual QString getName ()=0
 Get a views name. More...
 
virtual void addRep (const RepPtr &rep)=0
 Adds and connects a rep to the view. More...
 
virtual void removeRep (const RepPtr &rep)=0
 Removes and disconnects the rep from the view. More...
 
virtual bool hasRep (const RepPtr &rep) const =0
 Checks if the view already have the rep. More...
 
virtual std::vector< RepPtrgetReps ()=0
 Returns all reps in the view. More...
 
virtual void removeReps ()=0
 Removes all reps in the view. More...
 
virtual vtkRendererPtr getRenderer () const =0
 Get the renderer used by this View. More...
 
virtual vtkRenderWindowPtr getRenderWindow () const =0
 
virtual void setModified ()=0
 
virtual void setBackgroundColor (QColor color)=0
 
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
 

Detailed Description

Base widget for displaying representations (Rep).

Use a ViewCollectionWidget to create Views.

A View represents one visualization scene, wrapping a vtkRenderer, vtkCamera and a vtkRenderWindow. The vtkRenderWindow might be shared with other Views.

Add reps to the View in order to visualize them. Although any Rep can be added to a View, it makes most sense to dedicate each view for either 2D, 3D or Video display. Most Reps are specialized to one of these three modes.

Definition at line 69 of file cxView.h.

Member Enumeration Documentation

Enumerator
VIEW 
VIEW_2D 
VIEW_3D 
VIEW_REAL_TIME 

Definition at line 73 of file cxView.h.

Constructor & Destructor Documentation

virtual cx::View::~View ( )
inlinevirtual

Definition at line 78 of file cxView.h.

Member Function Documentation

virtual void cx::View::addRep ( const RepPtr rep)
pure virtual

Adds and connects a rep to the view.

Implemented in cx::ViewRepCollection.

void cx::View::customContextMenuRequested ( const QPoint &  )
signal
void cx::View::focusChange ( bool  gotFocus,
Qt::FocusReason  reason 
)
signal
virtual Transform3D cx::View::get_vpMs ( ) const
pure virtual
virtual QString cx::View::getName ( )
pure virtual

Get a views name.

Implemented in cx::ViewRepCollection.

virtual vtkRendererPtr cx::View::getRenderer ( ) const
pure virtual

Get the renderer used by this View.

Implemented in cx::ViewRepCollection.

virtual vtkRenderWindowPtr cx::View::getRenderWindow ( ) const
pure virtual

Implemented in cx::ViewRepCollection.

virtual std::vector<RepPtr> cx::View::getReps ( )
pure virtual

Returns all reps in the view.

Implemented in cx::ViewRepCollection.

virtual Type cx::View::getType ( ) const
pure virtual

Implemented in cx::ViewRepCollection.

virtual QString cx::View::getTypeString ( ) const
pure virtual

Implemented in cx::ViewRepCollection.

virtual QString cx::View::getUid ( )
pure virtual

Get a views unique id.

Implemented in cx::ViewRepCollection.

virtual DoubleBoundingBox3D cx::View::getViewport ( ) const
pure virtual
virtual DoubleBoundingBox3D cx::View::getViewport_s ( ) const
pure virtual
virtual double cx::View::getZoomFactor ( ) const
pure virtual
virtual bool cx::View::hasRep ( const RepPtr rep) const
pure virtual

Checks if the view already have the rep.

Implemented in cx::ViewRepCollection.

void cx::View::mouseMove ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::View::mousePress ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::View::mouseRelease ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal
void cx::View::mouseWheel ( int  x,
int  y,
int  delta,
int  orientation,
Qt::MouseButtons  buttons 
)
signal
virtual void cx::View::removeRep ( const RepPtr rep)
pure virtual

Removes and disconnects the rep from the view.

Implemented in cx::ViewRepCollection.

virtual void cx::View::removeReps ( )
pure virtual

Removes all reps in the view.

Implemented in cx::ViewRepCollection.

void cx::View::resized ( QSize  size)
signal
virtual void cx::View::setBackgroundColor ( QColor  color)
pure virtual

Implemented in cx::ViewRepCollection.

virtual void cx::View::setModified ( )
pure virtual

Implemented in cx::ViewRepCollection.

virtual void cx::View::setZoomFactor ( double  factor)
pure virtual
void cx::View::shown ( )
signal
virtual QSize cx::View::size ( ) const
pure virtual

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