VTK
|
Legend item to display categorical data. More...
#include <vtkCategoryLegend.h>
Legend item to display categorical data.
vtkCategoryLegend will display a label and color patch for each value in a categorical data set. To use this class, you must first populate a vtkScalarsToColors by using the SetAnnotation() method. The other input to this class is a vtkVariantArray. This should contain the annotated values from the vtkScalarsToColors that you wish to include within the legend.
Definition at line 43 of file vtkCategoryLegend.h.
Reimplemented from vtkChartLegend.
Definition at line 46 of file vtkCategoryLegend.h.
anonymous enum |
Enum of legend orientation types
Definition at line 51 of file vtkCategoryLegend.h.
vtkCategoryLegend::vtkCategoryLegend | ( | ) | [protected] |
virtual vtkCategoryLegend::~vtkCategoryLegend | ( | ) | [protected, virtual] |
static int vtkCategoryLegend::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 vtkChartLegend.
virtual int vtkCategoryLegend::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 vtkChartLegend.
static vtkCategoryLegend* vtkCategoryLegend::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkChartLegend.
virtual vtkObjectBase* vtkCategoryLegend::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkChartLegend.
vtkCategoryLegend* vtkCategoryLegend::NewInstance | ( | ) | const |
Reimplemented from vtkChartLegend.
static vtkCategoryLegend* vtkCategoryLegend::New | ( | ) | [static] |
Creates a 2D Chart object.
Reimplemented from vtkChartLegend.
virtual bool vtkCategoryLegend::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint the legend into a rectangle defined by the bounds.
Reimplemented from vtkChartLegend.
virtual vtkRectf vtkCategoryLegend::GetBoundingRect | ( | vtkContext2D * | painter | ) | [virtual] |
Compute and return the lower left corner of this legend, along with its width and height.
Reimplemented from vtkChartLegend.
virtual void vtkCategoryLegend::SetScalarsToColors | ( | vtkScalarsToColors * | stc | ) | [virtual] |
Get/Set the vtkScalarsToColors used to draw this legend. Since this legend represents categorical data, this vtkScalarsToColors must have been populated using SetAnnotation().
virtual vtkScalarsToColors* vtkCategoryLegend::GetScalarsToColors | ( | ) | [virtual] |
Get/Set the vtkScalarsToColors used to draw this legend. Since this legend represents categorical data, this vtkScalarsToColors must have been populated using SetAnnotation().
virtual vtkVariantArray* vtkCategoryLegend::GetValues | ( | ) | [virtual] |
Get/Set the array of values that will be represented by this legend. This array must contain distinct annotated values from the ScalarsToColors. Each value in this array will be drawn as a separate entry within this legend.
virtual void vtkCategoryLegend::SetValues | ( | vtkVariantArray * | ) | [virtual] |
Get/Set the array of values that will be represented by this legend. This array must contain distinct annotated values from the ScalarsToColors. Each value in this array will be drawn as a separate entry within this legend.
virtual void vtkCategoryLegend::SetTitle | ( | const vtkStdString & | title | ) | [virtual] |
Get/set the title text of the legend.
virtual vtkStdString vtkCategoryLegend::GetTitle | ( | ) | [virtual] |
Get/set the title text of the legend.
virtual vtkStdString vtkCategoryLegend::GetOutlierLabel | ( | ) | [virtual] |
Get/set the label to use for outlier data.
virtual void vtkCategoryLegend::SetOutlierLabel | ( | vtkStdString | ) | [virtual] |
Get/set the label to use for outlier data.
bool vtkCategoryLegend::HasOutliers [protected] |
Definition at line 97 of file vtkCategoryLegend.h.
float vtkCategoryLegend::TitleWidthOffset [protected] |
Definition at line 98 of file vtkCategoryLegend.h.
vtkScalarsToColors* vtkCategoryLegend::ScalarsToColors [protected] |
Definition at line 99 of file vtkCategoryLegend.h.
vtkStdString vtkCategoryLegend::OutlierLabel [protected] |
Definition at line 100 of file vtkCategoryLegend.h.
vtkStdString vtkCategoryLegend::Title [protected] |
Definition at line 101 of file vtkCategoryLegend.h.
vtkNew<vtkTextProperty> vtkCategoryLegend::TitleProperties [protected] |
Definition at line 102 of file vtkCategoryLegend.h.
vtkVariantArray* vtkCategoryLegend::Values [protected] |
Definition at line 103 of file vtkCategoryLegend.h.