#include <vtkQtItemView.h>
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.
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) |
vtkQtAbstractModelAdapter * | GetItemModelAdapter () |
virtual void | SetUseValueSelection (bool) |
virtual bool | GetUseValueSelection () |
virtual void | SetValueSelectionArrayName (const char *) |
virtual char * | GetValueSelectionArrayName () |
Static Public Member Functions | |
static vtkQtItemView * | New () |
static int | IsTypeOf (const char *type) |
static vtkQtItemView * | SafeDownCast (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) |
typedef vtkView vtkQtItemView::Superclass |
Reimplemented from vtkView.
Reimplemented in vtkQtListView, vtkQtTableView, and vtkQtTreeView.
Definition at line 64 of file vtkQtItemView.h.
vtkQtItemView::vtkQtItemView | ( | ) | [protected] |
vtkQtItemView::~vtkQtItemView | ( | ) | [protected] |
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] |
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] |
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
friend class vtkQtSignalHandler [friend] |
Qt signal handling
Definition at line 139 of file vtkQtItemView.h.