<!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/vtkDistanceRepresentation2D.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/Widgets/vtkDistanceRepresentation2D.h</h1><a href="a03686.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: vtkDistanceRepresentation2D.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="l00030"></a>00030 <span class="preprocessor">#ifndef __vtkDistanceRepresentation2D_h</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define __vtkDistanceRepresentation2D_h</span> <a name="l00032"></a>00032 <span class="preprocessor"></span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="a03685.html">vtkDistanceRepresentation.h</a>"</span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a>; <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>; <a name="l00037"></a>00037 <a name="l00038"></a>00038 <a name="l00039"></a><a class="code" href="a00429.html">00039</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a> : <span class="keyword">public</span> <a class="code" href="a00428.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation</a> <a name="l00040"></a>00040 { <a name="l00041"></a>00041 <span class="keyword">public</span>: <a name="l00043"></a>00043 <span class="keyword">static</span> <a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00044"></a>00044 <a name="l00046"></a>00046 <a name="l00047"></a><a class="code" href="a00429.html#ffac18fce394c249816f09d95f7f0e8d">00047</a> vtkTypeRevisionMacro(<a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a>,<a class="code" href="a00428.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation</a>); <a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="a00428.html#e2a14db21cec52624aa438de16b40f08">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00050"></a>00050 <a name="l00052"></a>00052 <a name="l00053"></a><a class="code" href="a00429.html#3bbe720135d832c6d9e6127041939d74">00053</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="a00428.html#6cf981bbd10bc0f5be01e0133d37961b">GetDistance</a>() <a name="l00054"></a>00054 {<span class="keywordflow">return</span> this->Distance;} <a name="l00056"></a>00056 <a name="l00058"></a>00058 <a name="l00061"></a>00061 <span class="keywordtype">double</span>* <a class="code" href="a00428.html#8807cf4497dd3b212bded251183be1ba">GetPoint1WorldPosition</a>(); <a name="l00062"></a>00062 <span class="keywordtype">double</span>* <a class="code" href="a00428.html#e1df58619db75ff49ad10846350d4de3">GetPoint2WorldPosition</a>(); <a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="a00428.html#8807cf4497dd3b212bded251183be1ba">GetPoint1WorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="a00428.html#e1df58619db75ff49ad10846350d4de3">GetPoint2WorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="a00428.html#98438f658de88b4028010f429ecac2f9">SetPoint1WorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="a00428.html#c55b0c365a15a97d5ec21dbf01e40eb0">SetPoint2WorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="a00428.html#fb8543f4ea164203a6c2ffad91174918">SetPoint1DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="a00428.html#ce806413d5b1abc92411fb55d0035fa5">SetPoint2DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00071"></a>00071 <span class="keywordtype">void</span> <a class="code" href="a00428.html#884ee042c61915bf473bb4439bcf25b7">GetPoint1DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00072"></a>00072 <span class="keywordtype">void</span> <a class="code" href="a00428.html#85dfa2df37c606bc27583d22309c4382">GetPoint2DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00073"></a>00073 <a name="l00076"></a>00076 <a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a> *GetAxis(); <a name="l00077"></a>00077 <a name="l00079"></a>00079 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00428.html#69d6bdfaedd42e76151e1974568a86e3">BuildRepresentation</a>(); <a name="l00080"></a>00080 <a name="l00082"></a>00082 <a name="l00083"></a>00083 <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); <a name="l00084"></a>00084 <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); <a name="l00085"></a>00085 <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); <a name="l00087"></a>00087 <a name="l00088"></a>00088 <span class="keyword">protected</span>: <a name="l00089"></a>00089 <a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a>(); <a name="l00090"></a>00090 ~<a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a>(); <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="comment">// Add a line to the mix</span> <a name="l00093"></a><a class="code" href="a00429.html#715f3086409bef95dfef7ec61fd04de8">00093</a> <a class="code" href="a00155.html" title="Create an axis with tick marks and labels.">vtkAxisActor2D</a> *AxisActor; <a name="l00094"></a><a class="code" href="a00429.html#49b859b29a7c7a4a2ae945016962dfdc">00094</a> <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *AxisProperty; <a name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="comment">// The distance between the two points</span> <a name="l00097"></a><a class="code" href="a00429.html#4900712d8b5fa089af018e6fe125ae01">00097</a> <span class="keywordtype">double</span> Distance; <a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="keyword">private</span>: <a name="l00100"></a>00100 <a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a>(<span class="keyword">const</span> <a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a>&); <span class="comment">//Not implemented</span> <a name="l00101"></a>00101 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00429.html" title="represent the vtkDistanceWidget">vtkDistanceRepresentation2D</a>&); <span class="comment">//Not implemented</span> <a name="l00102"></a>00102 }; <a name="l00103"></a>00103 <a name="l00104"></a>00104 <span class="preprocessor">#endif</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 <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>