<!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/Views/vtkDataRepresentation.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/Views/vtkDataRepresentation.h</h1><a href="a03589.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: vtkDataRepresentation.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 2008 Sandia Corporation.</span> <a name="l00017"></a>00017 <span class="comment"> Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span> <a name="l00018"></a>00018 <span class="comment"> the U.S. Government retains certain rights in this software.</span> <a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span> <a name="l00055"></a>00055 <span class="preprocessor">#ifndef __vtkDataRepresentation_h</span> <a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define __vtkDataRepresentation_h</span> <a name="l00057"></a>00057 <span class="preprocessor"></span> <a name="l00058"></a>00058 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span> <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>; <a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a00333.html" title="Convert a selection from one domain to another.">vtkConvertSelectionDomain</a>; <a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>; <a name="l00063"></a>00063 <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="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a01524.html" title="An algorithm for linking selections among objects.">vtkSelectionLink</a>; <a name="l00065"></a>00065 <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="l00066"></a>00066 <span class="keyword">class </span><a class="code" href="a01830.html" title="The superclass for all views.">vtkView</a>; <a name="l00067"></a>00067 <a name="l00068"></a><a class="code" href="a00373.html">00068</a> <span class="keyword">class </span><a class="code" href="a02170.html#c25dfcbca346c584e0d7e3204b3a31d9">VTK_VIEWS_EXPORT</a> <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> <a name="l00069"></a>00069 { <a name="l00070"></a>00070 <span class="keyword">public</span>: <a name="l00071"></a>00071 <span class="keyword">static</span> <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00072"></a><a class="code" href="a00373.html#09d5c126b83cbadf721920fdfd9522e1">00072</a> vtkTypeRevisionMacro(<a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>); <a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00074"></a>00074 <a name="l00077"></a>00077 <span class="keywordtype">void</span> SetInput(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* input); <a name="l00078"></a>00078 <a name="l00080"></a>00080 <a name="l00083"></a>00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInputConnection(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* conn); <a name="l00084"></a><a class="code" href="a00373.html#cb9b40e297f89fb5b39203d0219e15f4">00084</a> <span class="keyword">virtual</span> <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* GetInputConnection() <a name="l00085"></a>00085 { <span class="keywordflow">return</span> this->GetInputConnectionInternal(); } <a name="l00087"></a>00087 <a name="l00093"></a>00093 <span class="keywordtype">void</span> Select(<a class="code" href="a01830.html" title="The superclass for all views.">vtkView</a>* view, <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* selection); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00098"></a>00098 vtkSetMacro(Selectable, <span class="keywordtype">bool</span>); <a name="l00099"></a>00099 vtkGetMacro(Selectable, <span class="keywordtype">bool</span>); <a name="l00100"></a>00100 vtkBooleanMacro(Selectable, <span class="keywordtype">bool</span>); <a name="l00102"></a>00102 <a name="l00105"></a>00105 <span class="keywordtype">void</span> UpdateSelection(<a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* selection); <a name="l00106"></a>00106 <a name="l00108"></a>00108 <a name="l00112"></a><a class="code" href="a00373.html#4bae3fc2a557a127e265cfd69b5813a2">00112</a> <span class="keyword">virtual</span> <a class="code" href="a01524.html" title="An algorithm for linking selections among objects.">vtkSelectionLink</a>* GetSelectionLink() <a name="l00113"></a>00113 { <span class="keywordflow">return</span> this->GetSelectionLinkInternal(); } <a name="l00114"></a>00114 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSelectionLink(<a class="code" href="a01524.html" title="An algorithm for linking selections among objects.">vtkSelectionLink</a>* link); <a name="l00116"></a>00116 <a name="l00120"></a>00120 <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* GetSelectionConnection(); <a name="l00121"></a>00121 <a name="l00122"></a>00122 <span class="keyword">protected</span>: <a name="l00123"></a>00123 <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>(); <a name="l00124"></a>00124 ~<a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>(); <a name="l00125"></a>00125 <a name="l00129"></a><a class="code" href="a00373.html#9959b0453d651b390c11e9828ad8e111">00129</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> AddToView(<a class="code" href="a01830.html" title="The superclass for all views.">vtkView</a>* vtkNotUsed(view)) { <span class="keywordflow">return</span> <span class="keyword">true</span>; } <a name="l00130"></a>00130 <a name="l00134"></a><a class="code" href="a00373.html#3123cef489f6f49709b59404bfcb177b">00134</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> RemoveFromView(<a class="code" href="a01830.html" title="The superclass for all views.">vtkView</a>* vtkNotUsed(view)) { <span class="keywordflow">return</span> <span class="keyword">true</span>; } <a name="l00135"></a>00135 <a name="l00142"></a>00142 <span class="keyword">virtual</span> <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* ConvertSelection(<a class="code" href="a01830.html" title="The superclass for all views.">vtkView</a>* view, <a class="code" href="a01522.html" title="A node in a selection tree. Used to store selection results.">vtkSelection</a>* selection); <a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="comment">// The input connection.</span> <a name="l00145"></a>00145 vtkGetObjectMacro(InputConnectionInternal, <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>); <a name="l00146"></a>00146 <span class="keywordtype">void</span> SetInputConnectionInternal(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* conn); <a name="l00147"></a><a class="code" href="a00373.html#93b1f23df4eafbac7305a54a9fc6d7c5">00147</a> <a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>* InputConnectionInternal; <a name="l00148"></a>00148 <a name="l00149"></a>00149 <span class="comment">// The linked selection.</span> <a name="l00150"></a>00150 vtkGetObjectMacro(SelectionLinkInternal, <a class="code" href="a01524.html" title="An algorithm for linking selections among objects.">vtkSelectionLink</a>); <a name="l00151"></a>00151 <span class="keywordtype">void</span> SetSelectionLinkInternal(<a class="code" href="a01524.html" title="An algorithm for linking selections among objects.">vtkSelectionLink</a>* link); <a name="l00152"></a><a class="code" href="a00373.html#f02210206013ee0d0e49200a2a961f6f">00152</a> <a class="code" href="a01524.html" title="An algorithm for linking selections among objects.">vtkSelectionLink</a>* SelectionLinkInternal; <a name="l00153"></a>00153 <a name="l00154"></a>00154 <span class="comment">// The filter used to map the selection to the appropriate domain.</span> <a name="l00155"></a><a class="code" href="a00373.html#2a4d82a77c685325095f8b714116b0f2">00155</a> <a class="code" href="a00333.html" title="Convert a selection from one domain to another.">vtkConvertSelectionDomain</a>* ConvertDomain; <a name="l00156"></a>00156 <a name="l00157"></a>00157 <span class="comment">// Whether is represenation can handle a selection.</span> <a name="l00158"></a><a class="code" href="a00373.html#0d5e8c03220b1ba940010384e675c7e8">00158</a> <span class="keywordtype">bool</span> Selectable; <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="comment">//BTX</span> <a name="l00161"></a><a class="code" href="a00373.html#545ad365462cdadccddcdcfb76f99dcf">00161</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a01830.html" title="The superclass for all views.">vtkView</a>; <a name="l00162"></a>00162 <span class="comment">//ETX</span> <a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="keyword">private</span>: <a name="l00165"></a>00165 <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>&); <span class="comment">// Not implemented.</span> <a name="l00166"></a>00166 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>&); <span class="comment">// Not implemented.</span> <a name="l00167"></a>00167 }; <a name="l00168"></a>00168 <a name="l00169"></a>00169 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:50 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>