VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkQtChartView Class Reference

Wraps a vtkQtChartArea into a VTK view. More...

#include <vtkQtChartView.h>

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

List of all members.

Public Types

typedef vtkQtView Superclass
- Public Types inherited from vtkQtView
- Public Types inherited from vtkView
- Public Types inherited from vtkObject

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual QWidget * GetWidget ()
virtual void Update ()
virtual void Render ()
void Show ()
void AddTableToView (vtkTable *table)
void SetTitle (const char *title)
void SetTitleFont (const char *family, int pointSize, bool bold, bool italic)
void SetTitleColor (double red, double green, double blue)
void SetTitleAlignment (int alignment)
void SetAxisTitle (int index, const char *title)
void SetAxisTitleColor (int index, double red, double green, double blue)
void SetAxisTitleAlignment (int index, int alignment)
void SetLegendVisibility (bool visible)
void SetLegendLocation (int location)
void SetLegendFlow (int flow)
void SetAxisVisibility (int index, bool visible)
void SetAxisColor (int index, double red, double green, double blue)
void SetGridVisibility (int index, bool visible)
void SetGridColorType (int index, int gridColorType)
void SetGridColor (int index, double red, double green, double blue)
void SetAxisLabelVisibility (int index, bool visible)
void SetAxisLabelColor (int index, double red, double green, double blue)
void SetAxisLabelNotation (int index, int notation)
void SetAxisLabelPrecision (int index, int precision)
void SetAxisScale (int index, int scale)
void SetAxisBehavior (int index, int behavior)
void SetAxisRange (int index, double minimum, double maximum)
void SetAxisRange (int index, int minimum, int maximum)
virtual void AddChartSelectionHandlers (vtkQtChartMouseSelection *selector)
vtkQtChartAreaGetChartArea ()
vtkQtChartAxisGetAxis (int index)
virtual
vtkQtChartSeriesModelCollection
GetChartSeriesModel ()=0
virtual
vtkQtChartSeriesOptionsModelCollection
GetChartOptionsModel ()
virtual vtkQtChartSeriesOptionsGetChartSeriesOptions (int series)=0
virtual vtkQtChartSeriesLayerGetChartSeriesLayer ()=0
vtkQtChartLegendGetLegend ()
virtual void SetupDefaultInteractor ()
void SetAxisTitleFont (int index, const char *family, int pointSize, bool bold, bool italic)
void SetAxisLabelFont (int index, const char *family, int pointSize, bool bold, bool italic)
void SetColorSchemeToSpectrum ()
void SetColorSchemeToWarm ()
void SetColorSchemeToCool ()
void SetColorSchemeToBlues ()
void SetColorSchemeToWildFlower ()
void SetColorSchemeToCitrus ()
- Public Member Functions inherited from vtkQtView
virtual void ProcessQtEvents ()
virtual void ProcessQtEventsNoUserInput ()
virtual bool SaveImage (const char *fileName)
- Public Member Functions inherited from vtkView
void AddRepresentation (vtkDataRepresentation *rep)
void SetRepresentation (vtkDataRepresentation *rep)
vtkDataRepresentationAddRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationSetRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationAddRepresentationFromInput (vtkDataObject *input)
vtkDataRepresentationSetRepresentationFromInput (vtkDataObject *input)
void RemoveRepresentation (vtkDataRepresentation *rep)
void RemoveRepresentation (vtkAlgorithmOutput *rep)
void RemoveAllRepresentations ()
int GetNumberOfRepresentations ()
vtkDataRepresentationGetRepresentation (int index=0)
bool IsRepresentationPresent (vtkDataRepresentation *rep)
virtual void ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme))
vtkCommandGetObserver ()
void RegisterProgress (vtkObject *algorithm, const char *message=NULL)
void UnRegisterProgress (vtkObject *algorithm)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
virtual unsigned long GetMTime ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkQtChartViewSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkQtChartView ()
 ~vtkQtChartView ()
virtual vtkDataRepresentationCreateDefaultRepresentation (vtkAlgorithmOutput *conn)
- Protected Member Functions inherited from vtkQtView
 vtkQtView ()
 ~vtkQtView ()
- Protected Member Functions inherited from vtkView
 vtkView ()
 ~vtkView ()
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)
virtual void AddRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
virtual void RemoveRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
virtual void SetReuseSingleRepresentation (bool)
virtual bool GetReuseSingleRepresentation ()
virtual void ReuseSingleRepresentationOn ()
virtual void ReuseSingleRepresentationOff ()
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Detailed Description

Wraps a vtkQtChartArea into a VTK view.

vtkQtChartView is a vtkView which wraps an instance of vtkQtChartArea. This view expects vtkQtChartRepresentation instances as its representation.

See also:
vtkQtChartRepresentation

Definition at line 48 of file vtkQtChartView.h.


Member Typedef Documentation

Reimplemented from vtkQtView.

Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.

Definition at line 53 of file vtkQtChartView.h.


Constructor & Destructor Documentation

vtkQtChartView::vtkQtChartView ( )
protected
vtkQtChartView::~vtkQtChartView ( )
protected

Member Function Documentation

virtual const char* vtkQtChartView::GetClassName ( )
virtual
static int vtkQtChartView::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 vtkQtView.

Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.

virtual int vtkQtChartView::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 vtkQtView.

Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.

static vtkQtChartView* vtkQtChartView::SafeDownCast ( vtkObject o)
static
void vtkQtChartView::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 vtkQtView.

Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.

virtual QWidget* vtkQtChartView::GetWidget ( )
virtual

Get the main container of this view (a QWidget). The application typically places the view with a call to GetWidget(): something like this this->ui->box->layout()->addWidget(this->View->GetWidget());

Implements vtkQtView.

virtual void vtkQtChartView::Update ( )
virtual

Updates the view.

Reimplemented from vtkView.

Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.

virtual void vtkQtChartView::Render ( )
virtual

Updates representations and then repaints the chart widget.

void vtkQtChartView::Show ( )

Calls show() on the chart widget.

void vtkQtChartView::AddTableToView ( vtkTable table)

A convenience method to add a table to the chart view. This is here for now to work around a python wrapping bug.

void vtkQtChartView::SetTitle ( const char *  title)

Set the chart's title.

void vtkQtChartView::SetTitleFont ( const char *  family,
int  pointSize,
bool  bold,
bool  italic 
)

Set the chart title's font.

void vtkQtChartView::SetTitleColor ( double  red,
double  green,
double  blue 
)

Set the chart title's color.

void vtkQtChartView::SetTitleAlignment ( int  alignment)

Set the chart title's alignment.

void vtkQtChartView::SetAxisTitle ( int  index,
const char *  title 
)

Set the chart axis title for the given index.

void vtkQtChartView::SetAxisTitleFont ( int  index,
const char *  family,
int  pointSize,
bool  bold,
bool  italic 
)

Set the chart axis title's font for the given index.

void vtkQtChartView::SetAxisTitleColor ( int  index,
double  red,
double  green,
double  blue 
)

Set the chart axis title's color for the given index.

void vtkQtChartView::SetAxisTitleAlignment ( int  index,
int  alignment 
)

Set the chart axis title's alignment for the given index.

void vtkQtChartView::SetLegendVisibility ( bool  visible)

Sets whether or not the chart legend is visible.

void vtkQtChartView::SetLegendLocation ( int  location)

Sets the legend location.

void vtkQtChartView::SetLegendFlow ( int  flow)

Sets the legend flow.

void vtkQtChartView::SetAxisVisibility ( int  index,
bool  visible 
)

Sets whether or not the given axis is visible.

void vtkQtChartView::SetAxisColor ( int  index,
double  red,
double  green,
double  blue 
)

Sets the color for the given axis.

void vtkQtChartView::SetGridVisibility ( int  index,
bool  visible 
)

Sets whether or not the grid for the given axis is visible.

void vtkQtChartView::SetGridColorType ( int  index,
int  gridColorType 
)

Sets the grid color type for the given axis.

void vtkQtChartView::SetGridColor ( int  index,
double  red,
double  green,
double  blue 
)

Sets the grid color for the given axis.

void vtkQtChartView::SetAxisLabelVisibility ( int  index,
bool  visible 
)

Sets whether or not the labels for the given axis are visible.

void vtkQtChartView::SetAxisLabelFont ( int  index,
const char *  family,
int  pointSize,
bool  bold,
bool  italic 
)

Set the axis label font for the given axis.

void vtkQtChartView::SetAxisLabelColor ( int  index,
double  red,
double  green,
double  blue 
)

Sets the axis label color for the given axis.

void vtkQtChartView::SetAxisLabelNotation ( int  index,
int  notation 
)

Sets the axis label notation for the given axis.

void vtkQtChartView::SetAxisLabelPrecision ( int  index,
int  precision 
)

Sets the axis label precision for the given axis.

void vtkQtChartView::SetAxisScale ( int  index,
int  scale 
)

Sets the scale for the given axis (Linear or Logarithmic).

void vtkQtChartView::SetAxisBehavior ( int  index,
int  behavior 
)

Sets the behavior for the given axis.

void vtkQtChartView::SetAxisRange ( int  index,
double  minimum,
double  maximum 
)

Sets the best fir range for the given axis.

void vtkQtChartView::SetAxisRange ( int  index,
int  minimum,
int  maximum 
)

Sets the best fir range for the given axis.

virtual void vtkQtChartView::AddChartSelectionHandlers ( vtkQtChartMouseSelection selector)
virtual

Adds chart layer selection handlers to the mouse selection.

Reimplemented in vtkQtBarChartView, vtkQtStatisticalBoxChartView, vtkQtLineChartView, and vtkQtStackedChartView.

vtkQtChartArea* vtkQtChartView::GetChartArea ( )

Gets the chart area from the chart widget. This method is equivalent to GetChartWidget()->getChartArea().

vtkQtChartAxis* vtkQtChartView::GetAxis ( int  index)

Gets the chart axis for the given index.

virtual vtkQtChartSeriesModelCollection* vtkQtChartView::GetChartSeriesModel ( )
pure virtual

Gets the chart series model.

Implemented in vtkQtBarChartView, vtkQtStackedChartView, vtkQtStatisticalBoxChartView, and vtkQtLineChartView.

virtual vtkQtChartSeriesOptionsModelCollection* vtkQtChartView::GetChartOptionsModel ( )
virtual

Gets the series options model.

virtual vtkQtChartSeriesOptions* vtkQtChartView::GetChartSeriesOptions ( int  series)
pure virtual
virtual vtkQtChartSeriesLayer* vtkQtChartView::GetChartSeriesLayer ( )
pure virtual
vtkQtChartLegend* vtkQtChartView::GetLegend ( )

Gets the chart legend widget.

virtual void vtkQtChartView::SetupDefaultInteractor ( )
virtual

Sets up the default interactor.

void vtkQtChartView::SetColorSchemeToSpectrum ( )

Set color scheme methods

void vtkQtChartView::SetColorSchemeToWarm ( )

Set color scheme methods

void vtkQtChartView::SetColorSchemeToCool ( )

Set color scheme methods

void vtkQtChartView::SetColorSchemeToBlues ( )

Set color scheme methods

void vtkQtChartView::SetColorSchemeToWildFlower ( )

Set color scheme methods

void vtkQtChartView::SetColorSchemeToCitrus ( )

Set color scheme methods

virtual vtkDataRepresentation* vtkQtChartView::CreateDefaultRepresentation ( vtkAlgorithmOutput conn)
protectedvirtual

Create a vtkQtChartRepresentation for the given input connection.

Reimplemented from vtkView.


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