VTK  9.1.0
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
42class QTextEdit;
44
45class VTKVIEWSQT_EXPORT vtkQtRecordView : public vtkQtView
46{
47 Q_OBJECT
48
49public:
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
89protected:
91 ~vtkQtRecordView() override;
92
95
97
98 QPointer<QTextEdit> TextWidget;
99
100 char* Text;
103
104private:
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
extract field data as a table
The superclass for all representations.
a simple class to control print indentation
Definition: vtkIndent.h:113
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).
vtkSmartPointer< vtkDataObjectToTable > DataObjectToTable
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkQtRecordView() override
Superclass for Qt widget-based views.
Definition: vtkQtView.h:34
Hold a reference to a vtkObjectBase instance.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287