VTK
|
Wraps a vtkQtChartArea into a VTK view. More...
#include <vtkQtChartView.h>
Public Types | |
typedef vtkQtView | Superclass |
![]() | |
typedef vtkView | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
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) |
vtkQtChartArea * | GetChartArea () |
vtkQtChartAxis * | GetAxis (int index) |
virtual vtkQtChartSeriesModelCollection * | GetChartSeriesModel ()=0 |
virtual vtkQtChartSeriesOptionsModelCollection * | GetChartOptionsModel () |
virtual vtkQtChartSeriesOptions * | GetChartSeriesOptions (int series)=0 |
virtual vtkQtChartSeriesLayer * | GetChartSeriesLayer ()=0 |
vtkQtChartLegend * | GetLegend () |
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 () |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | ProcessQtEvents () |
virtual void | ProcessQtEventsNoUserInput () |
virtual bool | SaveImage (const char *fileName) |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddRepresentation (vtkDataRepresentation *rep) |
void | SetRepresentation (vtkDataRepresentation *rep) |
vtkDataRepresentation * | AddRepresentationFromInputConnection (vtkAlgorithmOutput *conn) |
vtkDataRepresentation * | SetRepresentationFromInputConnection (vtkAlgorithmOutput *conn) |
vtkDataRepresentation * | AddRepresentationFromInput (vtkDataObject *input) |
vtkDataRepresentation * | SetRepresentationFromInput (vtkDataObject *input) |
void | RemoveRepresentation (vtkDataRepresentation *rep) |
void | RemoveRepresentation (vtkAlgorithmOutput *rep) |
void | RemoveAllRepresentations () |
int | GetNumberOfRepresentations () |
vtkDataRepresentation * | GetRepresentation (int index=0) |
bool | IsRepresentationPresent (vtkDataRepresentation *rep) |
virtual void | ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme)) |
vtkCommand * | GetObserver () |
void | RegisterProgress (vtkObject *algorithm, const char *message=NULL) |
void | UnRegisterProgress (vtkObject *algorithm) |
![]() | |
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) |
vtkCommand * | GetCommand (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) |
![]() | |
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 vtkQtChartView * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkQtView * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkView * | New () |
static int | IsTypeOf (const char *type) |
static vtkView * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkQtChartView () | |
~vtkQtChartView () | |
virtual vtkDataRepresentation * | CreateDefaultRepresentation (vtkAlgorithmOutput *conn) |
![]() | |
vtkQtView () | |
~vtkQtView () | |
![]() | |
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 () |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
![]() | |
bool | ReuseSingleRepresentation |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
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.
Definition at line 48 of file vtkQtChartView.h.
typedef vtkQtView vtkQtChartView::Superclass |
Definition at line 53 of file vtkQtChartView.h.
|
protected |
|
protected |
|
virtual |
Reimplemented from vtkQtView.
Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.
|
static |
|
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 |
|
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 vtkObject.
Reimplemented in vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.
|
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 |
Updates the view.
Reimplemented from vtkView.
Reimplemented in vtkQtBarChartView, vtkQtLineChartView, vtkQtStackedChartView, and vtkQtStatisticalBoxChartView.
|
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 |
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.
|
pure virtual |
Gets the chart series model.
Implemented in vtkQtBarChartView, vtkQtStackedChartView, vtkQtStatisticalBoxChartView, and vtkQtLineChartView.
|
virtual |
Gets the series options model.
|
pure virtual |
Gets the series options.
Implemented in vtkQtBarChartView, vtkQtStatisticalBoxChartView, vtkQtLineChartView, and vtkQtStackedChartView.
|
pure virtual |
Implemented in vtkQtBarChartView, vtkQtStatisticalBoxChartView, vtkQtLineChartView, and vtkQtStackedChartView.
vtkQtChartLegend* vtkQtChartView::GetLegend | ( | ) |
Gets the chart legend widget.
|
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
|
protectedvirtual |
Create a vtkQtChartRepresentation for the given input connection.
Reimplemented from vtkView.