Sophie

Sophie

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

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/Filtering/vtkCoordinate.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/Filtering/vtkCoordinate.h</h1><a href="a02219.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: vtkCoordinate.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="l00051"></a>00051 <span class="preprocessor">#ifndef __vtkCoordinate_h</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define __vtkCoordinate_h</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a>00054 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>;
<a name="l00056"></a>00056 
<a name="l00057"></a><a class="code" href="a02219.html#1da593dfcaccada1210d3cf5ab40e635">00057</a> <span class="preprocessor">#define VTK_DISPLAY             0</span>
<a name="l00058"></a><a class="code" href="a02219.html#b3ccb74bf698f848a10e22466038fd70">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_NORMALIZED_DISPLAY  1</span>
<a name="l00059"></a><a class="code" href="a02219.html#a929ece08a3fc7f5640e97d6712ae977">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_VIEWPORT            2</span>
<a name="l00060"></a><a class="code" href="a02219.html#970704125d87602e4c9017873efe0273">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_NORMALIZED_VIEWPORT 3</span>
<a name="l00061"></a><a class="code" href="a02219.html#555905d15186c1361b55a5c67d993422">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_VIEW                4</span>
<a name="l00062"></a><a class="code" href="a02219.html#37f930b3e973edb18f19832a2205b375">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_WORLD               5</span>
<a name="l00063"></a><a class="code" href="a02219.html#5c5eb4612686a54d3a1523ca4174639b">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_USERDEFINED         6</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>
<a name="l00065"></a><a class="code" href="a00335.html">00065</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00066"></a>00066 {
<a name="l00067"></a>00067 <span class="keyword">public</span>:
<a name="l00068"></a><a class="code" href="a00335.html#aceaf08fa613294896b6888a421a5aa4">00068</a>   vtkTypeRevisionMacro(<a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00069"></a>00069   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00070"></a>00070 
<a name="l00073"></a>00073   <span class="keyword">static</span> <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00074"></a>00074 
<a name="l00076"></a>00076 
<a name="l00079"></a>00079   vtkSetMacro(CoordinateSystem, <span class="keywordtype">int</span>);
<a name="l00080"></a>00080   vtkGetMacro(CoordinateSystem, <span class="keywordtype">int</span>);
<a name="l00081"></a><a class="code" href="a00335.html#741801591f6612dcb25a6e441b0a32a0">00081</a>   <span class="keywordtype">void</span> SetCoordinateSystemToDisplay() {this-&gt;SetCoordinateSystem(<a class="code" href="a02219.html#1da593dfcaccada1210d3cf5ab40e635">VTK_DISPLAY</a>);}
<a name="l00082"></a><a class="code" href="a00335.html#f8ed04610f739894e74a41abf8dad106">00082</a>   <span class="keywordtype">void</span> SetCoordinateSystemToNormalizedDisplay() 
<a name="l00083"></a>00083         {this-&gt;SetCoordinateSystem(<a class="code" href="a02219.html#b3ccb74bf698f848a10e22466038fd70">VTK_NORMALIZED_DISPLAY</a>);}
<a name="l00084"></a><a class="code" href="a00335.html#bf2862d32c8a9d13935f494e7a7d3931">00084</a>   <span class="keywordtype">void</span> SetCoordinateSystemToViewport() 
<a name="l00085"></a>00085         {this-&gt;SetCoordinateSystem(<a class="code" href="a02219.html#a929ece08a3fc7f5640e97d6712ae977">VTK_VIEWPORT</a>);}
<a name="l00086"></a><a class="code" href="a00335.html#6ddc3e88455abf99027463cbe7c2b7b1">00086</a>   <span class="keywordtype">void</span> SetCoordinateSystemToNormalizedViewport() 
<a name="l00087"></a>00087         {this-&gt;SetCoordinateSystem(<a class="code" href="a02219.html#970704125d87602e4c9017873efe0273">VTK_NORMALIZED_VIEWPORT</a>);}
<a name="l00088"></a><a class="code" href="a00335.html#e255d059de7854557f25df7273fa39ba">00088</a>   <span class="keywordtype">void</span> SetCoordinateSystemToView() {this-&gt;SetCoordinateSystem(<a class="code" href="a02219.html#555905d15186c1361b55a5c67d993422">VTK_VIEW</a>);}
<a name="l00089"></a><a class="code" href="a00335.html#222a7f3a707ba83dd65d122790bbd8b1">00089</a>   <span class="keywordtype">void</span> SetCoordinateSystemToWorld() {this-&gt;SetCoordinateSystem(<a class="code" href="a02219.html#37f930b3e973edb18f19832a2205b375">VTK_WORLD</a>);}
<a name="l00091"></a>00091     
<a name="l00092"></a>00092   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetCoordinateSystemAsString ();
<a name="l00093"></a>00093 
<a name="l00095"></a>00095 
<a name="l00097"></a>00097   vtkSetVector3Macro(Value,<span class="keywordtype">double</span>);
<a name="l00098"></a>00098   vtkGetVector3Macro(Value,<span class="keywordtype">double</span>);
<a name="l00099"></a><a class="code" href="a00335.html#fb955b62ba57bf09e641fcd94b874581">00099</a>   <span class="keywordtype">void</span> SetValue(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> b) { this-&gt;SetValue(a,b,0.0);}
<a name="l00101"></a>00101   
<a name="l00103"></a>00103 
<a name="l00106"></a>00106   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetReferenceCoordinate(<a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>*);
<a name="l00107"></a>00107   vtkGetObjectMacro(ReferenceCoordinate,<a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>);
<a name="l00109"></a>00109 
<a name="l00111"></a>00111 
<a name="l00115"></a>00115   <span class="keywordtype">void</span> SetViewport(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport);
<a name="l00116"></a>00116   vtkGetObjectMacro(Viewport,<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>);
<a name="l00118"></a>00118 
<a name="l00120"></a>00120 
<a name="l00121"></a>00121   <span class="keywordtype">double</span> *GetComputedWorldValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00122"></a>00122   <span class="keywordtype">int</span> *GetComputedViewportValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00123"></a>00123   <span class="keywordtype">int</span> *GetComputedDisplayValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00124"></a>00124   <span class="keywordtype">int</span> *GetComputedLocalDisplayValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00126"></a>00126 
<a name="l00127"></a>00127   <span class="keywordtype">double</span> *GetComputedDoubleViewportValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00128"></a>00128   <span class="keywordtype">double</span> *GetComputedDoubleDisplayValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00129"></a>00129 
<a name="l00134"></a>00134   <span class="keywordtype">double</span> *GetComputedValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *);
<a name="l00135"></a>00135 
<a name="l00137"></a>00137 
<a name="l00141"></a><a class="code" href="a00335.html#5df906ec8e348393ad3b2b40a13388f6">00141</a>   <span class="keyword">virtual</span> <span class="keywordtype">double</span> *GetComputedUserDefinedValue(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *)
<a name="l00142"></a>00142     { <span class="keywordflow">return</span> this-&gt;Value; }
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 <span class="keyword">protected</span>:
<a name="l00146"></a>00146   <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>();
<a name="l00147"></a>00147   ~<a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>();
<a name="l00148"></a>00148 
<a name="l00149"></a><a class="code" href="a00335.html#e2bd6ab0e60698fb9e09a64d48953295">00149</a>   <span class="keywordtype">double</span> Value[3];
<a name="l00150"></a><a class="code" href="a00335.html#9e52446c1055e77fdbd9fa2d726d9abc">00150</a>   <span class="keywordtype">int</span>   CoordinateSystem;
<a name="l00151"></a><a class="code" href="a00335.html#bc96a8d1cc699e35c8689e8e5651413c">00151</a>   <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a> *ReferenceCoordinate;
<a name="l00152"></a><a class="code" href="a00335.html#dff35aed62df54df554592f803d2ff65">00152</a>   <a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *Viewport;
<a name="l00153"></a><a class="code" href="a00335.html#cb596b49a58b200b9b75c02cf9fcd9a2">00153</a>   <span class="keywordtype">double</span> ComputedWorldValue[3];
<a name="l00154"></a><a class="code" href="a00335.html#c4b7b39a8adb65239b4a98bbcf720dbd">00154</a>   <span class="keywordtype">int</span>   ComputedDisplayValue[2];
<a name="l00155"></a><a class="code" href="a00335.html#4e46121b244c070b88acfbdaaab6aff4">00155</a>   <span class="keywordtype">int</span>   ComputedViewportValue[2];
<a name="l00156"></a><a class="code" href="a00335.html#924e650a9fefabd0858717ef7deab752">00156</a>   <span class="keywordtype">int</span>   Computing;
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="a00335.html#b83da5cc0cd365d4ddce4a4f70ea4a9c">00158</a>   <span class="keywordtype">double</span> ComputedDoubleDisplayValue[2];
<a name="l00159"></a><a class="code" href="a00335.html#d2985f0f712ce2bab15f1599048b8574">00159</a>   <span class="keywordtype">double</span> ComputedDoubleViewportValue[2];
<a name="l00160"></a><a class="code" href="a00335.html#071ef46847cdfb9a250bd9d18ce1ad98">00160</a>   <span class="keywordtype">double</span> ComputedUserDefinedValue[3];
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">private</span>:
<a name="l00163"></a>00163   <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>(<span class="keyword">const</span> <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00164"></a>00164   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00335.html" title="perform coordinate transformation, and represent position, in a variety of vtk coordinate...">vtkCoordinate</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00165"></a>00165 };
<a name="l00166"></a>00166 
<a name="l00167"></a>00167 <span class="preprocessor">#endif</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span>
<a name="l00169"></a>00169 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:14 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>