Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

imaging/vtkParallelCoordinatesActor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkParallelCoordinatesActor.h,v $
00005   Language:  C++
00006 
00007 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00008 All rights reserved.
00009 
00010 Redistribution and use in source and binary forms, with or without
00011 modification, are permitted provided that the following conditions are met:
00012 
00013  * Redistributions of source code must retain the above copyright notice,
00014    this list of conditions and the following disclaimer.
00015 
00016  * Redistributions in binary form must reproduce the above copyright notice,
00017    this list of conditions and the following disclaimer in the documentation
00018    and/or other materials provided with the distribution.
00019 
00020  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00021    of any contributors may be used to endorse or promote products derived
00022    from this software without specific prior written permission.
00023 
00024  * Modified source versions must be plainly marked as such, and must not be
00025    misrepresented as being the original software.
00026 
00027 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00028 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00029 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00030 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORSS OR CONTRIBUTORS BE LIABLE FOR
00031 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00032 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00033 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00034 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00035 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00036 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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_EXPORT vtkParallelCoordinatesActor : public vtkActor2D
00087 {
00088 public:
00089   vtkTypeMacro(vtkParallelCoordinatesActor,vtkActor2D);
00090   void PrintSelf(ostream& os, vtkIndent indent);
00091 
00096   static vtkParallelCoordinatesActor *New();
00097 
00101   vtkSetClampMacro(IndependentVariables,int,VTK_IV_COLUMN, VTK_IV_ROW);
00102   vtkGetMacro(IndependentVariables,int);
00103   void SetIndependentVariablesToColumns()
00104     {this->SetIndependentVariables(VTK_IV_COLUMN);};
00105   void SetIndependentVariablesToRows()
00106     {this->SetIndependentVariables(VTK_IV_ROW);};
00107 
00109   vtkSetStringMacro(Title);
00110   vtkGetStringMacro(Title);
00111 
00115   vtkSetClampMacro(NumberOfLabels, int, 0, 50);
00116   vtkGetMacro(NumberOfLabels, int);
00117   
00119   vtkSetMacro(Bold, int);
00120   vtkGetMacro(Bold, int);
00121   vtkBooleanMacro(Bold, int);
00122 
00124   vtkSetMacro(Italic, int);
00125   vtkGetMacro(Italic, int);
00126   vtkBooleanMacro(Italic, int);
00127 
00130   vtkSetMacro(Shadow, int);
00131   vtkGetMacro(Shadow, int);
00132   vtkBooleanMacro(Shadow, int);
00133 
00137   vtkSetMacro(FontFamily, int);
00138   vtkGetMacro(FontFamily, int);
00139   void SetFontFamilyToArial() {this->SetFontFamily(VTK_ARIAL);};
00140   void SetFontFamilyToCourier() {this->SetFontFamily(VTK_COURIER);};
00141   void SetFontFamilyToTimes() {this->SetFontFamily(VTK_TIMES);};
00142 
00144   vtkSetStringMacro(LabelFormat);
00145   vtkGetStringMacro(LabelFormat);
00146 
00148   int RenderOpaqueGeometry(vtkViewport*);
00149   int RenderOverlay(vtkViewport*);
00150   int RenderTranslucentGeometry(vtkViewport *) {return 0;}
00151 
00153   vtkSetObjectMacro(Input,vtkDataObject);
00154 
00156   vtkGetObjectMacro(Input,vtkDataObject);
00157 
00161   void ReleaseGraphicsResources(vtkWindow *);
00162 
00163 protected:
00164   vtkParallelCoordinatesActor();
00165   ~vtkParallelCoordinatesActor();
00166   vtkParallelCoordinatesActor(const vtkParallelCoordinatesActor&) {};
00167   void operator=(const vtkParallelCoordinatesActor&) {};
00168 
00169 private:
00170   vtkDataObject *Input; //list of data sets to plot
00171 
00172   int IndependentVariables; //use column or row
00173   int N; //the number of independent variables
00174   vtkAxisActor2D **Axes; //an array of axes
00175   float *Mins; //minimum data value along this row/column
00176   float *Maxs; //maximum data value along this row/column
00177   int   *Xs; //axes x-values (in viewport coordinates)
00178   int   YMin; //axes y-min-value (in viewport coordinates)
00179   int   YMax; //axes y-max-value (in viewport coordinates)
00180 
00181   char *Title;
00182   vtkTextMapper *TitleMapper;
00183   vtkActor2D    *TitleActor;
00184 
00185   vtkPolyData         *PlotData; //the lines drawn within the axes
00186   vtkPolyDataMapper2D *PlotMapper;
00187   vtkActor2D          *PlotActor;
00188   
00189   // font characteristics
00190   int   NumberOfLabels; //along each axis
00191   int Bold;
00192   int   Italic;
00193   int   Shadow;
00194   int   FontFamily;
00195   char  *LabelFormat;
00196 
00197   vtkTimeStamp  BuildTime;
00198 
00199   void Initialize();
00200   int PlaceAxes(vtkViewport *viewport, int *size);
00201 };
00202 
00203 
00204 #endif
00205 

Generated on Wed Nov 21 12:27:08 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001