<!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/vtkAngleRepresentation3D.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/vtkAngleRepresentation3D.h</h1><a href="a03656.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: vtkAngleRepresentation3D.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="l00033"></a>00033 <span class="preprocessor">#ifndef __vtkAngleRepresentation3D_h</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __vtkAngleRepresentation3D_h</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="a03654.html">vtkAngleRepresentation.h</a>"</span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>; <a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>; <a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>; <a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a>; <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a00120.html" title="create an arc between two end points">vtkArcSource</a>; <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00561.html" title="a subclass of actor that always faces the camera">vtkFollower</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01819.html" title="create polygonal text">vtkVectorText</a>; <a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>; <a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01692.html" title="represent text properties.">vtkTextProperty</a>; <a name="l00047"></a>00047 <a name="l00048"></a><a class="code" href="a00107.html">00048</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a> : <span class="keyword">public</span> <a class="code" href="a00105.html" title="represent the vtkAngleWidget">vtkAngleRepresentation</a> <a name="l00049"></a>00049 { <a name="l00050"></a>00050 <span class="keyword">public</span>: <a name="l00052"></a>00052 <span class="keyword">static</span> <a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00053"></a>00053 <a name="l00055"></a>00055 <a name="l00056"></a><a class="code" href="a00107.html#c8b66297941a628e9c9b5e8ea06b1494">00056</a> vtkTypeRevisionMacro(<a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a>,<a class="code" href="a00105.html" title="represent the vtkAngleWidget">vtkAngleRepresentation</a>); <a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="a00105.html#c65878744293fefa741f416b88b2d805">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00059"></a>00059 <a name="l00061"></a>00061 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="a00105.html#1f94b86331a9f731734981100ccfefb1">GetAngle</a>(); <a name="l00062"></a>00062 <a name="l00064"></a>00064 <a name="l00067"></a>00067 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#faafd55b0051cd57f3899082179b3f5b">GetPoint1WorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#e22ecaaf525349ccd571e9b977c0f4a4">GetCenterWorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#5023ba1772729f52a05c50f65e132ff9">GetPoint2WorldPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00070"></a>00070 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint1WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00071"></a>00071 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#cffbe50f8173ac5cef95ca43b3791d16">SetPoint1DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00072"></a>00072 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetCenterWorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00073"></a>00073 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#7aff6dee0f248395453262e1c150bc47">SetCenterDisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00074"></a>00074 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPoint2WorldPosition(<span class="keywordtype">double</span> pos[3]); <a name="l00075"></a>00075 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#f2b9fc59bf229c75c9a3b84e37271aee">SetPoint2DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00076"></a>00076 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#6aa82966da2acc0157e8fe3f3f7acb06">GetPoint1DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00077"></a>00077 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#6930a64c2a8c87abbc698c6eb9c43a9e">GetCenterDisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00078"></a>00078 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00105.html#616cfe295e3f6750df6b833f2460f210">GetPoint2DisplayPosition</a>(<span class="keywordtype">double</span> pos[3]); <a name="l00080"></a>00080 <a name="l00082"></a>00082 <a name="l00085"></a>00085 vtkGetObjectMacro(Ray1,<a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>); <a name="l00086"></a>00086 vtkGetObjectMacro(Ray2,<a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>); <a name="l00087"></a>00087 <span class="comment">//vtkGetObjectMacro(Arc,vtkActor);</span> <a name="l00089"></a>00089 <span class="comment"></span> <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTextActorScale( <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210733bd1e54b6acd59b06105c91204401e">scale</a>[3] ); <a name="l00093"></a>00093 <span class="keyword">virtual</span> <span class="keywordtype">double</span> * GetTextActorScale(); <a name="l00095"></a>00095 <a name="l00097"></a>00097 <span class="keywordtype">void</span> <a class="code" href="a00105.html#e7b4d82f7e71c2bc0e430337b689a678">BuildRepresentation</a>(); <a name="l00098"></a>00098 <a name="l00100"></a>00100 <a name="l00101"></a>00101 <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="l00102"></a>00102 <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>*); <a name="l00103"></a>00103 <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>*); <a name="l00104"></a>00104 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01877.html#8b7761451b47996f96aacab32882ca25">HasTranslucentPolygonalGeometry</a>(); <a name="l00106"></a>00106 <a name="l00107"></a>00107 <span class="keyword">protected</span>: <a name="l00108"></a>00108 <a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a>(); <a name="l00109"></a>00109 ~<a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a>(); <a name="l00110"></a>00110 <a name="l00111"></a>00111 <span class="comment">// The pieces that make up the angle representations</span> <a name="l00112"></a><a class="code" href="a00107.html#de49cc83888c9a4a348b480e88e49d71">00112</a> <a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a> *Line1Source; <a name="l00113"></a><a class="code" href="a00107.html#af396d8422036b8b5db9ae36eca92954">00113</a> <a class="code" href="a00966.html" title="create a line defined by two end points">vtkLineSource</a> *Line2Source; <a name="l00114"></a><a class="code" href="a00107.html#51b5bcd6e6206700223caa983cf33bcb">00114</a> <a class="code" href="a00120.html" title="create an arc between two end points">vtkArcSource</a> *ArcSource; <a name="l00115"></a><a class="code" href="a00107.html#592f1728e9b5caaa12bef50745956646">00115</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *Line1Mapper; <a name="l00116"></a><a class="code" href="a00107.html#fa03aff6f455d282000144b6fa11bd2d">00116</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *Line2Mapper; <a name="l00117"></a><a class="code" href="a00107.html#db4ca03d7204c7a2c11817d957519ad3">00117</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *ArcMapper; <a name="l00118"></a><a class="code" href="a00107.html#a4ff8ce25e0ec0377db876ddd0eeb074">00118</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *Ray1; <a name="l00119"></a><a class="code" href="a00107.html#8f6d69517976d713e361c0569b9b6469">00119</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *Ray2; <a name="l00120"></a><a class="code" href="a00107.html#4069bd2db6501b6b689ee678cb53787b">00120</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *Arc; <a name="l00121"></a><a class="code" href="a00107.html#b6107b1f00e910f88007d92f2dfb13f7">00121</a> <a class="code" href="a00561.html" title="a subclass of actor that always faces the camera">vtkFollower</a> *TextActor; <a name="l00122"></a><a class="code" href="a00107.html#8449964344ee03d8c3ef9903908170c2">00122</a> <a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a> *TextMapper; <a name="l00123"></a><a class="code" href="a00107.html#9a52d5edba001ad00a3de5ef726a5572">00123</a> <a class="code" href="a01819.html" title="create polygonal text">vtkVectorText</a> *TextInput; <a name="l00124"></a><a class="code" href="a00107.html#b9e5dfefe181620859a3755625192e90">00124</a> <span class="keywordtype">double</span> Angle; <a name="l00125"></a><a class="code" href="a00107.html#fc6a934c0fb33f810e75b533915920af">00125</a> <span class="keywordtype">bool</span> ScaleInitialized; <a name="l00126"></a><a class="code" href="a00107.html#a7a91e6ff32acc129f534571f48a5dd6">00126</a> <span class="keywordtype">double</span> TextPosition[3]; <a name="l00127"></a>00127 <a name="l00128"></a>00128 <span class="keyword">private</span>: <a name="l00129"></a>00129 <a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a>(<span class="keyword">const</span> <a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a>&); <span class="comment">//Not implemented</span> <a name="l00130"></a>00130 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00107.html" title="represent the vtkAngleWidget">vtkAngleRepresentation3D</a>&); <span class="comment">//Not implemented</span> <a name="l00131"></a>00131 }; <a name="l00132"></a>00132 <a name="l00133"></a>00133 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:52 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>