VTK  9.3.20240424
vtkQtRecordView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
18#ifndef vtkQtRecordView_h
19#define vtkQtRecordView_h
20
21#include "vtkQtView.h"
22#include "vtkSmartPointer.h" // Needed for data table member
23#include "vtkViewsQtModule.h" // For export macro
24#include <QPointer> // Needed for the text widget member
25
26class QTextEdit;
27
28VTK_ABI_NAMESPACE_BEGIN
30
31class VTKVIEWSQT_EXPORT vtkQtRecordView : public vtkQtView
32{
33 Q_OBJECT
34
35public:
37 vtkTypeMacro(vtkQtRecordView, vtkQtView);
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
46 QWidget* GetWidget() override;
47
48 enum
49 {
50 FIELD_DATA = 0,
51 POINT_DATA = 1,
52 CELL_DATA = 2,
53 VERTEX_DATA = 3,
54 EDGE_DATA = 4,
55 ROW_DATA = 5,
56 };
57
59
63 vtkGetMacro(FieldType, int);
64 void SetFieldType(int);
66
67 vtkGetMacro(CurrentRow, int);
68 vtkGetStringMacro(Text);
69
73 void Update() override;
74
75protected:
77 ~vtkQtRecordView() override;
78
81
83
84 QPointer<QTextEdit> TextWidget;
85
86 char* Text;
89
90private:
91 vtkQtRecordView(const vtkQtRecordView&) = delete;
92 void operator=(const vtkQtRecordView&) = delete;
93
94 vtkMTimeType CurrentSelectionMTime;
95 vtkMTimeType LastInputMTime;
96 vtkMTimeType LastMTime;
97};
98
99VTK_ABI_NAMESPACE_END
100#endif
this filter produces a vtkTable from the chosen attribute in the input data object.
The superclass for all representations.
a simple class to control print indentation
Definition vtkIndent.h:108
Superclass for QAbstractItemView-based views.
void Update() override
Updates the view.
void SetFieldType(int)
The field type to copy into the output table.
QPointer< QTextEdit > TextWidget
static vtkQtRecordView * New()
void AddRepresentationInternal(vtkDataRepresentation *rep) override
void RemoveRepresentationInternal(vtkDataRepresentation *rep) override
QWidget * GetWidget() override
Get the main container of this view (a QWidget).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkQtRecordView() override
vtkSmartPointer< vtkAttributeDataToTableFilter > DataObjectToTable
Superclass for Qt widget-based views.
Definition vtkQtView.h:27
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270