VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkQtTableRepresentation Class Reference

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

#include <vtkQtTableRepresentation.h>

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

List of all members.

Public Types

typedef vtkDataRepresentation Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkQtTableRepresentationNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void SetColorTable (vtkLookupTable *t)
virtual vtkLookupTableGetColorTable ()
void SetKeyColumn (const char *col)
char * GetKeyColumn ()
virtual void SetFirstDataColumn (const char *)
virtual char * GetFirstDataColumn ()
virtual void SetLastDataColumn (const char *)
virtual char * GetLastDataColumn ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkQtTableRepresentationSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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 Attributes

vtkQtTableModelAdapterModelAdapter
vtkLookupTableColorTable
vtkDoubleArraySeriesColors
char * KeyColumnInternal
char * FirstDataColumn
char * LastDataColumn

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

Reimplemented from vtkDataRepresentation.

Definition at line 67 of file vtkQtTableRepresentation.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkQtTableRepresentation::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkDataRepresentation.

virtual int vtkQtTableRepresentation::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkDataRepresentation.

Reimplemented from vtkDataRepresentation.

virtual vtkObjectBase* vtkQtTableRepresentation::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkDataRepresentation.

Reimplemented from vtkDataRepresentation.

void vtkQtTableRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkDataRepresentation.

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

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.

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.

Update the table representation

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

Prepare the input connections to this representation.

Reimplemented from vtkDataRepresentation.

virtual void vtkQtTableRepresentation::ResetModel ( ) [protected, virtual]
virtual void vtkQtTableRepresentation::CreateSeriesColors ( ) [protected, virtual]
virtual void vtkQtTableRepresentation::SetModelType ( ) [inline, protected, virtual]

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

Definition at line 106 of file vtkQtTableRepresentation.h.

Definition at line 110 of file vtkQtTableRepresentation.h.

Definition at line 111 of file vtkQtTableRepresentation.h.

Definition at line 112 of file vtkQtTableRepresentation.h.

Definition at line 113 of file vtkQtTableRepresentation.h.

Definition at line 114 of file vtkQtTableRepresentation.h.


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