VTK
vtkPlotStacked.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotPoints.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
27 #ifndef vtkPlotStacked_h
28 #define vtkPlotStacked_h
29 
30 #include "vtkChartsCoreModule.h" // For export macro
31 #include "vtkPlot.h"
32 
33 class vtkChartXY;
34 class vtkContext2D;
35 class vtkTable;
36 class vtkPoints2D;
37 class vtkStdString;
38 class vtkImageData;
39 class vtkColorSeries;
40 
41 class vtkPlotStackedPrivate;
42 
44 {
45 public:
47  virtual void PrintSelf(ostream &os, vtkIndent indent);
48 
50  static vtkPlotStacked *New();
51 
53 
54  virtual void SetColor(unsigned char r, unsigned char g, unsigned char b,
55  unsigned char a);
56  virtual void SetColor(double r, double g, double b);
57  virtual void GetColor(double rgb[3]);
59 
63  virtual void Update();
64 
67  virtual bool Paint(vtkContext2D *painter);
68 
70 
75  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
76  int legendIndex);
78 
80  virtual void GetBounds(double bounds[4]);
81 
84  virtual void GetUnscaledInputBounds(double bounds[4]);
85 
87  virtual void SetInputArray(int index, const vtkStdString &name);
88 
90  void SetColorSeries(vtkColorSeries *colorSeries);
91 
94 
97 
98 //BTX
100 
104  const vtkVector2f& tolerance,
107 
109  virtual bool SelectPoints(const vtkVector2f& min, const vtkVector2f& max);
110 
111 //BTX
112 protected:
115 
118 
119  // Descript:
120  // For stacked plots the Extent data must be greater than (or equal to) the
121  // base data. Insure that this is true
122  void FixExtent();
123 
128 
132 
137 
140 
141  bool LogX, LogY;
142 
145 
146 private:
147  vtkPlotStacked(const vtkPlotStacked &); // Not implemented.
148  void operator=(const vtkPlotStacked &); // Not implemented.
149 
150  vtkPlotStackedPrivate *Private;
151 
152 //ETX
153 };
154 
155 #endif //vtkPlotStacked_h
vtkPoints2D
represent and manipulate 2D points
Definition: vtkPoints2D.h:36
vtkPlotStacked::PaintLegend
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
vtkChartsCoreModule.h
vtkPlotStacked
Class for drawing an stacked polygon plot given an X, Ybase, Yextent in a vtkTable.
Definition: vtkPlotStacked.h:44
vtkPlotStacked::UpdateTableCache
bool UpdateTableCache(vtkTable *table)
vtkPlotStacked::SetColorSeries
void SetColorSeries(vtkColorSeries *colorSeries)
vtkPlotStacked::GetUnscaledInputBounds
virtual void GetUnscaledInputBounds(double bounds[4])
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkPlotStacked::LogY
bool LogY
Definition: vtkPlotStacked.h:141
vtkPlotStacked::CalculateLogSeries
void CalculateLogSeries()
vtkPlotStacked::GetBounds
virtual void GetBounds(double bounds[4])
vtkPlotStacked::New
static vtkPlotStacked * New()
vtkPlot.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkPlotStacked::GetLabels
virtual vtkStringArray * GetLabels()
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkColorSeries
stores a list of colors.
Definition: vtkColorSeries.h:54
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPlotStacked::ColorSeries
vtkSmartPointer< vtkColorSeries > ColorSeries
Definition: vtkPlotStacked.h:144
vtkSmartPointer< vtkColorSeries >
vtkgl::table
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: vtkgl.h:11332
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:57
vtkPlot
Abstract class for 2D plots.
Definition: vtkPlot.h:52
vtkPlotStacked::vtkPlotStacked
vtkPlotStacked()
vtkPlotStacked::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlotStacked::GetColorSeries
vtkColorSeries * GetColorSeries()
vtkPlotStacked::SelectPoints
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
max
#define max(a, b)
Definition: vtkX3DExporterFIWriterHelper.h:30
vtkPlotStacked::FixExtent
void FixExtent()
vtkPlotStacked::SetColor
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
vtkPlotStacked::~vtkPlotStacked
~vtkPlotStacked()
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkPlotStacked::SetInputArray
virtual void SetInputArray(int index, const vtkStdString &name)
vtkPlotStacked::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPlotStacked::ExtentBadPoints
vtkIdTypeArray * ExtentBadPoints
Definition: vtkPlotStacked.h:136
vtkPlotStacked::Update
virtual void Update()
vtkPlotStacked::GetColor
virtual void GetColor(double rgb[3])
vtkgl::a
GLboolean GLboolean GLboolean GLboolean a
Definition: vtkgl.h:12312
vtkPlotStacked::BuildTime
vtkTimeStamp BuildTime
Definition: vtkPlotStacked.h:139
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkgl::location
GLint location
Definition: vtkgl.h:12002
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:45
vtkPlotStacked::BaseBadPoints
vtkIdTypeArray * BaseBadPoints
Definition: vtkPlotStacked.h:131
vtkChartXY
Factory class for drawing XY charts.
Definition: vtkChartXY.h:49
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkPlotStacked::SetColor
virtual void SetColor(double r, double g, double b)
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition: vtkChartsCoreModule.h:15
vtkRectf
Definition: vtkRect.h:97
vtkVector2f
Definition: vtkVector.h:277
vtkPlotStacked::Paint
virtual bool Paint(vtkContext2D *painter)