<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: dox/Hybrid/vtkSpiderPlotActor.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>dox/Hybrid/vtkSpiderPlotActor.h</h1><a href="a02849.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Visualization Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkSpiderPlotActor.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span> <a name="l00007"></a>00007 <span class="comment"> All rights reserved.</span> <a name="l00008"></a>00008 <span class="comment"> See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00011"></a>00011 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00012"></a>00012 <span class="comment"> PURPOSE. See the above copyright notice for more information.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span> <a name="l00051"></a>00051 <span class="preprocessor">#ifndef __vtkSpiderPlotActor_h</span> <a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSpiderPlotActor_h</span> <a name="l00053"></a>00053 <span class="preprocessor"></span> <a name="l00054"></a>00054 <span class="preprocessor">#include "<a class="code" href="a02186.html">vtkActor2D.h</a>"</span> <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>; <a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>; <a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>; <a name="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>; <a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a>; <a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>; <a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>; <a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a00652.html" title="create 2D glyphs represented by vtkPolyData">vtkGlyphSource2D</a>; <a name="l00064"></a>00064 <span class="keyword">class </span>vtkAxisLabelArray; <a name="l00065"></a>00065 <span class="keyword">class </span>vtkAxisRanges; <a name="l00066"></a>00066 <a name="l00067"></a>00067 <a name="l00068"></a><a class="code" href="a02849.html#c43525da3527f62dd456e41f6bcc4532">00068</a> <span class="preprocessor">#define VTK_IV_COLUMN 0</span> <a name="l00069"></a><a class="code" href="a02849.html#173529bf312a17754eac6622b867989d">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_IV_ROW 1</span> <a name="l00070"></a>00070 <span class="preprocessor"></span> <a name="l00071"></a><a class="code" href="a01587.html">00071</a> <span class="keyword">class </span><a class="code" href="a02170.html#9e9a05a8377523b4f8d707441f65786d">VTK_HYBRID_EXPORT</a> <a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a> : <span class="keyword">public</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> <a name="l00072"></a>00072 { <a name="l00073"></a>00073 <span class="keyword">public</span>: <a name="l00075"></a>00075 <a name="l00076"></a><a class="code" href="a01587.html#f33405cbce1a50be3420324096e3648d">00076</a> vtkTypeRevisionMacro(<a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a>,<a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>); <a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="a00093.html#f0bb6b3aeeaa23e0f408990a40a1607a">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00079"></a>00079 <a name="l00081"></a>00081 <span class="keyword">static</span> <a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a> *<a class="code" href="a00093.html#470c524c4d719ddf82b0a32bc55beb6e">New</a>(); <a name="l00082"></a>00082 <a name="l00084"></a>00084 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>*); <a name="l00085"></a>00085 <a name="l00087"></a>00087 <a name="l00088"></a>00088 vtkGetObjectMacro(Input,<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <a name="l00095"></a>00095 vtkSetClampMacro(IndependentVariables,<span class="keywordtype">int</span>,<a class="code" href="a02849.html#c43525da3527f62dd456e41f6bcc4532">VTK_IV_COLUMN</a>, <a class="code" href="a02849.html#173529bf312a17754eac6622b867989d">VTK_IV_ROW</a>); <a name="l00096"></a>00096 vtkGetMacro(IndependentVariables,<span class="keywordtype">int</span>); <a name="l00097"></a><a class="code" href="a01587.html#c74dd75fa4b9f8ce9df50f4b92a46c28">00097</a> <span class="keywordtype">void</span> SetIndependentVariablesToColumns() <a name="l00098"></a>00098 {this->SetIndependentVariables(<a class="code" href="a02849.html#c43525da3527f62dd456e41f6bcc4532">VTK_IV_COLUMN</a>);}; <a name="l00099"></a><a class="code" href="a01587.html#111997d1dd79a88cfd77f61c3f823f1c">00099</a> <span class="keywordtype">void</span> SetIndependentVariablesToRows() <a name="l00100"></a>00100 {this->SetIndependentVariables(<a class="code" href="a02849.html#173529bf312a17754eac6622b867989d">VTK_IV_ROW</a>);}; <a name="l00102"></a>00102 <a name="l00104"></a>00104 <a name="l00105"></a>00105 vtkSetMacro(TitleVisibility, <span class="keywordtype">int</span>); <a name="l00106"></a>00106 vtkGetMacro(TitleVisibility, <span class="keywordtype">int</span>); <a name="l00107"></a>00107 vtkBooleanMacro(TitleVisibility, <span class="keywordtype">int</span>); <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a name="l00112"></a>00112 vtkSetStringMacro(Title); <a name="l00113"></a>00113 vtkGetStringMacro(Title); <a name="l00115"></a>00115 <a name="l00117"></a>00117 <a name="l00118"></a>00118 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTitleTextProperty(<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *p); <a name="l00119"></a>00119 vtkGetObjectMacro(TitleTextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>); <a name="l00121"></a>00121 <a name="l00122"></a>00122 <span class="comment">// Enable/Disable the display axes titles. These are arranged on the end</span> <a name="l00123"></a>00123 <span class="comment">// of each radial axis on the circumference of the spider plot. The label</span> <a name="l00124"></a>00124 <span class="comment">// text strings are derived from the names of the data object arrays </span> <a name="l00125"></a>00125 <span class="comment">// associated with the input.</span> <a name="l00126"></a>00126 vtkSetMacro(LabelVisibility, <span class="keywordtype">int</span>); <a name="l00127"></a>00127 vtkGetMacro(LabelVisibility, <span class="keywordtype">int</span>); <a name="l00128"></a>00128 vtkBooleanMacro(LabelVisibility, <span class="keywordtype">int</span>); <a name="l00129"></a>00129 <a name="l00131"></a>00131 <a name="l00134"></a>00134 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLabelTextProperty(<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *p); <a name="l00135"></a>00135 vtkGetObjectMacro(LabelTextProperty,<a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>); <a name="l00137"></a>00137 <a name="l00139"></a>00139 <a name="l00141"></a>00141 vtkSetClampMacro(NumberOfRings,<span class="keywordtype">int</span>,0,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00142"></a>00142 vtkGetMacro(NumberOfRings,<span class="keywordtype">int</span>); <a name="l00144"></a>00144 <a name="l00146"></a>00146 <a name="l00148"></a>00148 <span class="keywordtype">void</span> SetAxisLabel(<span class="keyword">const</span> <span class="keywordtype">int</span> i, <span class="keyword">const</span> <span class="keywordtype">char</span> *); <a name="l00149"></a>00149 <span class="keyword">const</span> <span class="keywordtype">char</span>* GetAxisLabel(<span class="keywordtype">int</span> i); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a name="l00155"></a>00155 <span class="keywordtype">void</span> SetAxisRange(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> min, <span class="keywordtype">double</span> <a class="code" href="a02864.html#ffe776513b24d84b39af8ab0930fef7f">max</a>); <a name="l00156"></a>00156 <span class="keywordtype">void</span> SetAxisRange(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]); <a name="l00157"></a>00157 <span class="keywordtype">void</span> GetAxisRange(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]); <a name="l00159"></a>00159 <a name="l00161"></a>00161 <a name="l00163"></a>00163 <span class="keywordtype">void</span> SetPlotColor(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> r, <span class="keywordtype">double</span> g, <span class="keywordtype">double</span> b); <a name="l00164"></a><a class="code" href="a01587.html#5f31e81d8e6d5524fbac5be63f5087bb">00164</a> <span class="keywordtype">void</span> SetPlotColor(<span class="keywordtype">int</span> i, <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210ab06a058f9ffb559855ff8495aa7e53e">color</a>[3]) <a name="l00165"></a>00165 { this->SetPlotColor(i, color[0], color[1], color[2]); } <a name="l00166"></a>00166 <span class="keywordtype">double</span> *GetPlotColor(<span class="keywordtype">int</span> i); <a name="l00168"></a>00168 <a name="l00170"></a>00170 <a name="l00173"></a>00173 vtkSetMacro(LegendVisibility, <span class="keywordtype">int</span>); <a name="l00174"></a>00174 vtkGetMacro(LegendVisibility, <span class="keywordtype">int</span>); <a name="l00175"></a>00175 vtkBooleanMacro(LegendVisibility, <span class="keywordtype">int</span>); <a name="l00177"></a>00177 <a name="l00179"></a>00179 <a name="l00181"></a>00181 vtkGetObjectMacro(LegendActor,<a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a>); <a name="l00183"></a>00183 <a name="l00185"></a>00185 <a name="l00186"></a>00186 <span class="keywordtype">int</span> <a class="code" href="a00093.html#95232573f645b775c88dd81a6067addc">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*); <a name="l00187"></a>00187 <span class="keywordtype">int</span> <a class="code" href="a00093.html#e26bc15689de9781fdf6ecc6ab80c2fe">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*); <a name="l00188"></a><a class="code" href="a01587.html#246b196edb49639695bbf52857405e0e">00188</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00093.html#f7a2adb46eba24bb78c825750d46a482">RenderTranslucentPolygonalGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* ) {<span class="keywordflow">return</span> 0;} <a name="l00190"></a>00190 <a name="l00192"></a>00192 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00093.html#a8f4fb9da8d8a683cf1c4f8541a21ff1">HasTranslucentPolygonalGeometry</a>(); <a name="l00193"></a>00193 <a name="l00197"></a>00197 <span class="keywordtype">void</span> <a class="code" href="a00093.html#dd99f157501a85867005664f4d74008d">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *); <a name="l00198"></a>00198 <a name="l00199"></a>00199 <span class="keyword">protected</span>: <a name="l00200"></a>00200 <a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a>(); <a name="l00201"></a>00201 ~<a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a>(); <a name="l00202"></a>00202 <a name="l00203"></a>00203 <span class="keyword">private</span>: <a name="l00204"></a>00204 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a> *Input; <span class="comment">// List of data sets to plot</span> <a name="l00205"></a>00205 <span class="keywordtype">int</span> IndependentVariables; <span class="comment">// Use column or row</span> <a name="l00206"></a>00206 <span class="keywordtype">int</span> TitleVisibility; <span class="comment">// Should I see the title?</span> <a name="l00207"></a>00207 <span class="keywordtype">char</span> *Title; <span class="comment">// The title string</span> <a name="l00208"></a>00208 <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *TitleTextProperty; <a name="l00209"></a>00209 <span class="keywordtype">int</span> LabelVisibility; <a name="l00210"></a>00210 <a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a> *LabelTextProperty; <a name="l00211"></a>00211 vtkAxisLabelArray *Labels; <a name="l00212"></a>00212 <span class="keywordtype">int</span> LegendVisibility; <a name="l00213"></a>00213 <a class="code" href="a00951.html" title="draw symbols with text">vtkLegendBoxActor</a> *LegendActor; <a name="l00214"></a>00214 <a class="code" href="a00652.html" title="create 2D glyphs represented by vtkPolyData">vtkGlyphSource2D</a> *GlyphSource; <a name="l00215"></a>00215 <span class="keywordtype">int</span> NumberOfRings; <a name="l00216"></a>00216 <span class="keywordtype">int</span> AutomaticRangeComputation; <a name="l00217"></a>00217 <a name="l00218"></a>00218 <span class="comment">// Local variables needed to plot</span> <a name="l00219"></a>00219 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> N; <span class="comment">// The number of independent variables</span> <a name="l00220"></a>00220 <span class="keywordtype">double</span> *Mins; <span class="comment">// Minimum data value along this row/column</span> <a name="l00221"></a>00221 <span class="keywordtype">double</span> *Maxs; <span class="comment">// Maximum data value along this row/column</span> <a name="l00222"></a>00222 vtkAxisRanges *Ranges; <a name="l00223"></a>00223 <a name="l00224"></a>00224 <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> **LabelMappers; <span class="comment">//a label for each radial spoke</span> <a name="l00225"></a>00225 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> **LabelActors; <a name="l00226"></a>00226 <a name="l00227"></a>00227 <a class="code" href="a01691.html" title="2D text annotation">vtkTextMapper</a> *TitleMapper; <a name="l00228"></a>00228 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *TitleActor; <a name="l00229"></a>00229 <a name="l00230"></a>00230 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *WebData; <span class="comment">// The web of the spider plot</span> <a name="l00231"></a>00231 <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *WebMapper; <a name="l00232"></a>00232 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *WebActor; <a name="l00233"></a>00233 <a name="l00234"></a>00234 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *PlotData; <span class="comment">// The lines drawn within the axes</span> <a name="l00235"></a>00235 <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a> *PlotMapper; <a name="l00236"></a>00236 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *PlotActor; <a name="l00237"></a>00237 <a name="l00238"></a>00238 <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> BuildTime; <a name="l00239"></a>00239 <a name="l00240"></a>00240 <span class="keywordtype">double</span> Center[3]; <a name="l00241"></a>00241 <span class="keywordtype">double</span> Radius; <a name="l00242"></a>00242 <span class="keywordtype">double</span> Theta; <a name="l00243"></a>00243 <a name="l00244"></a>00244 <span class="keywordtype">int</span> LastPosition[2]; <a name="l00245"></a>00245 <span class="keywordtype">int</span> LastPosition2[2]; <a name="l00246"></a>00246 <span class="keywordtype">double</span> P1[3]; <a name="l00247"></a>00247 <span class="keywordtype">double</span> P2[3]; <a name="l00248"></a>00248 <a name="l00249"></a>00249 <span class="keywordtype">void</span> Initialize(); <a name="l00250"></a>00250 <span class="keywordtype">int</span> PlaceAxes(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport, <span class="keywordtype">int</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>); <a name="l00251"></a>00251 <span class="keywordtype">int</span> BuildPlot(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>*); <a name="l00252"></a>00252 <a name="l00253"></a>00253 <span class="keyword">private</span>: <a name="l00254"></a>00254 <a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a>(<span class="keyword">const</span> <a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a>&); <span class="comment">// Not implemented.</span> <a name="l00255"></a>00255 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01587.html" title="create a spider plot from input field">vtkSpiderPlotActor</a>&); <span class="comment">// Not implemented.</span> <a name="l00256"></a>00256 }; <a name="l00257"></a>00257 <a name="l00258"></a>00258 <a name="l00259"></a>00259 <span class="preprocessor">#endif</span> <a name="l00260"></a>00260 <span class="preprocessor"></span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:33 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>