Sophie

Sophie

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

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/vtkOrientedGlyphFocalPlaneContourRepresentation.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/vtkOrientedGlyphFocalPlaneContourRepresentation.h</h1><a href="a03710.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: vtkOrientedGlyphFocalPlaneContourRepresentation.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 __vtkOrientedGlyphFocalPlaneContourRepresentation_h</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define __vtkOrientedGlyphFocalPlaneContourRepresentation_h</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="a03690.html">vtkFocalPlaneContourRepresentation.h</a>"</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>;
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>;
<a name="l00038"></a>00038 <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="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a00650.html" title="copy oriented and scaled glyph geometry to every input point (2D specialization)">vtkGlyph2D</a>;
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00041"></a>00041 <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="l00042"></a>00042 
<a name="l00043"></a><a class="code" href="a01132.html">00043</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a> : 
<a name="l00044"></a>00044   <span class="keyword">public</span> <a class="code" href="a00559.html" title="represent a contour drawn on the focal plane.">vtkFocalPlaneContourRepresentation</a>
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046 <span class="keyword">public</span>:
<a name="l00048"></a>00048   <span class="keyword">static</span> <a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00049"></a>00049 
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   vtkTypeRevisionMacro(<a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a>,
<a name="l00053"></a><a class="code" href="a01132.html#37f3676f53826d25a5bb815e9cc9d878">00053</a>                                     <a class="code" href="a00559.html" title="represent a contour drawn on the focal plane.">vtkFocalPlaneContourRepresentation</a>);
<a name="l00054"></a>00054   <span class="keywordtype">void</span> <a class="code" href="a00559.html#b62c2c8d73097e6cd01a9abc8015a0c2">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00056"></a>00056 
<a name="l00058"></a>00058 
<a name="l00061"></a>00061   <span class="keywordtype">void</span> SetCursorShape(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *cursorShape);
<a name="l00062"></a>00062   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetCursorShape();
<a name="l00064"></a>00064 
<a name="l00066"></a>00066 
<a name="l00069"></a>00069   <span class="keywordtype">void</span> SetActiveCursorShape(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *activeShape);
<a name="l00070"></a>00070   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *GetActiveCursorShape();
<a name="l00072"></a>00072 
<a name="l00074"></a>00074 
<a name="l00076"></a>00076   vtkGetObjectMacro(Property,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>);
<a name="l00078"></a>00078   
<a name="l00080"></a>00080 
<a name="l00082"></a>00082   vtkGetObjectMacro(ActiveProperty,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>);
<a name="l00084"></a>00084   
<a name="l00086"></a>00086 
<a name="l00087"></a>00087   vtkGetObjectMacro(LinesProperty,<a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a>);
<a name="l00089"></a>00089   
<a name="l00091"></a>00091 
<a name="l00094"></a>00094   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#5154e053614a4f996c64e522abb6cbb8">SetRenderer</a>(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *ren);
<a name="l00095"></a>00095   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00326.html#cb99eaa18e575ce43f7f20f98d65f560">BuildRepresentation</a>();
<a name="l00096"></a>00096   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00326.html#40212bc0a750dbe518d062083cc9f6ad">StartWidgetInteraction</a>(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00097"></a>00097   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00326.html#6c58d9c10ea0f0766b60d5e9213d1828">WidgetInteraction</a>(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00098"></a>00098   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00326.html#da189f6741a77688d2f6872fa68fc3f8">ComputeInteractionState</a>(<span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y, <span class="keywordtype">int</span> modified=0);
<a name="l00100"></a>00100 
<a name="l00102"></a>00102 
<a name="l00103"></a>00103   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01877.html#deb781ee0b2e05240de3b1d099346714">GetActors2D</a>(<a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> *);
<a name="l00104"></a>00104   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00326.html#ad21d10025a89686bcb57a6bf957303c">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *);
<a name="l00105"></a>00105   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00326.html#c7743313ecea02ba695c32668eff36d8">RenderOverlay</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport);
<a name="l00106"></a>00106   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00326.html#6c25a235a40083302cdc8faa6ca0541f">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport);
<a name="l00107"></a>00107   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00326.html#611376cd9b24fc2065ca7208615dfa66">RenderTranslucentPolygonalGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport);
<a name="l00108"></a>00108   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00326.html#3c15e3614b3f64e3045442d39f5b1969">HasTranslucentPolygonalGeometry</a>();
<a name="l00110"></a>00110   
<a name="l00112"></a>00112   <span class="keyword">virtual</span> <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> * <a class="code" href="a00326.html#5a76e91fd4771f14799390d78001f35c">GetContourRepresentationAsPolyData</a>();
<a name="l00113"></a>00113   
<a name="l00119"></a>00119   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>   *GetContourPlaneDirectionCosines(<span class="keyword">const</span> <span class="keywordtype">double</span> origin[3]);
<a name="l00120"></a>00120  
<a name="l00121"></a>00121 <span class="keyword">protected</span>:
<a name="l00122"></a>00122   <a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a>();
<a name="l00123"></a>00123   ~<a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a>();
<a name="l00124"></a>00124 
<a name="l00125"></a>00125   <span class="comment">// Render the cursor</span>
<a name="l00126"></a><a class="code" href="a01132.html#4a94e5fbfc517828bb9465ef800ff1d4">00126</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>           *Actor;
<a name="l00127"></a><a class="code" href="a01132.html#96b6528a490303aed297a592c52ff0da">00127</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>  *Mapper;
<a name="l00128"></a><a class="code" href="a01132.html#c8412b2428ebe00788c582a7230b52ab">00128</a>   <a class="code" href="a00650.html" title="copy oriented and scaled glyph geometry to every input point (2D specialization)">vtkGlyph2D</a>           *Glypher;
<a name="l00129"></a><a class="code" href="a01132.html#927fec0c90e2b14fca8e656b939a3746">00129</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>           *ActiveActor;
<a name="l00130"></a><a class="code" href="a01132.html#dab2f44076465d452a8085e245feec24">00130</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>  *ActiveMapper;
<a name="l00131"></a><a class="code" href="a01132.html#e07158c92a7fbfffd56f9d057f722011">00131</a>   <a class="code" href="a00650.html" title="copy oriented and scaled glyph geometry to every input point (2D specialization)">vtkGlyph2D</a>           *ActiveGlypher;
<a name="l00132"></a><a class="code" href="a01132.html#5775537b4d53e122d00c6897db30f1b5">00132</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *CursorShape;
<a name="l00133"></a><a class="code" href="a01132.html#1464a3b7a1063ae1fe390d871cf31c04">00133</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *ActiveCursorShape;
<a name="l00134"></a><a class="code" href="a01132.html#9a896a03d34c6f3a80e58d5e422eb435">00134</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *FocalData;
<a name="l00135"></a><a class="code" href="a01132.html#d705522fe5330f29c79db4e725af5b6b">00135</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>            *FocalPoint;
<a name="l00136"></a><a class="code" href="a01132.html#e35e713e51221b9f455d88990a467e91">00136</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *ActiveFocalData;
<a name="l00137"></a><a class="code" href="a01132.html#008e16740ce2bbdfaa726c70faad80cb">00137</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>            *ActiveFocalPoint;
<a name="l00138"></a>00138 
<a name="l00139"></a>00139   <span class="comment">// The polydata represents the contour in display co-ordinates.</span>
<a name="l00140"></a><a class="code" href="a01132.html#78910ef3cc7cce3e0e9e745884c51539">00140</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *Lines;
<a name="l00141"></a><a class="code" href="a01132.html#2db6c85d9320826d6b076e357d90115e">00141</a>   <a class="code" href="a01266.html" title="draw vtkPolyData onto the image plane">vtkPolyDataMapper2D</a>  *LinesMapper;
<a name="l00142"></a><a class="code" href="a01132.html#196bab546464b67f217fa1965b201938">00142</a>   <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>           *LinesActor;
<a name="l00143"></a>00143 
<a name="l00144"></a>00144   <span class="comment">// The polydata represents the contour in world coordinates. It is updated</span>
<a name="l00145"></a>00145   <span class="comment">// (kept in sync with Lines) every time the GetContourRepresentationAsPolyData() </span>
<a name="l00146"></a>00146   <span class="comment">// method is called. </span>
<a name="l00147"></a><a class="code" href="a01132.html#f7fd3fb12346f0b1164c2ee1ae097262">00147</a>   <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>          *LinesWorldCoordinates;
<a name="l00148"></a>00148 
<a name="l00149"></a>00149   <span class="comment">// Support picking</span>
<a name="l00150"></a><a class="code" href="a01132.html#c19ba68a9007995889f104ece82f2b7a">00150</a>   <span class="keywordtype">double</span> LastPickPosition[3];
<a name="l00151"></a><a class="code" href="a01132.html#441ab7ec03dc98b08cfcf7192449f4d6">00151</a>   <span class="keywordtype">double</span> LastEventPosition[2];
<a name="l00152"></a>00152   
<a name="l00153"></a>00153   <span class="comment">// Methods to manipulate the cursor</span>
<a name="l00154"></a>00154   <span class="keywordtype">void</span> <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a90523fa59e623e6717fe5bc13796b57e">Translate</a>(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00155"></a>00155   <span class="keywordtype">void</span> <a class="code" href="a00326.html#4122314039823039053c9dad55029d5a09b7fd7ae87a5a4aee589edae8be56c3">Scale</a>(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00156"></a>00156   <span class="keywordtype">void</span> ShiftContour(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00157"></a>00157   <span class="keywordtype">void</span> ScaleContour(<span class="keywordtype">double</span> eventPos[2]);
<a name="l00158"></a>00158 
<a name="l00159"></a>00159   <span class="keywordtype">void</span> ComputeCentroid(<span class="keywordtype">double</span>* ioCentroid);
<a name="l00160"></a>00160 
<a name="l00161"></a>00161   <span class="comment">// Properties used to control the appearance of selected objects and</span>
<a name="l00162"></a>00162   <span class="comment">// the manipulator in general.</span>
<a name="l00163"></a><a class="code" href="a01132.html#2e2830886feb21ae339397af3ec9d3dd">00163</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *Property;
<a name="l00164"></a><a class="code" href="a01132.html#68ac78ca96c35a3e513965dd2dcefe95">00164</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *ActiveProperty;
<a name="l00165"></a><a class="code" href="a01132.html#5a230db0e74b4fb86cd10452396ecc7c">00165</a>   <a class="code" href="a01323.html" title="represent surface properties of a 2D image">vtkProperty2D</a> *LinesProperty;
<a name="l00166"></a>00166 
<a name="l00167"></a><a class="code" href="a01132.html#53833a261729d9882f9f915eb10579e1">00167</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>  *ContourPlaneDirectionCosines;
<a name="l00168"></a>00168 
<a name="l00169"></a>00169   <span class="keywordtype">void</span>           CreateDefaultProperties();
<a name="l00170"></a>00170   
<a name="l00171"></a>00171   
<a name="l00172"></a>00172   <span class="comment">// Distance between where the mouse event happens and where the</span>
<a name="l00173"></a>00173   <span class="comment">// widget is focused - maintain this distance during interaction.</span>
<a name="l00174"></a><a class="code" href="a01132.html#c942e9452327f2b55eadf22a134e4d09">00174</a>   <span class="keywordtype">double</span> InteractionOffset[2];
<a name="l00175"></a>00175 
<a name="l00176"></a>00176   <span class="keywordtype">void</span> <a class="code" href="a00326.html#d374dd31d0d59df22cd808d0af6a0850">BuildLines</a>();
<a name="l00177"></a>00177   
<a name="l00178"></a>00178 <span class="keyword">private</span>:
<a name="l00179"></a>00179   <a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00180"></a>00180   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01132.html" title="Contours constrained to a focal plane.">vtkOrientedGlyphFocalPlaneContourRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00181"></a>00181 };
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:54 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>