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 -------------------------------------------------------------------------*/
33 #ifndef vtkQtRecordView_h
34 #define vtkQtRecordView_h
35 
36 #include "vtkViewsQtModule.h" // For export macro
37 #include "QVTKWin32Header.h"
38 #include "vtkQtView.h"
39 #include "vtkSmartPointer.h"
40 #include <QPointer>
41 
42 class QTextEdit;
44 
46 {
47 Q_OBJECT
48 
49 public:
50  static vtkQtRecordView *New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
57  virtual QWidget* GetWidget();
58 
59  enum
60  {
61  FIELD_DATA = 0,
62  POINT_DATA = 1,
63  CELL_DATA = 2,
64  VERTEX_DATA = 3,
65  EDGE_DATA = 4,
66  ROW_DATA = 5,
67  };
68 
70 
72  vtkGetMacro(FieldType, int);
73  void SetFieldType(int);
75 
76  vtkGetMacro(CurrentRow, int);
78 
80  virtual void Update();
81 
82 protected:
83 
86 
89 
91 
92  QPointer<QTextEdit> TextWidget;
93 
94  char* Text;
95  int FieldType;
97 
98 
99 private:
100  vtkQtRecordView(const vtkQtRecordView&); // Not implemented.
101  void operator=(const vtkQtRecordView&); // Not implemented.
102 
103  unsigned long CurrentSelectionMTime;
104  unsigned long LastInputMTime;
105  unsigned long LastMTime;
106 };
107 
108 #endif
vtkX3D::Text
@ Text
Definition: vtkX3D.h:160
vtkQtRecordView
Superclass for QAbstractItemView-based views.
Definition: vtkQtRecordView.h:46
vtkQtRecordView::vtkQtRecordView
vtkQtRecordView()
vtkQtRecordView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSmartPointer< vtkDataObjectToTable >
vtkQtRecordView::GetWidget
virtual QWidget * GetWidget()
vtkQtRecordView::Text
char * Text
Definition: vtkQtRecordView.h:94
vtkViewsQtModule.h
vtkDataRepresentation
The superclass for all representations.
Definition: vtkDataRepresentation.h:72
VTKVIEWSQT_EXPORT
#define VTKVIEWSQT_EXPORT
Definition: vtkViewsQtModule.h:15
vtkQtRecordView::DataObjectToTable
vtkSmartPointer< vtkDataObjectToTable > DataObjectToTable
Definition: vtkQtRecordView.h:90
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkQtRecordView::TextWidget
QPointer< QTextEdit > TextWidget
Definition: vtkQtRecordView.h:92
vtkQtRecordView::~vtkQtRecordView
~vtkQtRecordView()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkQtRecordView::SetFieldType
void SetFieldType(int)
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkQtRecordView::New
static vtkQtRecordView * New()
vtkQtView.h
vtkQtView
Superclass for Qt widget-based views.
Definition: vtkQtView.h:32
vtkQtRecordView::CurrentRow
int CurrentRow
Definition: vtkQtRecordView.h:96
vtkQtRecordView::Update
virtual void Update()
vtkDataObjectToTable
extract field data as a table
Definition: vtkDataObjectToTable.h:41
vtkQtRecordView::AddRepresentationInternal
virtual void AddRepresentationInternal(vtkDataRepresentation *rep)
vtkQtRecordView::RemoveRepresentationInternal
virtual void RemoveRepresentationInternal(vtkDataRepresentation *rep)
vtkQtRecordView::FieldType
int FieldType
Definition: vtkQtRecordView.h:95