VTK  9.0.1
vtkQtRecordView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtRecordView.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 -------------------------------------------------------------------------*/
34 #ifndef vtkQtRecordView_h
35 #define vtkQtRecordView_h
36 
37 #include "vtkQtView.h"
38 #include "vtkSmartPointer.h" // Needed for data table member
39 #include "vtkViewsQtModule.h" // For export macro
40 #include <QPointer> // Needed for the text widget member
41 
42 class QTextEdit;
44 
45 class VTKVIEWSQT_EXPORT vtkQtRecordView : public vtkQtView
46 {
47  Q_OBJECT
48 
49 public:
50  static vtkQtRecordView* New();
51  vtkTypeMacro(vtkQtRecordView, vtkQtView);
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
60  QWidget* GetWidget() override;
61 
62  enum
63  {
64  FIELD_DATA = 0,
65  POINT_DATA = 1,
66  CELL_DATA = 2,
67  VERTEX_DATA = 3,
68  EDGE_DATA = 4,
69  ROW_DATA = 5,
70  };
71 
73 
77  vtkGetMacro(FieldType, int);
78  void SetFieldType(int);
80 
81  vtkGetMacro(CurrentRow, int);
82  vtkGetStringMacro(Text);
83 
87  void Update() override;
88 
89 protected:
91  ~vtkQtRecordView() override;
92 
95 
97 
98  QPointer<QTextEdit> TextWidget;
99 
100  char* Text;
103 
104 private:
105  vtkQtRecordView(const vtkQtRecordView&) = delete;
106  void operator=(const vtkQtRecordView&) = delete;
107 
108  vtkMTimeType CurrentSelectionMTime;
109  vtkMTimeType LastInputMTime;
110  vtkMTimeType LastMTime;
111 };
112 
113 #endif
vtkX3D::Text
@ Text
Definition: vtkX3D.h:166
vtkQtRecordView
Superclass for QAbstractItemView-based views.
Definition: vtkQtRecordView.h:46
vtkQtRecordView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkQtRecordView::vtkQtRecordView
vtkQtRecordView()
vtkQtRecordView::AddRepresentationInternal
void AddRepresentationInternal(vtkDataRepresentation *rep) override
vtkQtRecordView::GetWidget
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
vtkSmartPointer< vtkDataObjectToTable >
vtkQtRecordView::Text
char * Text
Definition: vtkQtRecordView.h:100
vtkQtRecordView::RemoveRepresentationInternal
void RemoveRepresentationInternal(vtkDataRepresentation *rep) override
vtkQtRecordView::Update
void Update() override
Updates the view.
vtkDataRepresentation
The superclass for all representations.
Definition: vtkDataRepresentation.h:67
vtkQtRecordView::DataObjectToTable
vtkSmartPointer< vtkDataObjectToTable > DataObjectToTable
Definition: vtkQtRecordView.h:96
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkSmartPointer.h
vtkQtRecordView::TextWidget
QPointer< QTextEdit > TextWidget
Definition: vtkQtRecordView.h:98
vtkQtRecordView::~vtkQtRecordView
~vtkQtRecordView() override
vtkQtRecordView::SetFieldType
void SetFieldType(int)
vtkQtRecordView::New
static vtkQtRecordView * New()
vtkQtView.h
vtkQtView
Superclass for Qt widget-based views.
Definition: vtkQtView.h:34
vtkQtRecordView::CurrentRow
int CurrentRow
Definition: vtkQtRecordView.h:102
vtkDataObjectToTable
extract field data as a table
Definition: vtkDataObjectToTable.h:36
vtkQtRecordView::FieldType
int FieldType
Definition: vtkQtRecordView.h:101
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293