<!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/Graphics/vtkTensorGlyph.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/Graphics/vtkTensorGlyph.h</h1><a href="a02686.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: vtkTensorGlyph.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="l00081"></a>00081 <span class="preprocessor">#ifndef __vtkTensorGlyph_h</span> <a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTensorGlyph_h</span> <a name="l00083"></a>00083 <span class="preprocessor"></span> <a name="l00084"></a>00084 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span> <a name="l00085"></a>00085 <a name="l00086"></a><a class="code" href="a01681.html">00086</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a> <a name="l00087"></a>00087 { <a name="l00088"></a>00088 <span class="keyword">public</span>: <a name="l00089"></a><a class="code" href="a01681.html#25259e7719bad4f8df736b3984a37ae6">00089</a> vtkTypeRevisionMacro(<a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>); <a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00091"></a>00091 <a name="l00095"></a>00095 <span class="keyword">static</span> <a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>(); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a name="l00100"></a>00100 <span class="keywordtype">void</span> SetSource(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *<a class="code" href="a02995.html#7c22aa18a4e42c330618a6410d133551">source</a>); <a name="l00101"></a>00101 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetSource(); <a name="l00103"></a>00103 <a name="l00105"></a>00105 <a name="l00108"></a>00108 <span class="keywordtype">void</span> SetSourceConnection(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* algOutput); <a name="l00109"></a><a class="code" href="a01681.html#e9713902ec43975fe6084a57f77ac778">00109</a> <span class="keywordtype">void</span> SetSourceConnection(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* algOutput) <a name="l00110"></a>00110 { <a name="l00111"></a>00111 this->SetSourceConnection(0, algOutput); <a name="l00112"></a>00112 } <a name="l00114"></a>00114 <a name="l00116"></a>00116 <a name="l00117"></a>00117 vtkSetMacro(Scaling,<span class="keywordtype">int</span>); <a name="l00118"></a>00118 vtkGetMacro(Scaling,<span class="keywordtype">int</span>); <a name="l00119"></a>00119 vtkBooleanMacro(Scaling,<span class="keywordtype">int</span>); <a name="l00121"></a>00121 <a name="l00123"></a>00123 <a name="l00125"></a>00125 vtkSetMacro(ScaleFactor,<span class="keywordtype">double</span>); <a name="l00126"></a>00126 vtkGetMacro(ScaleFactor,<span class="keywordtype">double</span>); <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a name="l00131"></a>00131 vtkSetMacro(ThreeGlyphs,<span class="keywordtype">int</span>); <a name="l00132"></a>00132 vtkGetMacro(ThreeGlyphs,<span class="keywordtype">int</span>); <a name="l00133"></a>00133 vtkBooleanMacro(ThreeGlyphs,<span class="keywordtype">int</span>); <a name="l00135"></a>00135 <a name="l00137"></a>00137 <a name="l00138"></a>00138 vtkSetMacro(Symmetric,<span class="keywordtype">int</span>); <a name="l00139"></a>00139 vtkGetMacro(Symmetric,<span class="keywordtype">int</span>); <a name="l00140"></a>00140 vtkBooleanMacro(Symmetric,<span class="keywordtype">int</span>); <a name="l00142"></a>00142 <a name="l00144"></a>00144 <a name="l00146"></a>00146 vtkSetMacro(Length,<span class="keywordtype">double</span>); <a name="l00147"></a>00147 vtkGetMacro(Length,<span class="keywordtype">double</span>); <a name="l00149"></a>00149 <a name="l00151"></a>00151 <a name="l00152"></a>00152 vtkSetMacro(ExtractEigenvalues,<span class="keywordtype">int</span>); <a name="l00153"></a>00153 vtkBooleanMacro(ExtractEigenvalues,<span class="keywordtype">int</span>); <a name="l00154"></a>00154 vtkGetMacro(ExtractEigenvalues,<span class="keywordtype">int</span>); <a name="l00156"></a>00156 <a name="l00158"></a>00158 <a name="l00161"></a>00161 vtkSetMacro(ColorGlyphs,<span class="keywordtype">int</span>); <a name="l00162"></a>00162 vtkGetMacro(ColorGlyphs,<span class="keywordtype">int</span>); <a name="l00163"></a>00163 vtkBooleanMacro(ColorGlyphs,<span class="keywordtype">int</span>); <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="comment">//BTX</span> <a name="l00167"></a>00167 <span class="keyword">enum</span> <a name="l00168"></a>00168 { <a name="l00169"></a><a class="code" href="a01681.html#0604639fc16f1ae99540062f03d8b668c6ef08baf03d3903fd8d9f5bccd83893">00169</a> COLOR_BY_SCALARS, <a name="l00170"></a><a class="code" href="a01681.html#0604639fc16f1ae99540062f03d8b6687261a2f26363e8ecde72544e28b03344">00170</a> COLOR_BY_EIGENVALUES <a name="l00171"></a>00171 }; <a name="l00172"></a>00172 <span class="comment">//ETX</span> <a name="l00173"></a>00173 <a name="l00175"></a>00175 <a name="l00182"></a>00182 vtkSetClampMacro(ColorMode, <span class="keywordtype">int</span>, COLOR_BY_SCALARS, COLOR_BY_EIGENVALUES); <a name="l00183"></a>00183 vtkGetMacro(ColorMode, <span class="keywordtype">int</span>); <a name="l00184"></a><a class="code" href="a01681.html#0afd6801fec171e392e31c9be8310684">00184</a> <span class="keywordtype">void</span> SetColorModeToScalars() <a name="l00185"></a>00185 {this->SetColorMode(COLOR_BY_SCALARS);}; <a name="l00186"></a><a class="code" href="a01681.html#48adf9d98d45fb8b5425995d44632160">00186</a> <span class="keywordtype">void</span> SetColorModeToEigenvalues() <a name="l00187"></a>00187 {this->SetColorMode(COLOR_BY_EIGENVALUES);}; <a name="l00189"></a>00189 <a name="l00191"></a>00191 <a name="l00194"></a>00194 vtkSetMacro(ClampScaling,<span class="keywordtype">int</span>); <a name="l00195"></a>00195 vtkGetMacro(ClampScaling,<span class="keywordtype">int</span>); <a name="l00196"></a>00196 vtkBooleanMacro(ClampScaling,<span class="keywordtype">int</span>); <a name="l00198"></a>00198 <a name="l00200"></a>00200 <a name="l00204"></a>00204 vtkSetMacro(MaxScaleFactor,<span class="keywordtype">double</span>); <a name="l00205"></a>00205 vtkGetMacro(MaxScaleFactor,<span class="keywordtype">double</span>); <a name="l00207"></a>00207 <a name="l00208"></a>00208 <span class="keyword">protected</span>: <a name="l00209"></a>00209 <a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a>(); <a name="l00210"></a>00210 ~<a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a>(); <a name="l00211"></a>00211 <a name="l00212"></a>00212 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00213"></a>00213 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#a9084b97ab9c0c8c76e490fa9776a832">FillInputPortInformation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>); <a name="l00214"></a>00214 <a name="l00215"></a><a class="code" href="a01681.html#fa0915036f61a1be2097160bd600d747">00215</a> <span class="keywordtype">int</span> Scaling; <span class="comment">// Determine whether scaling of geometry is performed</span> <a name="l00216"></a><a class="code" href="a01681.html#18a48bba936963b949c069a3f3a3e68c">00216</a> <span class="keywordtype">double</span> ScaleFactor; <span class="comment">// Scale factor to use to scale geometry</span> <a name="l00217"></a><a class="code" href="a01681.html#9d8c4affd161b933ab85688192068318">00217</a> <span class="keywordtype">int</span> ExtractEigenvalues; <span class="comment">// Boolean controls eigenfunction extraction</span> <a name="l00218"></a><a class="code" href="a01681.html#aa8a3e74e4cd1492902d640394c69f46">00218</a> <span class="keywordtype">int</span> ColorGlyphs; <span class="comment">// Boolean controls coloring with input scalar data</span> <a name="l00219"></a><a class="code" href="a01681.html#be91130e3849625ed0b6a5edbdea54b6">00219</a> <span class="keywordtype">int</span> ColorMode; <span class="comment">// The coloring mode to use for the glyphs.</span> <a name="l00220"></a><a class="code" href="a01681.html#ccdb0ae6cfcc5f60c3d52470cb770204">00220</a> <span class="keywordtype">int</span> ClampScaling; <span class="comment">// Boolean controls whether scaling is clamped.</span> <a name="l00221"></a><a class="code" href="a01681.html#a39b92790004d016074cca23de96315d">00221</a> <span class="keywordtype">double</span> MaxScaleFactor; <span class="comment">// Maximum scale factor (ScaleFactor*eigenvalue)</span> <a name="l00222"></a><a class="code" href="a01681.html#3dc66d031c8996da3515f6b2cfea3a56">00222</a> <span class="keywordtype">int</span> ThreeGlyphs; <span class="comment">// Boolean controls drawing 1 or 3 glyphs</span> <a name="l00223"></a><a class="code" href="a01681.html#12b4a46221032455dc0756b3e8f07d30">00223</a> <span class="keywordtype">int</span> Symmetric; <span class="comment">// Boolean controls drawing a "mirror" of each glyph</span> <a name="l00224"></a><a class="code" href="a01681.html#e94f7a41396a1ca8e02f6b9f0782e5f9">00224</a> <span class="keywordtype">double</span> Length; <span class="comment">// Distance, in x, from the origin to the end of the glyph</span> <a name="l00225"></a>00225 <span class="keyword">private</span>: <a name="l00226"></a>00226 <a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a>(<span class="keyword">const</span> <a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a>&); <span class="comment">// Not implemented.</span> <a name="l00227"></a>00227 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01681.html" title="scale and orient glyph(s) according to tensor eigenvalues and eigenvectors">vtkTensorGlyph</a>&); <span class="comment">// Not implemented.</span> <a name="l00228"></a>00228 }; <a name="l00229"></a>00229 <a name="l00230"></a>00230 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:30 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>