NorMIT-nav  22.09
An IGT application
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 48 of file cxView.h.

Member Enumeration Documentation

◆ Type

Enumerator
VIEW 
VIEW_2D 
VIEW_3D 
VIEW_REAL_TIME 

Definition at line 52 of file cxView.h.

Constructor & Destructor Documentation

◆ ~View()

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

Definition at line 57 of file cxView.h.

Member Function Documentation

◆ addRep()

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

Adds and connects a rep to the view.

Implemented in cx::ViewRepCollection.

◆ customContextMenuRequested

void cx::View::customContextMenuRequested ( const QPoint &  )
signal

◆ focusChange

void cx::View::focusChange ( bool  gotFocus,
Qt::FocusReason  reason 
)
signal

◆ get_vpMs()

virtual Transform3D cx::View::get_vpMs ( ) const
pure virtual

◆ getName()

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

Get a views name.

Implemented in cx::ViewRepCollection.

◆ getRenderer()

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

Get the renderer used by this View.

Implemented in cx::ViewRepCollection.

◆ getRenderWindow()

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

◆ getReps()

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

Returns all reps in the view.

Implemented in cx::ViewRepCollection.

◆ getType()

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

Implemented in cx::ViewRepCollection.

◆ getTypeString()

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

Implemented in cx::ViewRepCollection.

◆ getUid()

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

Get a views unique id.

Implemented in cx::ViewRepCollection.

◆ getViewport()

virtual DoubleBoundingBox3D cx::View::getViewport ( ) const
pure virtual

◆ getViewport_s()

virtual DoubleBoundingBox3D cx::View::getViewport_s ( ) const
pure virtual

◆ getZoomFactor()

virtual double cx::View::getZoomFactor ( ) const
pure virtual

◆ hasRep()

virtual bool cx::View::hasRep ( const RepPtr rep) const
pure virtual

Checks if the view already have the rep.

Implemented in cx::ViewRepCollection.

◆ mouseMove

void cx::View::mouseMove ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal

◆ mousePress

void cx::View::mousePress ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal

◆ mouseRelease

void cx::View::mouseRelease ( int  x,
int  y,
Qt::MouseButtons  buttons 
)
signal

◆ mouseWheel

void cx::View::mouseWheel ( int  x,
int  y,
int  delta,
int  orientation,
Qt::MouseButtons  buttons 
)
signal

◆ removeRep()

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

Removes and disconnects the rep from the view.

Implemented in cx::ViewRepCollection.

◆ removeReps()

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

Removes all reps in the view.

Implemented in cx::ViewRepCollection.

◆ resized

void cx::View::resized ( QSize  size)
signal

◆ setBackgroundColor()

virtual void cx::View::setBackgroundColor ( QColor  color)
pure virtual

Implemented in cx::ViewRepCollection.

◆ setModified()

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

Implemented in cx::ViewRepCollection.

◆ setZoomFactor()

virtual void cx::View::setZoomFactor ( double  factor)
pure virtual

◆ shown

void cx::View::shown ( )
signal

◆ size()

virtual QSize cx::View::size ( ) const
pure virtual

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