Sophie

Sophie

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

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/Geovis/vtkGlobeSource.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/Geovis/vtkGlobeSource.h</h1><a href="a02460.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: vtkGlobeSource.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="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="comment">/*-------------------------------------------------------------------------</span>
<a name="l00017"></a>00017 <span class="comment">  Copyright 2008 Sandia Corporation.</span>
<a name="l00018"></a>00018 <span class="comment">  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span>
<a name="l00019"></a>00019 <span class="comment">  the U.S. Government retains certain rights in this software.</span>
<a name="l00020"></a>00020 <span class="comment">-------------------------------------------------------------------------*/</span>
<a name="l00021"></a>00021 
<a name="l00033"></a>00033 <span class="preprocessor">#ifndef __vtkGlobeSource_h</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __vtkGlobeSource_h</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>;
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a00556.html" title="dynamic, self-adjusting array of float">vtkFloatArray</a>;
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="a00643.html">00042</a> <span class="keyword">class </span><a class="code" href="a02170.html#a46c0c05c9ad9271ed6829efc6b364cf">VTK_GEOVIS_EXPORT</a> <a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a> 
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="keyword">public</span>:
<a name="l00045"></a><a class="code" href="a00643.html#80db2c6ce4120a0c48aad84ee7657bbe">00045</a>   vtkTypeRevisionMacro(<a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00046"></a>00046   <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 
<a name="l00049"></a>00049   <span class="comment">// Descrpition:</span>
<a name="l00050"></a>00050   <span class="comment">// This world point will be shifted to 0,0,0.</span>
<a name="l00051"></a>00051   <span class="comment">// Used to avoid picking bug caused by rendering errors with large offsets.</span>
<a name="l00052"></a>00052   vtkSetVector3Macro(Origin, <span class="keywordtype">double</span>);
<a name="l00053"></a>00053 
<a name="l00055"></a>00055 
<a name="l00056"></a>00056   vtkSetClampMacro(StartLongitude,<span class="keywordtype">double</span>,-180.0,180.0);
<a name="l00057"></a>00057   vtkSetClampMacro(EndLongitude,<span class="keywordtype">double</span>,-180.0,180.0);
<a name="l00058"></a>00058   vtkSetClampMacro(StartLatitude,<span class="keywordtype">double</span>,-90.0,90.0);
<a name="l00059"></a>00059   vtkSetClampMacro(EndLatitude,<span class="keywordtype">double</span>,-90.0,90.0);
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 
<a name="l00065"></a>00065   vtkSetClampMacro(LongitudeResolution,<span class="keywordtype">int</span>,3,100);
<a name="l00066"></a>00066   vtkGetMacro(LongitudeResolution,<span class="keywordtype">int</span>);
<a name="l00068"></a>00068 
<a name="l00070"></a>00070 
<a name="l00072"></a>00072   vtkSetClampMacro(LatitudeResolution,<span class="keywordtype">int</span>,3,100);
<a name="l00073"></a>00073   vtkGetMacro(LatitudeResolution,<span class="keywordtype">int</span>);
<a name="l00075"></a>00075 
<a name="l00077"></a>00077 
<a name="l00078"></a>00078   vtkSetClampMacro(Radius,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00079"></a>00079   vtkGetMacro(Radius,<span class="keywordtype">double</span>);
<a name="l00081"></a>00081 
<a name="l00082"></a>00082   vtkSetClampMacro(CurtainHeight,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00083"></a>00083   vtkGetMacro(CurtainHeight,<span class="keywordtype">double</span>);
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 
<a name="l00092"></a>00092   vtkSetMacro(QuadrilateralTessellation,<span class="keywordtype">int</span>);
<a name="l00093"></a>00093   vtkGetMacro(QuadrilateralTessellation,<span class="keywordtype">int</span>);
<a name="l00094"></a>00094   vtkBooleanMacro(QuadrilateralTessellation,<span class="keywordtype">int</span>);
<a name="l00096"></a>00096 
<a name="l00100"></a>00100   <span class="keyword">static</span> <a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00101"></a>00101 
<a name="l00103"></a>00103 
<a name="l00105"></a>00105   <span class="keyword">static</span> <span class="keywordtype">void</span> ComputeGlobePoint(
<a name="l00106"></a>00106     <span class="keywordtype">double</span> theta, <span class="keywordtype">double</span> phi, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>, <span class="keywordtype">double</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21006fc9b75c5a0835cfad2ef5d44379a0b">point</a>, <span class="keywordtype">double</span>* normal = 0);
<a name="l00108"></a>00108 
<a name="l00110"></a>00110 
<a name="l00112"></a>00112   <span class="keyword">static</span> <span class="keywordtype">void</span> ComputeLatitudeLongitude(
<a name="l00113"></a>00113     <span class="keywordtype">double</span>* x, <span class="keywordtype">double</span>&amp; theta, <span class="keywordtype">double</span>&amp; phi);
<a name="l00115"></a>00115   
<a name="l00116"></a>00116 <span class="keyword">protected</span>:
<a name="l00117"></a>00117   <a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a>();
<a name="l00118"></a><a class="code" href="a00643.html#313f2471a695674053ab62f975f7dcc4">00118</a>   ~<a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a>() {}
<a name="l00119"></a>00119 
<a name="l00120"></a>00120   <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">RequestData</a>(
<a name="l00121"></a>00121     <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, 
<a name="l00122"></a>00122     <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, 
<a name="l00123"></a>00123     <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00124"></a>00124   <span class="keywordtype">int</span> <a class="code" href="a01261.html#cfed421fc23ff5262acc1c49053c75e1">RequestInformation</a>(
<a name="l00125"></a>00125     <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, 
<a name="l00126"></a>00126     <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, 
<a name="l00127"></a>00127     <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00128"></a>00128 
<a name="l00129"></a>00129   <span class="keywordtype">void</span> AddPoint(
<a name="l00130"></a>00130     <span class="keywordtype">double</span> theta, <span class="keywordtype">double</span> phi, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>,
<a name="l00131"></a>00131     <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* newPoints, <a class="code" href="a00556.html" title="dynamic, self-adjusting array of float">vtkFloatArray</a>* newNormals,
<a name="l00132"></a>00132     <a class="code" href="a00556.html" title="dynamic, self-adjusting array of float">vtkFloatArray</a>* newLongitudeArray, <a class="code" href="a00556.html" title="dynamic, self-adjusting array of float">vtkFloatArray</a>* newLatitudeArray,
<a name="l00133"></a>00133     <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* newLatLongArray);
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="a00643.html#4bb405e22b4f7e97a4fc2efaa179490c">00136</a>   <span class="keywordtype">double</span> Origin[3];
<a name="l00137"></a><a class="code" href="a00643.html#184d1d3a46ff06bd6abccbf00384965e">00137</a>   <span class="keywordtype">double</span> Radius;
<a name="l00138"></a><a class="code" href="a00643.html#2d9755c1c37aaf01ab8351e9fad5b1b0">00138</a>   <span class="keywordtype">double</span> CurtainHeight;
<a name="l00139"></a><a class="code" href="a00643.html#1edc0170889416d65aabc489ce6eeadd">00139</a>   <span class="keywordtype">int</span> LongitudeResolution;
<a name="l00140"></a><a class="code" href="a00643.html#8cfaf97e3f2ce85ccd12369dd31368e1">00140</a>   <span class="keywordtype">int</span> LatitudeResolution;
<a name="l00141"></a><a class="code" href="a00643.html#143690504e988be9fd5a61ecae7f9bc3">00141</a>   <span class="keywordtype">double</span> StartLongitude;
<a name="l00142"></a><a class="code" href="a00643.html#5590fadd59a6e40b6b08b40429ee48c3">00142</a>   <span class="keywordtype">double</span> EndLongitude;
<a name="l00143"></a><a class="code" href="a00643.html#5d37b73bc2e902f02fd85668d7f43e73">00143</a>   <span class="keywordtype">double</span> StartLatitude;
<a name="l00144"></a><a class="code" href="a00643.html#b1d49b83f43165b2cd34776ff970597d">00144</a>   <span class="keywordtype">double</span> EndLatitude;
<a name="l00145"></a><a class="code" href="a00643.html#eef760cb8e0d25c2e718af11e4a19ff6">00145</a>   <span class="keywordtype">int</span> QuadrilateralTessellation;
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="keyword">private</span>:
<a name="l00148"></a>00148   <a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a>(<span class="keyword">const</span> <a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00149"></a>00149   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00643.html" title="Sphere patch with Lat/Long scalar array.">vtkGlobeSource</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:24 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>