VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkQtTableRepresentation Class Reference

set up a vtkTable in a Qt model More...

#include <vtkQtTableRepresentation.h>

Inheritance diagram for vtkQtTableRepresentation:
[legend]
Collaboration diagram for vtkQtTableRepresentation:
[legend]

Public Types

typedef vtkDataRepresentation Superclass
 
- Public Types inherited from vtkDataRepresentation
typedef vtkPassInputTypeAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkQtTableRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetColorTable (vtkLookupTable *t)
 
virtual vtkLookupTable * GetColorTable ()
 
void SetKeyColumn (const char *col)
 
char * GetKeyColumn ()
 
virtual void SetFirstDataColumn (const char *)
 
virtual char * GetFirstDataColumn ()
 
virtual void SetLastDataColumn (const char *)
 
virtual char * GetLastDataColumn ()
 
- Public Member Functions inherited from vtkDataRepresentation
vtkDataRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme))
 
virtual vtkSelection * ConvertSelection (vtkView *view, vtkSelection *selection)
 
vtkAlgorithmOutput * GetInputConnection (int port=0, int index=0)
 
vtkAnnotationLinkGetAnnotationLink ()
 
void SetAnnotationLink (vtkAnnotationLink *link)
 
void Select (vtkView *view, vtkSelection *selection)
 
void Select (vtkView *view, vtkSelection *selection, bool extend)
 
void Annotate (vtkView *view, vtkAnnotationLayers *annotations)
 
void Annotate (vtkView *view, vtkAnnotationLayers *annotations, bool extend)
 
virtual void SetSelectable (bool)
 
virtual bool GetSelectable ()
 
virtual void SelectableOn ()
 
virtual void SelectableOff ()
 
void UpdateSelection (vtkSelection *selection)
 
void UpdateSelection (vtkSelection *selection, bool extend)
 
void UpdateAnnotations (vtkAnnotationLayers *annotations)
 
void UpdateAnnotations (vtkAnnotationLayers *annotations, bool extend)
 
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort ()
 
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort (int port)
 
virtual vtkAlgorithmOutput * GetInternalAnnotationOutputPort (int port, int conn)
 
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort ()
 
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort (int port)
 
virtual vtkAlgorithmOutput * GetInternalSelectionOutputPort (int port, int conn)
 
virtual vtkAlgorithmOutput * GetInternalOutputPort ()
 
virtual vtkAlgorithmOutput * GetInternalOutputPort (int port)
 
virtual vtkAlgorithmOutput * GetInternalOutputPort (int port, int conn)
 
virtual void SetSelectionType (int)
 
virtual int GetSelectionType ()
 
virtual void SetSelectionArrayNames (vtkStringArray *names)
 
virtual vtkStringArray * GetSelectionArrayNames ()
 
virtual void SetSelectionArrayName (const char *name)
 
virtual const char * GetSelectionArrayName ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkQtTableRepresentationSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkDataRepresentation
static vtkDataRepresentationNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDataRepresentationSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkQtTableRepresentation ()
 
 ~vtkQtTableRepresentation ()
 
void UpdateTable ()
 
virtual void SetKeyColumnInternal (const char *)
 
virtual char * GetKeyColumnInternal ()
 
virtual void ResetModel ()
 
virtual void CreateSeriesColors ()
 
virtual void SetModelType ()
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Protected Member Functions inherited from vtkDataRepresentation
 vtkDataRepresentation ()
 
 ~vtkDataRepresentation ()
 
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)
 
virtual bool AddToView (vtkView *vtkNotUsed(view))
 
virtual bool RemoveFromView (vtkView *vtkNotUsed(view))
 
virtual vtkAnnotationLayers * ConvertAnnotations (vtkView *view, vtkAnnotationLayers *annotations)
 
vtkTrivialProducer * GetInternalInput (int port, int conn)
 
void SetInternalInput (int port, int conn, vtkTrivialProducer *producer)
 
virtual void SetAnnotationLinkInternal (vtkAnnotationLink *link)
 

Protected Attributes

vtkQtTableModelAdapter * ModelAdapter
 
vtkLookupTable * ColorTable
 
vtkDoubleArray * SeriesColors
 
char * KeyColumnInternal
 
char * FirstDataColumn
 
char * LastDataColumn
 
- Protected Attributes inherited from vtkDataRepresentation
bool Selectable
 
int SelectionType
 
vtkStringArray * SelectionArrayNames
 
CommandObserver
 
vtkAnnotationLinkAnnotationLinkInternal
 

Detailed Description

set up a vtkTable in a Qt model

This class is a wrapper around vtkQtTableModelAdapter. It performs the following functions:

The user must supply the following items:

Warning
Call SetInputConnection with a table connection BEFORE the representation is added to a view or strange things may happen, including segfaults.

Definition at line 64 of file vtkQtTableRepresentation.h.

Member Typedef Documentation

Definition at line 67 of file vtkQtTableRepresentation.h.

Constructor & Destructor Documentation

vtkQtTableRepresentation::vtkQtTableRepresentation ( )
protected
vtkQtTableRepresentation::~vtkQtTableRepresentation ( )
protected

Member Function Documentation

static int vtkQtTableRepresentation::IsTypeOf ( const char *  type)
static
virtual int vtkQtTableRepresentation::IsA ( const char *  type)
virtual

Reimplemented from vtkDataRepresentation.

static vtkQtTableRepresentation* vtkQtTableRepresentation::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkQtTableRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkDataRepresentation.

vtkQtTableRepresentation* vtkQtTableRepresentation::NewInstance ( ) const
void vtkQtTableRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void vtkQtTableRepresentation::SetColorTable ( vtkLookupTable *  t)

Set/get the lookup table that will be used to determine colors for each series. The table's range should be [0, 1).

virtual vtkLookupTable* vtkQtTableRepresentation::GetColorTable ( )
virtual

Set/get the lookup table that will be used to determine colors for each series. The table's range should be [0, 1).

void vtkQtTableRepresentation::SetKeyColumn ( const char *  col)

Set/get the name of the column that contains series names. This must be called BEFORE the representation is added to a view.

char* vtkQtTableRepresentation::GetKeyColumn ( )

Set/get the name of the column that contains series names. This must be called BEFORE the representation is added to a view.

virtual void vtkQtTableRepresentation::SetFirstDataColumn ( const char *  )
virtual

Set/get the name of the first data column. This must be called BEFORE the representation is added to a view.

virtual char* vtkQtTableRepresentation::GetFirstDataColumn ( )
virtual

Set/get the name of the first data column. This must be called BEFORE the representation is added to a view.

virtual void vtkQtTableRepresentation::SetLastDataColumn ( const char *  )
virtual

Set/get the name of the last data column. This must be called BEFORE the representation is added to a view.

virtual char* vtkQtTableRepresentation::GetLastDataColumn ( )
virtual

Set/get the name of the last data column. This must be called BEFORE the representation is added to a view.

void vtkQtTableRepresentation::UpdateTable ( )
protected

Update the table representation

virtual void vtkQtTableRepresentation::SetKeyColumnInternal ( const char *  )
protectedvirtual
virtual char* vtkQtTableRepresentation::GetKeyColumnInternal ( )
protectedvirtual
virtual int vtkQtTableRepresentation::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

Prepare the input connections to this representation.

Reimplemented from vtkDataRepresentation.

virtual void vtkQtTableRepresentation::ResetModel ( )
protectedvirtual
virtual void vtkQtTableRepresentation::CreateSeriesColors ( )
protectedvirtual
virtual void vtkQtTableRepresentation::SetModelType ( )
inlineprotectedvirtual

This should set the model type to DATA, METADATA or FULL depending on what you want.

Definition at line 128 of file vtkQtTableRepresentation.h.

Member Data Documentation

vtkQtTableModelAdapter* vtkQtTableRepresentation::ModelAdapter
protected

Definition at line 106 of file vtkQtTableRepresentation.h.

vtkLookupTable* vtkQtTableRepresentation::ColorTable
protected

Definition at line 110 of file vtkQtTableRepresentation.h.

vtkDoubleArray* vtkQtTableRepresentation::SeriesColors
protected

Definition at line 111 of file vtkQtTableRepresentation.h.

char* vtkQtTableRepresentation::KeyColumnInternal
protected

Definition at line 112 of file vtkQtTableRepresentation.h.

char* vtkQtTableRepresentation::FirstDataColumn
protected

Definition at line 113 of file vtkQtTableRepresentation.h.

char* vtkQtTableRepresentation::LastDataColumn
protected

Definition at line 114 of file vtkQtTableRepresentation.h.


The documentation for this class was generated from the following file: