<!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/vtkSuperquadricSource.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/vtkSuperquadricSource.h</h1><a href="a02678.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: vtkSuperquadricSource.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="l00052"></a>00052 <span class="preprocessor">#ifndef __vtkSuperquadricSource_h</span> <a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSuperquadricSource_h</span> <a name="l00054"></a>00054 <span class="preprocessor"></span> <a name="l00055"></a>00055 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span> <a name="l00056"></a>00056 <a name="l00057"></a><a class="code" href="a02678.html#0171455aaf8aaef5894e70c477617c36">00057</a> <span class="preprocessor">#define VTK_MAX_SUPERQUADRIC_RESOLUTION 1024</span> <a name="l00058"></a><a class="code" href="a02678.html#611e7ef6207faa79a3e59aabbc8457f0">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_MIN_SUPERQUADRIC_THICKNESS 1e-4</span> <a name="l00059"></a><a class="code" href="a02678.html#bd6a65e1f87d2bc61925c35f2b737e22">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_MIN_SUPERQUADRIC_ROUNDNESS 1e-24</span> <a name="l00060"></a>00060 <span class="preprocessor"></span> <a name="l00061"></a><a class="code" href="a01650.html">00061</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</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="l00062"></a>00062 { <a name="l00063"></a>00063 <span class="keyword">public</span>: <a name="l00067"></a>00067 <span class="keyword">static</span> <a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>(); <a name="l00068"></a>00068 <a name="l00069"></a><a class="code" href="a01650.html#c2cf1131b7fa3dc6871940f82b248ee9">00069</a> vtkTypeRevisionMacro(<a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>); <a name="l00070"></a>00070 <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="l00071"></a>00071 <a name="l00073"></a>00073 <a name="l00074"></a>00074 vtkSetVector3Macro(Center,<span class="keywordtype">double</span>); <a name="l00075"></a>00075 vtkGetVectorMacro(Center,<span class="keywordtype">double</span>,3); <a name="l00077"></a>00077 <a name="l00079"></a>00079 <a name="l00080"></a>00080 vtkSetVector3Macro(Scale,<span class="keywordtype">double</span>); <a name="l00081"></a>00081 vtkGetVectorMacro(Scale,<span class="keywordtype">double</span>,3); <a name="l00083"></a>00083 <a name="l00085"></a>00085 <a name="l00087"></a>00087 vtkGetMacro(ThetaResolution,<span class="keywordtype">int</span>); <a name="l00088"></a>00088 <span class="keywordtype">void</span> SetThetaResolution(<span class="keywordtype">int</span> i); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <a name="l00094"></a>00094 vtkGetMacro(PhiResolution,<span class="keywordtype">int</span>); <a name="l00095"></a>00095 <span class="keywordtype">void</span> SetPhiResolution(<span class="keywordtype">int</span> i); <a name="l00097"></a>00097 <a name="l00099"></a>00099 <a name="l00102"></a>00102 vtkGetMacro(Thickness,<span class="keywordtype">double</span>); <a name="l00103"></a>00103 vtkSetClampMacro(Thickness,<span class="keywordtype">double</span>,<a class="code" href="a02378.html#611e7ef6207faa79a3e59aabbc8457f0">VTK_MIN_SUPERQUADRIC_THICKNESS</a>,1.0); <a name="l00105"></a>00105 <a name="l00107"></a>00107 <a name="l00109"></a>00109 vtkGetMacro(PhiRoundness,<span class="keywordtype">double</span>); <a name="l00110"></a>00110 <span class="keywordtype">void</span> SetPhiRoundness(<span class="keywordtype">double</span> e); <a name="l00112"></a>00112 <a name="l00114"></a>00114 <a name="l00116"></a>00116 vtkGetMacro(ThetaRoundness,<span class="keywordtype">double</span>); <a name="l00117"></a>00117 <span class="keywordtype">void</span> SetThetaRoundness(<span class="keywordtype">double</span> e); <a name="l00119"></a>00119 <a name="l00121"></a>00121 <a name="l00122"></a>00122 vtkSetMacro(Size,<span class="keywordtype">double</span>); <a name="l00123"></a>00123 vtkGetMacro(Size,<span class="keywordtype">double</span>); <a name="l00125"></a>00125 <a name="l00127"></a>00127 <a name="l00129"></a>00129 vtkBooleanMacro(Toroidal,<span class="keywordtype">int</span>); <a name="l00130"></a>00130 vtkGetMacro(Toroidal,<span class="keywordtype">int</span>); <a name="l00131"></a>00131 vtkSetMacro(Toroidal,<span class="keywordtype">int</span>); <a name="l00133"></a>00133 <a name="l00134"></a>00134 <span class="keyword">protected</span>: <a name="l00135"></a>00135 <a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a>(<span class="keywordtype">int</span> res=16); <a name="l00136"></a><a class="code" href="a01650.html#4a7e570671394a1cd2c0d729cac72155">00136</a> ~<a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a>() {}; <a name="l00137"></a>00137 <a name="l00138"></a>00138 <span class="keywordtype">int</span> Toroidal; <a name="l00139"></a><a class="code" href="a01650.html#8163b099759b2440dea129e25bded8b2">00139</a> <span class="keywordtype">int</span> AxisOfSymmetry; <a name="l00140"></a><a class="code" href="a01650.html#aa18b6b97ac72f3b7ab3bb13e762f592">00140</a> <span class="keywordtype">double</span> Thickness; <a name="l00141"></a><a class="code" href="a01650.html#7ffbf35d412faa265ea7cabe5f03168e">00141</a> <span class="keywordtype">double</span> Size; <a name="l00142"></a><a class="code" href="a01650.html#a4acb5d38439f1c50aa23932bf68e0cd">00142</a> <span class="keywordtype">double</span> PhiRoundness; <a name="l00143"></a><a class="code" href="a01650.html#24ab5a3203e2c5b4e9b07fd10df4ab5c">00143</a> <span class="keywordtype">double</span> ThetaRoundness; <a name="l00144"></a>00144 <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="l00145"></a><a class="code" href="a01650.html#6236528882eaae66e8adc6af9aa05d29">00145</a> <span class="keywordtype">double</span> Center[3]; <a name="l00146"></a><a class="code" href="a01650.html#7971cb185ada3d90a0a855d6322923b3">00146</a> <span class="keywordtype">double</span> Scale[3]; <a name="l00147"></a><a class="code" href="a01650.html#450b240075db147ee18826e2d011c887">00147</a> <span class="keywordtype">int</span> ThetaResolution; <a name="l00148"></a><a class="code" href="a01650.html#5e48a3e26f899eb241cea361c0d3631d">00148</a> <span class="keywordtype">int</span> PhiResolution; <a name="l00149"></a>00149 <a name="l00150"></a>00150 <span class="keyword">private</span>: <a name="l00151"></a>00151 <a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a>(<span class="keyword">const</span> <a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a>&); <span class="comment">// Not implemented.</span> <a name="l00152"></a>00152 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01650.html" title="create a polygonal superquadric centered at the origin">vtkSuperquadricSource</a>&); <span class="comment">// Not implemented.</span> <a name="l00153"></a>00153 }; <a name="l00154"></a>00154 <a name="l00155"></a>00155 <span class="preprocessor">#endif</span> <a name="l00156"></a>00156 <span class="preprocessor"></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>