VTK
9.0.1
Views
Qt
vtkQtAnnotationView.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtAnnotationView.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
33
#ifndef vtkQtAnnotationView_h
34
#define vtkQtAnnotationView_h
35
36
#include "
vtkQtView.h
"
37
#include "vtkViewsQtModule.h"
// For export macro
38
#include <QObject>
// Needed for the Q_OBJECT macro
39
40
#include <QPointer>
// Needed to hold the view
41
42
class
vtkQtAnnotationLayersModelAdapter
;
43
44
class
QItemSelection;
45
class
QTableView;
46
47
class
VTKVIEWSQT_EXPORT
vtkQtAnnotationView
:
public
vtkQtView
48
{
49
Q_OBJECT
50
51
public
:
52
static
vtkQtAnnotationView
*
New
();
53
vtkTypeMacro(
vtkQtAnnotationView
,
vtkQtView
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
55
62
QWidget*
GetWidget
()
override
;
63
67
void
Update
()
override
;
68
69
protected
:
70
vtkQtAnnotationView
();
71
~
vtkQtAnnotationView
()
override
;
72
73
private
slots:
74
void
slotQtSelectionChanged(
const
QItemSelection&,
const
QItemSelection&);
75
76
private
:
77
vtkMTimeType
LastInputMTime;
78
79
QPointer<QTableView> View;
80
vtkQtAnnotationLayersModelAdapter
* Adapter;
81
82
vtkQtAnnotationView
(
const
vtkQtAnnotationView
&) =
delete
;
83
void
operator=(
const
vtkQtAnnotationView
&) =
delete
;
84
};
85
86
#endif
vtkQtAnnotationLayersModelAdapter
Adapts annotations to a Qt item model.
Definition:
vtkQtAnnotationLayersModelAdapter.h:42
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkQtAnnotationView
A VTK view that displays the annotations on its annotation link.
Definition:
vtkQtAnnotationView.h:47
vtkView::New
static vtkView * New()
vtkQtView.h
vtkView::Update
virtual void Update()
Update the view.
vtkQtView
Superclass for Qt widget-based views.
Definition:
vtkQtView.h:31
vtkQtView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkQtView::GetWidget
virtual QWidget * GetWidget()=0
Get the main container of this view (a QWidget).
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition:
vtkType.h:293
Generated on Thu Jun 25 2020 08:31:02 for VTK by
1.8.17