<!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/vtkConvertSelection.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/vtkConvertSelection.h</h1><a href="a02494.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: vtkConvertSelection.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="l00015"></a>00015 <span class="comment">/*----------------------------------------------------------------------------</span> <a name="l00016"></a>00016 <span class="comment"> Copyright (c) Sandia Corporation</span> <a name="l00017"></a>00017 <span class="comment"> See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.</span> <a name="l00018"></a>00018 <span class="comment">----------------------------------------------------------------------------*/</span> <a name="l00038"></a>00038 <span class="preprocessor">#ifndef __vtkConvertSelection_h</span> <a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define __vtkConvertSelection_h</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a02357.html">vtkSelectionAlgorithm.h</a>"</span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00303.html" title="abstact superclass for composite (multi-block or AMR) datasets">vtkCompositeDataSet</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a00654.html" title="Base class for graph data types.">vtkGraph</a>; <a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>; <a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>; <a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a01525.html" title="A node in a selection tree. Used to store selection results.">vtkSelectionNode</a>; <a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>; <a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>; <a name="l00050"></a>00050 <a name="l00051"></a><a class="code" href="a00332.html">00051</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a> : <span class="keyword">public</span> <a class="code" href="a01523.html" title="Superclass for algorithms that produce only Selection as output.">vtkSelectionAlgorithm</a> <a name="l00052"></a>00052 { <a name="l00053"></a>00053 <span class="keyword">public</span>: <a name="l00054"></a>00054 <span class="keyword">static</span> <a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a> *<a class="code" href="a01523.html#7a1145160a48d50e409b41ac9aa4f34b">New</a>(); <a name="l00055"></a><a class="code" href="a00332.html#a020da4ef0edf00a3b08c3dc32983af6">00055</a> vtkTypeRevisionMacro(<a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a>, <a class="code" href="a01523.html" title="Superclass for algorithms that produce only Selection as output.">vtkSelectionAlgorithm</a>); <a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="a01523.html#ef2cc527862032a26b5ba27f9b514480">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00057"></a>00057 <a name="l00060"></a>00060 <span class="keywordtype">void</span> SetDataObjectConnection(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* in); <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00067"></a>00067 vtkSetMacro(InputFieldType, <span class="keywordtype">int</span>); <a name="l00068"></a>00068 vtkGetMacro(InputFieldType, <span class="keywordtype">int</span>); <a name="l00070"></a>00070 <a name="l00072"></a>00072 <a name="l00074"></a>00074 vtkSetMacro(OutputType, <span class="keywordtype">int</span>); <a name="l00075"></a>00075 vtkGetMacro(OutputType, <span class="keywordtype">int</span>); <a name="l00077"></a>00077 <a name="l00079"></a>00079 <a name="l00080"></a>00080 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetArrayName(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00081"></a>00081 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetArrayName(); <a name="l00083"></a>00083 <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetArrayNames(<a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>*); <a name="l00087"></a>00087 vtkGetObjectMacro(ArrayNames, <a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>); <a name="l00089"></a>00089 <a name="l00091"></a>00091 <a name="l00094"></a>00094 <span class="keyword">static</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ToIndexSelection( <a name="l00095"></a>00095 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00096"></a>00096 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>); <a name="l00097"></a>00097 <span class="keyword">static</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ToGlobalIdSelection( <a name="l00098"></a>00098 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00099"></a>00099 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>); <a name="l00100"></a>00100 <span class="keyword">static</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ToPedigreeIdSelection( <a name="l00101"></a>00101 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00102"></a>00102 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>); <a name="l00103"></a>00103 <span class="keyword">static</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ToValueSelection( <a name="l00104"></a>00104 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00105"></a>00105 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00106"></a>00106 <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName); <a name="l00107"></a>00107 <span class="keyword">static</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ToValueSelection( <a name="l00108"></a>00108 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00109"></a>00109 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00110"></a>00110 <a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>* arrayNames); <a name="l00112"></a>00112 <a name="l00114"></a>00114 <a name="l00117"></a>00117 <span class="keyword">static</span> <span class="keywordtype">void</span> GetSelectedItems( <a name="l00118"></a>00118 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00119"></a>00119 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00120"></a>00120 <span class="keywordtype">int</span> fieldType, <a name="l00121"></a>00121 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00123"></a>00123 <a name="l00125"></a>00125 <a name="l00127"></a>00127 <span class="keyword">static</span> <span class="keywordtype">void</span> GetSelectedVertices( <a name="l00128"></a>00128 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00129"></a>00129 <a class="code" href="a00654.html" title="Base class for graph data types.">vtkGraph</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00130"></a>00130 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00131"></a>00131 <span class="keyword">static</span> <span class="keywordtype">void</span> GetSelectedEdges( <a name="l00132"></a>00132 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00133"></a>00133 <a class="code" href="a00654.html" title="Base class for graph data types.">vtkGraph</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00134"></a>00134 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00135"></a>00135 <span class="keyword">static</span> <span class="keywordtype">void</span> GetSelectedPoints( <a name="l00136"></a>00136 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00137"></a>00137 <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00138"></a>00138 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00139"></a>00139 <span class="keyword">static</span> <span class="keywordtype">void</span> GetSelectedCells( <a name="l00140"></a>00140 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00141"></a>00141 <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00142"></a>00142 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00143"></a>00143 <span class="keyword">static</span> <span class="keywordtype">void</span> GetSelectedRows( <a name="l00144"></a>00144 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00145"></a>00145 <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00146"></a>00146 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00148"></a>00148 <a name="l00150"></a>00150 <a name="l00152"></a>00152 <span class="keyword">static</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ToSelectionType( <a name="l00153"></a>00153 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00154"></a>00154 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00155"></a>00155 <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>, <a name="l00156"></a>00156 <a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>* arrayNames = 0); <a name="l00158"></a>00158 <span class="keyword">protected</span>: <a name="l00159"></a>00159 <a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a>(); <a name="l00160"></a>00160 ~<a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a>(); <a name="l00161"></a>00161 <a name="l00162"></a>00162 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01523.html#a02476a7ee4b1a71b02edf027139cddd">RequestData</a>( <a name="l00163"></a>00163 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a name="l00164"></a>00164 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a name="l00165"></a>00165 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00166"></a>00166 <a name="l00167"></a>00167 <span class="keywordtype">int</span> Convert( <a name="l00168"></a>00168 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00169"></a>00169 <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00170"></a>00170 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* output); <a name="l00171"></a>00171 <a name="l00172"></a>00172 <span class="keywordtype">int</span> ConvertCompositeDataSet( <a name="l00173"></a>00173 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a name="l00174"></a>00174 <a class="code" href="a00303.html" title="abstact superclass for composite (multi-block or AMR) datasets">vtkCompositeDataSet</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00175"></a>00175 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* output); <a name="l00176"></a>00176 <a name="l00177"></a>00177 <span class="keywordtype">int</span> ConvertToIndexSelection( <a name="l00178"></a>00178 <a class="code" href="a01525.html" title="A node in a selection tree. Used to store selection results.">vtkSelectionNode</a>* input, <a name="l00179"></a>00179 <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a name="l00180"></a>00180 <a class="code" href="a01525.html" title="A node in a selection tree. Used to store selection results.">vtkSelectionNode</a>* output); <a name="l00181"></a>00181 <a name="l00182"></a>00182 <span class="keywordtype">int</span> SelectTableFromTable( <a name="l00183"></a>00183 <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>* selTable, <a name="l00184"></a>00184 <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>* dataTable, <a name="l00185"></a>00185 <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>* indices); <a name="l00186"></a>00186 <a name="l00187"></a>00187 <span class="keywordtype">int</span> ConvertToBlockSelection( <a name="l00188"></a>00188 <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* input, <a class="code" href="a00303.html" title="abstact superclass for composite (multi-block or AMR) datasets">vtkCompositeDataSet</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>, <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* output); <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01523.html#c4ebef15817b841ea2301fcf7b99c3c8">FillInputPortInformation</a>( <a name="l00191"></a>00191 <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="l00192"></a>00192 <a name="l00193"></a><a class="code" href="a00332.html#c6d0d9ba3a66837c517dbaeffb5a1081">00193</a> <span class="keywordtype">int</span> OutputType; <a name="l00194"></a><a class="code" href="a00332.html#ae66777debff61b686abec70de875f6d">00194</a> <span class="keywordtype">int</span> InputFieldType; <a name="l00195"></a><a class="code" href="a00332.html#da72cde3d7b64860e98519e1ad66b624">00195</a> <a class="code" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings.">vtkStringArray</a>* ArrayNames; <a name="l00196"></a>00196 <a name="l00197"></a>00197 <span class="keyword">private</span>: <a name="l00198"></a>00198 <a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a>(<span class="keyword">const</span> <a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a>&); <span class="comment">// Not implemented.</span> <a name="l00199"></a>00199 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00332.html" title="Convert a selection from one type to another.">vtkConvertSelection</a>&); <span class="comment">// Not implemented.</span> <a name="l00200"></a>00200 }; <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:25 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>