00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00077 #ifndef __vtkParallelCoordinatesActor_h
00078 #define __vtkParallelCoordinatesActor_h
00079
00080 #include "vtkAxisActor2D.h"
00081 #include "vtkDataObject.h"
00082
00083 #define VTK_IV_COLUMN 0
00084 #define VTK_IV_ROW 1
00085
00086 class VTK_RENDERING_EXPORT vtkParallelCoordinatesActor : public vtkActor2D
00087 {
00088 public:
00089 vtkTypeMacro(vtkParallelCoordinatesActor,vtkActor2D);
00090 void PrintSelf(ostream& os, vtkIndent indent);
00091
00096 static vtkParallelCoordinatesActor *New();
00097
00099
00102 vtkSetClampMacro(IndependentVariables,int,VTK_IV_COLUMN, VTK_IV_ROW);
00103 vtkGetMacro(IndependentVariables,int);
00104 void SetIndependentVariablesToColumns()
00105 {this->SetIndependentVariables(VTK_IV_COLUMN);};
00106 void SetIndependentVariablesToRows()
00107 {this->SetIndependentVariables(VTK_IV_ROW);};
00109
00111
00112 vtkSetStringMacro(Title);
00113 vtkGetStringMacro(Title);
00115
00117
00120 vtkSetClampMacro(NumberOfLabels, int, 0, 50);
00121 vtkGetMacro(NumberOfLabels, int);
00123
00125
00126 vtkSetMacro(Bold, int);
00127 vtkGetMacro(Bold, int);
00128 vtkBooleanMacro(Bold, int);
00130
00132
00133 vtkSetMacro(Italic, int);
00134 vtkGetMacro(Italic, int);
00135 vtkBooleanMacro(Italic, int);
00137
00139
00141 vtkSetMacro(Shadow, int);
00142 vtkGetMacro(Shadow, int);
00143 vtkBooleanMacro(Shadow, int);
00145
00147
00150 vtkSetMacro(FontFamily, int);
00151 vtkGetMacro(FontFamily, int);
00152 void SetFontFamilyToArial() {this->SetFontFamily(VTK_ARIAL);};
00153 void SetFontFamilyToCourier() {this->SetFontFamily(VTK_COURIER);};
00154 void SetFontFamilyToTimes() {this->SetFontFamily(VTK_TIMES);};
00156
00158
00159 vtkSetStringMacro(LabelFormat);
00160 vtkGetStringMacro(LabelFormat);
00162
00164
00165 int RenderOpaqueGeometry(vtkViewport*);
00166 int RenderOverlay(vtkViewport*);
00167 int RenderTranslucentGeometry(vtkViewport *) {return 0;}
00169
00171
00172 vtkSetObjectMacro(Input,vtkDataObject);
00174
00176
00177 vtkGetObjectMacro(Input,vtkDataObject);
00179
00183 void ReleaseGraphicsResources(vtkWindow *);
00184
00185 protected:
00186 vtkParallelCoordinatesActor();
00187 ~vtkParallelCoordinatesActor();
00188
00189 private:
00190 vtkDataObject *Input;
00191
00192 int IndependentVariables;
00193 vtkIdType N;
00194 vtkAxisActor2D **Axes;
00195 float *Mins;
00196 float *Maxs;
00197 int *Xs;
00198 int YMin;
00199 int YMax;
00200
00201 char *Title;
00202 vtkTextMapper *TitleMapper;
00203 vtkActor2D *TitleActor;
00204
00205 vtkPolyData *PlotData;
00206 vtkPolyDataMapper2D *PlotMapper;
00207 vtkActor2D *PlotActor;
00208
00209
00210 int NumberOfLabels;
00211 int Bold;
00212 int Italic;
00213 int Shadow;
00214 int FontFamily;
00215 char *LabelFormat;
00216
00217 vtkTimeStamp BuildTime;
00218
00219 void Initialize();
00220 int PlaceAxes(vtkViewport *viewport, int *size);
00221 private:
00222 vtkParallelCoordinatesActor(const vtkParallelCoordinatesActor&);
00223 void operator=(const vtkParallelCoordinatesActor&);
00224 };
00225
00226
00227 #endif
00228