Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 5474

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!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/Widgets/vtkContourRepresentation.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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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/Widgets/vtkContourRepresentation.h</h1><a href="a03682.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: vtkContourRepresentation.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="l00056"></a>00056 <span class="preprocessor">#ifndef __vtkContourRepresentation_h</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#define __vtkContourRepresentation_h</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#include "<a class="code" href="a03750.html">vtkWidgetRepresentation.h</a>"</span>
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;vtkstd/vector&gt;</span> <span class="comment">// Required for vector</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a00325.html" title="Defines API for interpolating/modifying nodes from a vtkContourRepresentation.">vtkContourLineInterpolator</a>;
<a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a01249.html" title="Abstract interface to translate 2D display positions to world coordinates.">vtkPointPlacer</a>;
<a name="l00064"></a>00064 <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="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="comment">//----------------------------------------------------------------------</span>
<a name="l00067"></a>00067 <span class="comment">//BTX</span>
<a name="l00068"></a><a class="code" href="a00329.html">00068</a> <span class="keyword">class </span><a class="code" href="a00329.html">vtkContourRepresentationPoint</a>
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 <span class="keyword">public</span>:
<a name="l00071"></a><a class="code" href="a00329.html#7c91f9c170563c4ca049f221e428b9d6">00071</a>   <span class="keywordtype">double</span>        <a class="code" href="a00329.html#7c91f9c170563c4ca049f221e428b9d6">WorldPosition</a>[3];
<a name="l00072"></a><a class="code" href="a00329.html#f33048a00f7b9a392003cdaf504ddf28">00072</a>   <span class="keywordtype">double</span>        <a class="code" href="a00329.html#f33048a00f7b9a392003cdaf504ddf28">NormalizedDisplayPosition</a>[2];
<a name="l00073"></a>00073 };
<a name="l00074"></a>00074 
<a name="l00075"></a><a class="code" href="a00328.html">00075</a> <span class="keyword">class </span><a class="code" href="a00328.html">vtkContourRepresentationNode</a>
<a name="l00076"></a>00076 {
<a name="l00077"></a>00077 <span class="keyword">public</span>:
<a name="l00078"></a><a class="code" href="a00328.html#b30f12ecac0aa88ba6d3c0fe51fd2271">00078</a>   <span class="keywordtype">double</span>        <a class="code" href="a00328.html#b30f12ecac0aa88ba6d3c0fe51fd2271">WorldPosition</a>[3];
<a name="l00079"></a><a class="code" href="a00328.html#0158dde85a8c3eb2cd4ab7fa7064e6a3">00079</a>   <span class="keywordtype">double</span>        <a class="code" href="a00328.html#0158dde85a8c3eb2cd4ab7fa7064e6a3">WorldOrientation</a>[9];
<a name="l00080"></a><a class="code" href="a00328.html#870e7907b7ac555cf77271ee105f384d">00080</a>   <span class="keywordtype">double</span>        <a class="code" href="a00328.html#870e7907b7ac555cf77271ee105f384d">NormalizedDisplayPosition</a>[2];
<a name="l00081"></a><a class="code" href="a00328.html#010c25405b1d5d796087b0482812f13b">00081</a>   vtkstd::vector&lt;vtkContourRepresentationPoint*&gt; <a class="code" href="a00328.html#010c25405b1d5d796087b0482812f13b">Points</a>;
<a name="l00082"></a>00082 };
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="a00327.html">00084</a> <span class="keyword">class </span><a class="code" href="a00327.html">vtkContourRepresentationInternals</a>
<a name="l00085"></a>00085 {
<a name="l00086"></a>00086 <span class="keyword">public</span>:
<a name="l00087"></a><a class="code" href="a00327.html#097dec6b43b164ef3203075dddf5d402">00087</a>   vtkstd::vector&lt;vtkContourRepresentationNode*&gt; <a class="code" href="a00327.html#097dec6b43b164ef3203075dddf5d402">Nodes</a>;
<a name="l00088"></a>00088 };
<a name="l00089"></a>00089 <span class="comment">//ETX</span>
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="a00326.html">00091</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>
<a name="l00092"></a>00092 {
<a name="l00093"></a>00093   <span class="comment">//BTX  </span>
<a name="l00094"></a><a class="code" href="a00326.html#a1438376e6208ce6d26114c66b4b295c">00094</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a00331.html" title="create a contour with a set of points">vtkContourWidget</a>;
<a name="l00095"></a>00095   <span class="comment">//ETX</span>
<a name="l00096"></a>00096 <span class="keyword">public</span>:
<a name="l00098"></a>00098 
<a name="l00099"></a><a class="code" href="a00326.html#b077969c2b0f1c17489e546d8a76c28d">00099</a>   vtkTypeRevisionMacro(<a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a>,<a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>);
<a name="l00100"></a>00100   <span class="keywordtype">void</span> <a class="code" href="a01877.html#dea6d0138ff965f86cac0a91553ad78f">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00106"></a>00106   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddNodeAtWorldPosition( <span class="keywordtype">double</span> worldPos[3] );
<a name="l00107"></a>00107   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddNodeAtWorldPosition( <span class="keywordtype">double</span> worldPos[3],
<a name="l00108"></a>00108                                       <span class="keywordtype">double</span> worldOrient[9] );
<a name="l00110"></a>00110   
<a name="l00112"></a>00112 
<a name="l00115"></a>00115   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddNodeAtDisplayPosition( <span class="keywordtype">double</span> displayPos[2] );
<a name="l00116"></a>00116   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddNodeAtDisplayPosition( <span class="keywordtype">int</span> displayPos[2] );
<a name="l00117"></a>00117   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddNodeAtDisplayPosition( <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y );
<a name="l00119"></a>00119 
<a name="l00121"></a>00121 
<a name="l00124"></a>00124   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ActivateNode( <span class="keywordtype">double</span> displayPos[2] );
<a name="l00125"></a>00125   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ActivateNode( <span class="keywordtype">int</span> displayPos[2] );
<a name="l00126"></a>00126   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ActivateNode( <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y );
<a name="l00128"></a>00128   
<a name="l00129"></a>00129   <span class="comment">// Descirption:</span>
<a name="l00130"></a>00130   <span class="comment">// Move the active node to a specified world position.</span>
<a name="l00131"></a>00131   <span class="comment">// Will return 0 if there is no active node or the node</span>
<a name="l00132"></a>00132   <span class="comment">// could not be moved to that position. 1 will be returned</span>
<a name="l00133"></a>00133   <span class="comment">// on success.</span>
<a name="l00134"></a>00134   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetActiveNodeToWorldPosition( <span class="keywordtype">double</span> pos[3] );
<a name="l00135"></a>00135   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetActiveNodeToWorldPosition( <span class="keywordtype">double</span> pos[3],
<a name="l00136"></a>00136                                             <span class="keywordtype">double</span> orient[9] );
<a name="l00137"></a>00137   
<a name="l00139"></a>00139 
<a name="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetActiveNodeToDisplayPosition( <span class="keywordtype">double</span> pos[2] );
<a name="l00144"></a>00144   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetActiveNodeToDisplayPosition( <span class="keywordtype">int</span> pos[2] );
<a name="l00145"></a>00145   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetActiveNodeToDisplayPosition( <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y );
<a name="l00147"></a>00147   
<a name="l00150"></a>00150   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetActiveNodeWorldPosition( <span class="keywordtype">double</span> pos[3] );
<a name="l00151"></a>00151   
<a name="l00154"></a>00154   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetActiveNodeWorldOrientation( <span class="keywordtype">double</span> orient[9] );
<a name="l00155"></a>00155   
<a name="l00158"></a>00158   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetActiveNodeDisplayPosition( <span class="keywordtype">double</span> pos[2] );
<a name="l00159"></a>00159 
<a name="l00161"></a>00161   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNumberOfNodes();
<a name="l00162"></a>00162   
<a name="l00165"></a>00165   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNthNodeDisplayPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> pos[2] );
<a name="l00166"></a>00166   
<a name="l00169"></a>00169   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNthNodeWorldPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> pos[3] );
<a name="l00170"></a>00170   
<a name="l00173"></a>00173   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNthNodeWorldOrientation( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> orient[9] );
<a name="l00174"></a>00174   
<a name="l00176"></a>00176 
<a name="l00181"></a>00181   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetNthNodeDisplayPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y );
<a name="l00182"></a>00182   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetNthNodeDisplayPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">int</span> pos[2] );
<a name="l00183"></a>00183   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetNthNodeDisplayPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> pos[2] );
<a name="l00185"></a>00185   
<a name="l00187"></a>00187 
<a name="l00190"></a>00190   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetNthNodeWorldPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> pos[3] );
<a name="l00191"></a>00191   <span class="keyword">virtual</span> <span class="keywordtype">int</span> SetNthNodeWorldPosition( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> pos[3],
<a name="l00192"></a>00192                                        <span class="keywordtype">double</span> orient[9] );
<a name="l00194"></a>00194   
<a name="l00197"></a>00197   <span class="keyword">virtual</span> <span class="keywordtype">int</span>  GetNthNodeSlope( <span class="keywordtype">int</span> idx, <span class="keywordtype">double</span> slope[3] );
<a name="l00198"></a>00198   
<a name="l00199"></a>00199   <span class="comment">// Descirption:</span>
<a name="l00200"></a>00200   <span class="comment">// For a given node n, get the number of intermediate</span>
<a name="l00201"></a>00201   <span class="comment">// points between this node and the node at</span>
<a name="l00202"></a>00202   <span class="comment">// (n+1). If n is the last node and the loop is</span>
<a name="l00203"></a>00203   <span class="comment">// closed, this is the number of intermediate points</span>
<a name="l00204"></a>00204   <span class="comment">// between node n and node 0. 0 is returned if n is</span>
<a name="l00205"></a>00205   <span class="comment">// out of range.</span>
<a name="l00206"></a>00206   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNumberOfIntermediatePoints( <span class="keywordtype">int</span> n );
<a name="l00207"></a>00207   
<a name="l00209"></a>00209 
<a name="l00212"></a>00212   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetIntermediatePointWorldPosition( <span class="keywordtype">int</span> n, 
<a name="l00213"></a>00213                                                  <span class="keywordtype">int</span> idx, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21006fc9b75c5a0835cfad2ef5d44379a0b">point</a>[3] );
<a name="l00215"></a>00215   
<a name="l00217"></a>00217 
<a name="l00220"></a>00220   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddIntermediatePointWorldPosition( <span class="keywordtype">int</span> n, 
<a name="l00221"></a>00221                                                  <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21006fc9b75c5a0835cfad2ef5d44379a0b">point</a>[3] );
<a name="l00223"></a>00223 
<a name="l00226"></a>00226   <span class="keyword">virtual</span> <span class="keywordtype">int</span> DeleteLastNode();
<a name="l00227"></a>00227   
<a name="l00230"></a>00230   <span class="keyword">virtual</span> <span class="keywordtype">int</span> DeleteActiveNode();
<a name="l00231"></a>00231   
<a name="l00233"></a>00233   <span class="keyword">virtual</span> <span class="keywordtype">int</span> DeleteNthNode( <span class="keywordtype">int</span> n );
<a name="l00234"></a>00234 
<a name="l00237"></a>00237   <span class="keyword">virtual</span> <span class="keywordtype">int</span> AddNodeOnContour( <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y );
<a name="l00238"></a>00238   
<a name="l00240"></a>00240 
<a name="l00242"></a>00242   vtkSetClampMacro(PixelTolerance,<span class="keywordtype">int</span>,1,100);
<a name="l00243"></a>00243   vtkGetMacro(PixelTolerance,<span class="keywordtype">int</span>);
<a name="l00245"></a>00245 
<a name="l00247"></a>00247 
<a name="l00249"></a>00249   vtkSetClampMacro(WorldTolerance, <span class="keywordtype">double</span>, 0.0, <a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00250"></a>00250   vtkGetMacro(WorldTolerance, <span class="keywordtype">double</span>);
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 <span class="comment">//BTX -- used to communicate about the state of the representation</span>
<a name="l00254"></a>00254   <span class="keyword">enum</span> {
<a name="l00255"></a><a class="code" href="a00326.html#c00149f17b93d4a34280d1234d20b76806a663b483799ec4144aa839dfae1927">00255</a>     Outside=0,
<a name="l00256"></a><a class="code" href="a00326.html#c00149f17b93d4a34280d1234d20b76814b998b227887e8b816e6cdbb5b8c816">00256</a>     Nearby
<a name="l00257"></a>00257   };
<a name="l00258"></a>00258   
<a name="l00259"></a>00259   <span class="keyword">enum</span> {
<a name="l00260"></a><a class="code" href="a00326.html#4122314039823039053c9dad55029d5a92e0909c286a03aa644b2e12fc68c358">00260</a>     Inactive = 0,
<a name="l00261"></a><a class="code" href="a00326.html#4122314039823039053c9dad55029d5a90523fa59e623e6717fe5bc13796b57e">00261</a>     Translate,
<a name="l00262"></a><a class="code" href="a00326.html#4122314039823039053c9dad55029d5afdc955c23da48271488ed4738a28d0c9">00262</a>     Shift,
<a name="l00263"></a><a class="code" href="a00326.html#4122314039823039053c9dad55029d5a09b7fd7ae87a5a4aee589edae8be56c3">00263</a>     Scale
<a name="l00264"></a>00264   };
<a name="l00265"></a>00265 <span class="comment">//ETX</span>
<a name="l00266"></a>00266 
<a name="l00268"></a>00268 
<a name="l00270"></a>00270   vtkGetMacro( CurrentOperation, <span class="keywordtype">int</span> );
<a name="l00271"></a>00271   vtkSetClampMacro( CurrentOperation, <span class="keywordtype">int</span>, 
<a name="l00272"></a>00272                     <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a92e0909c286a03aa644b2e12fc68c358">vtkContourRepresentation::Inactive</a>,
<a name="l00273"></a>00273                     <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a09b7fd7ae87a5a4aee589edae8be56c3">vtkContourRepresentation::Scale</a> );
<a name="l00274"></a><a class="code" href="a00326.html#305f7891a2c7eebb769e40ddf1db79f8">00274</a>   <span class="keywordtype">void</span> SetCurrentOperationToInactive()
<a name="l00275"></a>00275     { this-&gt;SetCurrentOperation( <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a92e0909c286a03aa644b2e12fc68c358">vtkContourRepresentation::Inactive</a> ); }
<a name="l00276"></a><a class="code" href="a00326.html#2ff47279dbbfee92dadff073291c35a8">00276</a>   <span class="keywordtype">void</span> SetCurrentOperationToTranslate()
<a name="l00277"></a>00277     { this-&gt;SetCurrentOperation( <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a90523fa59e623e6717fe5bc13796b57e">vtkContourRepresentation::Translate</a> ); }
<a name="l00278"></a><a class="code" href="a00326.html#878789259b58360347ce625152c6aa3b">00278</a>   <span class="keywordtype">void</span> SetCurrentOperationToShift()
<a name="l00279"></a>00279     {this-&gt;SetCurrentOperation( <a class="code" href="a00326.html#4122314039823039053c9dad55029d5afdc955c23da48271488ed4738a28d0c9">vtkContourRepresentation::Shift</a> ); }
<a name="l00280"></a><a class="code" href="a00326.html#412d50845edb80afd6dfa37975061a96">00280</a>   <span class="keywordtype">void</span> SetCurrentOperationToScale()
<a name="l00281"></a>00281     {this-&gt;SetCurrentOperation( <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a09b7fd7ae87a5a4aee589edae8be56c3">vtkContourRepresentation::Scale</a> ); }
<a name="l00283"></a>00283 
<a name="l00284"></a>00284   <span class="comment">// Descirption:</span>
<a name="l00285"></a>00285   <span class="comment">// Set / get the Point Placer. The point placer is</span>
<a name="l00286"></a>00286   <span class="comment">// responsible for converting display coordinates into</span>
<a name="l00287"></a>00287   <span class="comment">// world coordinates according to some constraints, and</span>
<a name="l00288"></a>00288   <span class="comment">// for validating world positions.</span>
<a name="l00289"></a>00289   <span class="keywordtype">void</span> SetPointPlacer( <a class="code" href="a01249.html" title="Abstract interface to translate 2D display positions to world coordinates.">vtkPointPlacer</a> * );
<a name="l00290"></a>00290   vtkGetObjectMacro( PointPlacer, <a class="code" href="a01249.html" title="Abstract interface to translate 2D display positions to world coordinates.">vtkPointPlacer</a> );
<a name="l00291"></a>00291   
<a name="l00293"></a>00293 
<a name="l00295"></a>00295   <span class="keywordtype">void</span> SetLineInterpolator( <a class="code" href="a00325.html" title="Defines API for interpolating/modifying nodes from a vtkContourRepresentation.">vtkContourLineInterpolator</a> *);
<a name="l00296"></a>00296   vtkGetObjectMacro( LineInterpolator, <a class="code" href="a00325.html" title="Defines API for interpolating/modifying nodes from a vtkContourRepresentation.">vtkContourLineInterpolator</a> );
<a name="l00298"></a>00298   
<a name="l00300"></a>00300 
<a name="l00301"></a>00301   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a7dfbf5a2b39487c072266e0e1520ec7">BuildRepresentation</a>()=0;
<a name="l00302"></a>00302   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#b0aeed71d0331ae3e5c6472572f3900b">ComputeInteractionState</a>(<span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y, <span class="keywordtype">int</span> modified=0)=0;
<a name="l00303"></a>00303   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#9aece0d7ff74c1fcfd5f427088cab77b">StartWidgetInteraction</a>(<span class="keywordtype">double</span> e[2])=0;
<a name="l00304"></a>00304   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#73adbf84d1745e1393eda384a5f31d52">WidgetInteraction</a>(<span class="keywordtype">double</span> e[2])=0;
<a name="l00306"></a>00306 
<a name="l00308"></a>00308 
<a name="l00309"></a>00309   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#a5428644337fcf61013390e6d619ff9f">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *w)=0;
<a name="l00310"></a>00310   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#01e90cbe6f75838c27c1d1c0c5e37521">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport)=0;
<a name="l00311"></a>00311   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#5db136973bcd6232d212eeb1afcd0354">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport)=0;
<a name="l00312"></a>00312   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#72c591ce53e9320977850735a4057870">RenderTranslucentPolygonalGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport)=0;
<a name="l00313"></a>00313   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#8b7761451b47996f96aacab32882ca25">HasTranslucentPolygonalGeometry</a>()=0;
<a name="l00315"></a>00315   
<a name="l00317"></a>00317 
<a name="l00319"></a>00319   <span class="keywordtype">void</span> SetClosedLoop( <span class="keywordtype">int</span> val );
<a name="l00320"></a>00320   vtkGetMacro( ClosedLoop, <span class="keywordtype">int</span> );
<a name="l00321"></a>00321   vtkBooleanMacro( ClosedLoop, <span class="keywordtype">int</span> );
<a name="l00323"></a>00323   
<a name="l00325"></a>00325 
<a name="l00326"></a>00326   <span class="keyword">virtual</span> <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>* GetContourRepresentationAsPolyData() = 0;
<a name="l00327"></a>00327   <span class="comment">//ETX</span>
<a name="l00329"></a>00329 <span class="comment"></span>
<a name="l00332"></a>00332   <span class="keywordtype">void</span> GetNodePolyData( <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>* poly );
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 <span class="keyword">protected</span>:
<a name="l00335"></a>00335   <a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a>();
<a name="l00336"></a>00336   ~<a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a>();
<a name="l00337"></a>00337   
<a name="l00338"></a>00338   <span class="comment">// Selection tolerance for the handles</span>
<a name="l00339"></a><a class="code" href="a00326.html#2e58a3aa6f042f9af56cbee180fa547f">00339</a>   <span class="keywordtype">int</span>    PixelTolerance;
<a name="l00340"></a><a class="code" href="a00326.html#7f4b20905f0a40a852a15332e15afe47">00340</a>   <span class="keywordtype">double</span> WorldTolerance;
<a name="l00341"></a>00341 
<a name="l00342"></a><a class="code" href="a00326.html#c8c641f94d48b7c63035716aa4adf684">00342</a>   <a class="code" href="a01249.html" title="Abstract interface to translate 2D display positions to world coordinates.">vtkPointPlacer</a>             *PointPlacer;
<a name="l00343"></a><a class="code" href="a00326.html#f8ba6c76725183a091310ba9415e6f92">00343</a>   <a class="code" href="a00325.html" title="Defines API for interpolating/modifying nodes from a vtkContourRepresentation.">vtkContourLineInterpolator</a> *LineInterpolator;
<a name="l00344"></a>00344   
<a name="l00345"></a><a class="code" href="a00326.html#ed0071ff67b3c0e818bbef844d94764a">00345</a>   <span class="keywordtype">int</span> ActiveNode;
<a name="l00346"></a>00346   
<a name="l00347"></a><a class="code" href="a00326.html#ed06666aa410408a777c4025ace131d4">00347</a>   <span class="keywordtype">int</span> CurrentOperation;
<a name="l00348"></a><a class="code" href="a00326.html#764df8da7cbe2eb88f2410aeed1523ad">00348</a>   <span class="keywordtype">int</span> ClosedLoop;
<a name="l00349"></a>00349   
<a name="l00350"></a><a class="code" href="a00326.html#1dc627dd02bb6afbdd71afd1b1cfff79">00350</a>   <a class="code" href="a00327.html">vtkContourRepresentationInternals</a> *Internal;
<a name="l00351"></a>00351 
<a name="l00352"></a>00352   <span class="keywordtype">void</span> AddNodeAtPositionInternal( <span class="keywordtype">double</span> worldPos[3],
<a name="l00353"></a>00353                                   <span class="keywordtype">double</span> worldOrient[9], <span class="keywordtype">int</span> displayPos[2] );
<a name="l00354"></a>00354   <span class="keywordtype">void</span> AddNodeAtPositionInternal( <span class="keywordtype">double</span> worldPos[3],
<a name="l00355"></a>00355                                   <span class="keywordtype">double</span> worldOrient[9], <span class="keywordtype">double</span> displayPos[2] );
<a name="l00356"></a>00356   <span class="keywordtype">void</span> SetNthNodeWorldPositionInternal( <span class="keywordtype">int</span> n, <span class="keywordtype">double</span> worldPos[3],
<a name="l00357"></a>00357                                         <span class="keywordtype">double</span> worldOrient[9] );
<a name="l00358"></a>00358 
<a name="l00360"></a>00360 
<a name="l00362"></a>00362   <span class="keywordtype">void</span> GetRendererComputedDisplayPositionFromWorldPosition( <span class="keywordtype">double</span> worldPos[3],
<a name="l00363"></a>00363                                     <span class="keywordtype">double</span> worldOrient[9], <span class="keywordtype">int</span> displayPos[2] );
<a name="l00364"></a>00364   <span class="keywordtype">void</span> GetRendererComputedDisplayPositionFromWorldPosition( <span class="keywordtype">double</span> worldPos[3],
<a name="l00365"></a>00365                                     <span class="keywordtype">double</span> worldOrient[9], <span class="keywordtype">double</span> displayPos[2] );
<a name="l00367"></a>00367   
<a name="l00368"></a>00368   <span class="keywordtype">void</span> UpdateLines( <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a> );
<a name="l00369"></a>00369   <span class="keywordtype">void</span> UpdateLine( <span class="keywordtype">int</span> idx1, <span class="keywordtype">int</span> idx2 );
<a name="l00370"></a>00370 
<a name="l00371"></a>00371   <span class="keyword">virtual</span> <span class="keywordtype">int</span> FindClosestPointOnContour( <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y, 
<a name="l00372"></a>00372                                  <span class="keywordtype">double</span> worldPos[3],
<a name="l00373"></a>00373                                  <span class="keywordtype">int</span> *idx );
<a name="l00374"></a>00374   
<a name="l00375"></a>00375   <span class="keyword">virtual</span> <span class="keywordtype">void</span> BuildLines()=0;
<a name="l00376"></a>00376 
<a name="l00377"></a>00377   <span class="comment">// This method is called when something changes in the point</span>
<a name="l00378"></a>00378   <span class="comment">// placer. It will cause all points to</span>
<a name="l00379"></a>00379   <span class="comment">// be updates, and all lines to be regenerated.</span>
<a name="l00380"></a>00380   <span class="comment">// Should be extended to detect changes in the line interpolator</span>
<a name="l00381"></a>00381   <span class="comment">// too.</span>
<a name="l00382"></a>00382   <span class="keyword">virtual</span> <span class="keywordtype">int</span>  UpdateContour();
<a name="l00383"></a><a class="code" href="a00326.html#4eeaa9cbe388b6886e29496fa6756a96">00383</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> ContourBuildTime;
<a name="l00384"></a>00384   
<a name="l00385"></a><a class="code" href="a00326.html#d28d654dcc17b58498063de0284840a4">00385</a>   <span class="keywordtype">void</span> ComputeMidpoint( <span class="keywordtype">double</span> p1[3], <span class="keywordtype">double</span> p2[3], <span class="keywordtype">double</span> mid[3] )
<a name="l00386"></a>00386     {
<a name="l00387"></a>00387       mid[0] = (p1[0] + p2[0])/2;
<a name="l00388"></a>00388       mid[1] = (p1[1] + p2[1])/2;
<a name="l00389"></a>00389       mid[2] = (p1[2] + p2[2])/2;
<a name="l00390"></a>00390     }
<a name="l00391"></a>00391 
<a name="l00398"></a>00398   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00331.html#9f7264d41153f04d36bba895b1f61045">Initialize</a>( <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> * );
<a name="l00399"></a>00399 
<a name="l00400"></a>00400 <span class="keyword">private</span>:
<a name="l00401"></a>00401   <a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00402"></a>00402   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00326.html" title="represent the vtkContourWidget">vtkContourRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00403"></a>00403 };
<a name="l00404"></a>00404 
<a name="l00405"></a>00405 <span class="preprocessor">#endif</span>
<a name="l00406"></a>00406 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:53 2009 for VTK by&nbsp;
<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>