vtkQtItemView Class Reference

#include <vtkQtItemView.h>

Inheritance diagram for vtkQtItemView:

Inheritance graph
[legend]
Collaboration diagram for vtkQtItemView:

Collaboration graph
[legend]

List of all members.


Detailed Description

Superclass for Qt widget-based views.

This superclass provides all the plumbing to integrate a Qt widget into the VTK view framework, including reporting selection changes and detecting selection changes from linked views.

Thanks:
Thanks to Brian Wylie from Sandia National Laboratories for implementing this class

Definition at line 60 of file vtkQtItemView.h.

class vtkQtSignalHandler

Public Types

typedef vtkView Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Update ()
virtual void SetItemView (QAbstractItemView *)
QAbstractItemView * GetItemView ()
virtual void SetItemModelAdapter (vtkQtAbstractModelAdapter *qma)
vtkQtAbstractModelAdapterGetItemModelAdapter ()
virtual void SetUseValueSelection (bool)
virtual bool GetUseValueSelection ()
virtual void SetValueSelectionArrayName (const char *)
virtual char * GetValueSelectionArrayName ()

Static Public Member Functions

static vtkQtItemViewNew ()
static int IsTypeOf (const char *type)
static vtkQtItemViewSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkQtItemView ()
 ~vtkQtItemView ()
virtual void AddInputConnection (vtkAlgorithmOutput *conn)
virtual void RemoveInputConnection (vtkAlgorithmOutput *conn)
void QtSelectionChanged (const QItemSelection &, const QItemSelection &)
QItemSelectionModel * GetSelectionModel ()
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)

Member Typedef Documentation

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

Definition at line 64 of file vtkQtItemView.h.


Constructor & Destructor Documentation

vtkQtItemView::vtkQtItemView (  )  [protected]

vtkQtItemView::~vtkQtItemView (  )  [protected]


Member Function Documentation

static vtkQtItemView* vtkQtItemView::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

virtual const char* vtkQtItemView::GetClassName (  )  [virtual]

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

static int vtkQtItemView::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

virtual int vtkQtItemView::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

static vtkQtItemView* vtkQtItemView::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

void vtkQtItemView::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkView.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

virtual void vtkQtItemView::SetItemView ( QAbstractItemView *   )  [virtual]

Set and get the underlying Qt view.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

QAbstractItemView* vtkQtItemView::GetItemView (  ) 

Set and get the underlying Qt view.

virtual void vtkQtItemView::SetItemModelAdapter ( vtkQtAbstractModelAdapter qma  )  [virtual]

Set and get the underlying Qt model adapter.

Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.

vtkQtAbstractModelAdapter* vtkQtItemView::GetItemModelAdapter (  ) 

Set and get the underlying Qt model adapter.

virtual void vtkQtItemView::Update (  )  [virtual]

Updates the view.

Reimplemented from vtkView.

virtual void vtkQtItemView::SetUseValueSelection ( bool   )  [virtual]

Set/Get whether the selection consist of indices or values.

virtual bool vtkQtItemView::GetUseValueSelection (  )  [virtual]

Set/Get whether the selection consist of indices or values.

virtual void vtkQtItemView::SetValueSelectionArrayName ( const char *   )  [virtual]

Set/Get the value selection array name

virtual char* vtkQtItemView::GetValueSelectionArrayName (  )  [virtual]

Set/Get the value selection array name

virtual void vtkQtItemView::ProcessEvents ( vtkObject caller,
unsigned long  eventId,
void *  callData 
) [protected, virtual]

Called to process the user event from the interactor style.

Reimplemented from vtkView.

virtual void vtkQtItemView::AddInputConnection ( vtkAlgorithmOutput conn  )  [protected, virtual]

Connects the algorithm output to the internal pipeline. This view only supports a single representation.

virtual void vtkQtItemView::RemoveInputConnection ( vtkAlgorithmOutput conn  )  [protected, virtual]

Removes the algorithm output from the internal pipeline.

void vtkQtItemView::QtSelectionChanged ( const QItemSelection &  ,
const QItemSelection &   
) [protected]

Called when the QItemView selection changes.

QItemSelectionModel* vtkQtItemView::GetSelectionModel (  )  [protected]

Returns the selection model of the item view. If no item view is defined (in the case of the vtkQtCategoryView), a pointer to an internal


Friends And Related Function Documentation

friend class vtkQtSignalHandler [friend]

Qt signal handling

Definition at line 139 of file vtkQtItemView.h.


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

Generated on Sat Dec 27 13:45:38 2008 for VTK by  doxygen 1.5.6