VTK
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 "vtkViewsQtModule.h" // For export macro
38#include "vtkQtView.h"
39#include "vtkSmartPointer.h" // Needed for data table member
40#include <QPointer> // Needed for the text widget member
41
42class QTextEdit;
44
45class VTKVIEWSQT_EXPORT vtkQtRecordView : public vtkQtView
46{
47Q_OBJECT
48
49public:
51 vtkTypeMacro(vtkQtRecordView, vtkQtView);
52 void PrintSelf(ostream& os, vtkIndent indent);
53
60 virtual QWidget* GetWidget();
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);
83
87 virtual void Update();
88
89protected:
90
93
96
98
99 QPointer<QTextEdit> TextWidget;
100
101 char* Text;
104
105
106private:
107 vtkQtRecordView(const vtkQtRecordView&) VTK_DELETE_FUNCTION;
108 void operator=(const vtkQtRecordView&) VTK_DELETE_FUNCTION;
109
110 vtkMTimeType CurrentSelectionMTime;
111 vtkMTimeType LastInputMTime;
112 vtkMTimeType LastMTime;
113};
114
115#endif
extract field data as a table
The superclass for all representations.
a simple class to control print indentation
Definition: vtkIndent.h:40
Superclass for QAbstractItemView-based views.
virtual void AddRepresentationInternal(vtkDataRepresentation *rep)
void SetFieldType(int)
QPointer< QTextEdit > TextWidget
static vtkQtRecordView * New()
vtkSmartPointer< vtkDataObjectToTable > DataObjectToTable
virtual void RemoveRepresentationInternal(vtkDataRepresentation *rep)
virtual void Update()
Updates the view.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual QWidget * GetWidget()
Get the main container of this view (a QWidget).
Superclass for Qt widget-based views.
Definition: vtkQtView.h:32
@ Text
Definition: vtkX3D.h:160
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248