<!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/vtkGeoTerrainNode.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/Geovis/vtkGeoTerrainNode.h</h1><a href="a02455.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: vtkGeoTerrainNode.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="l00030"></a>00030 <span class="preprocessor">#ifndef __vtkGeoTerrainNode_h</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define __vtkGeoTerrainNode_h</span> <a name="l00032"></a>00032 <span class="preprocessor"></span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="a02457.html">vtkGeoTreeNode.h</a>"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="a02127.html">vtkSmartPointer.h</a>"</span> <span class="comment">// for SP</span> <a name="l00035"></a>00035 <a name="l00036"></a>00036 <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="l00037"></a>00037 <a name="l00038"></a><a class="code" href="a00636.html">00038</a> <span class="keyword">class </span><a class="code" href="a02170.html#a46c0c05c9ad9271ed6829efc6b364cf">VTK_GEOVIS_EXPORT</a> <a class="code" href="a00636.html">vtkGeoTerrainNode</a> : <span class="keyword">public</span> <a class="code" href="a00638.html">vtkGeoTreeNode</a> <a name="l00039"></a>00039 { <a name="l00040"></a>00040 <span class="keyword">public</span>: <a name="l00041"></a>00041 <span class="keyword">static</span> <a class="code" href="a00636.html">vtkGeoTerrainNode</a> *<a class="code" href="a00638.html#7e6ebfb9afffa02574b20e182db78835">New</a>(); <a name="l00042"></a><a class="code" href="a00636.html#6990f9443d39900225bf3d687a4073bc">00042</a> vtkTypeRevisionMacro(<a class="code" href="a00636.html">vtkGeoTerrainNode</a>, <a class="code" href="a00638.html">vtkGeoTreeNode</a>); <a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="a00638.html#5fd0eb4c2c2028f19c5870109b1d1c73">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00044"></a>00044 <a name="l00046"></a>00046 <a name="l00048"></a>00048 <a class="code" href="a00636.html">vtkGeoTerrainNode</a>* GetChild(<span class="keywordtype">int</span> idx); <a name="l00049"></a>00049 <a class="code" href="a00636.html">vtkGeoTerrainNode</a>* GetParent(); <a name="l00051"></a>00051 <a name="l00054"></a>00054 <span class="keywordtype">double</span> GetAltitude(<span class="keywordtype">double</span> longitude, <span class="keywordtype">double</span> latitude); <a name="l00055"></a>00055 <a name="l00057"></a>00057 <a name="l00059"></a>00059 <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>* GetModel(); <a name="l00060"></a>00060 <span class="keywordtype">void</span> SetModel(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>* model); <a name="l00062"></a>00062 <a name="l00064"></a>00064 <a name="l00065"></a>00065 <span class="keywordtype">void</span> UpdateBoundingSphere(); <a name="l00066"></a>00066 vtkGetMacro(BoundingSphereRadius, <span class="keywordtype">double</span>); <a name="l00067"></a>00067 vtkGetVector3Macro(BoundingSphereCenter, <span class="keywordtype">double</span>); <a name="l00069"></a>00069 <a name="l00070"></a>00070 vtkGetVector3Macro(CornerNormal00,<span class="keywordtype">double</span>); <a name="l00071"></a>00071 vtkGetVector3Macro(CornerNormal01,<span class="keywordtype">double</span>); <a name="l00072"></a>00072 vtkGetVector3Macro(CornerNormal10,<span class="keywordtype">double</span>); <a name="l00073"></a>00073 vtkGetVector3Macro(CornerNormal11,<span class="keywordtype">double</span>); <a name="l00074"></a>00074 <a name="l00076"></a>00076 <a name="l00078"></a>00078 vtkGetVector4Macro(ProjectionBounds,<span class="keywordtype">double</span>); <a name="l00079"></a>00079 vtkSetVector4Macro(ProjectionBounds,<span class="keywordtype">double</span>); <a name="l00081"></a>00081 <a name="l00083"></a>00083 <a name="l00085"></a>00085 vtkGetMacro(GraticuleLevel,<span class="keywordtype">int</span>); <a name="l00086"></a>00086 vtkSetMacro(GraticuleLevel,<span class="keywordtype">int</span>); <a name="l00088"></a>00088 <a name="l00090"></a>00090 <a name="l00092"></a>00092 vtkGetMacro(Error,<span class="keywordtype">double</span>); <a name="l00093"></a>00093 vtkSetMacro(Error,<span class="keywordtype">double</span>); <a name="l00095"></a>00095 <a name="l00097"></a>00097 <a name="l00099"></a>00099 vtkGetMacro(Coverage,<span class="keywordtype">float</span>); <a name="l00100"></a>00100 vtkSetMacro(Coverage,<span class="keywordtype">float</span>); <a name="l00102"></a>00102 <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00638.html#a2f924b31d058a341ef7dc2ea7b88230">ShallowCopy</a>(<a class="code" href="a00638.html">vtkGeoTreeNode</a> *src); <a name="l00106"></a>00106 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00638.html#8c6d9bc904a837db334c767cd3376bad">DeepCopy</a>(<a class="code" href="a00638.html">vtkGeoTreeNode</a> *src); <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="keyword">protected</span>: <a name="l00110"></a>00110 <a class="code" href="a00636.html">vtkGeoTerrainNode</a>(); <a name="l00111"></a>00111 ~<a class="code" href="a00636.html">vtkGeoTerrainNode</a>(); <a name="l00112"></a>00112 <a name="l00113"></a>00113 <span class="comment">//BTX</span> <a name="l00114"></a><a class="code" href="a00636.html#ff97b7337cf9130a3bd7b3347c632522">00114</a> <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer<vtkPolyData></a> Model; <a name="l00115"></a>00115 <span class="comment">//ETX</span> <a name="l00116"></a>00116 <a name="l00117"></a><a class="code" href="a00636.html#ea67e22bf0b47a2d941f729cac738032">00117</a> <span class="keywordtype">double</span> BoundingSphereRadius; <a name="l00118"></a><a class="code" href="a00636.html#a1a2b0a447b7c7853098c96da8454482">00118</a> <span class="keywordtype">double</span> BoundingSphereCenter[3]; <a name="l00119"></a>00119 <a name="l00120"></a>00120 <span class="comment">// I hate having to store this, but it is the easiest</span> <a name="l00121"></a>00121 <span class="comment">// way to determine if a node is not visible because</span> <a name="l00122"></a>00122 <span class="comment">// it is on the other side of the earth.</span> <a name="l00123"></a><a class="code" href="a00636.html#c2dca17791b09d1a4339d00c1d5f45b6">00123</a> <span class="keywordtype">double</span> CornerNormal00[3]; <a name="l00124"></a><a class="code" href="a00636.html#d77af5fbc222740a908e3c662b2921e8">00124</a> <span class="keywordtype">double</span> CornerNormal01[3]; <a name="l00125"></a><a class="code" href="a00636.html#ebaa6824d19140ffd4dffdc27ed93247">00125</a> <span class="keywordtype">double</span> CornerNormal10[3]; <a name="l00126"></a><a class="code" href="a00636.html#686ee441c034d6a92555fdadcbef03f0">00126</a> <span class="keywordtype">double</span> CornerNormal11[3]; <a name="l00127"></a>00127 <a name="l00128"></a><a class="code" href="a00636.html#2e36698f505010fc64863e0234d9b73c">00128</a> <span class="keywordtype">double</span> ProjectionBounds[4]; <a name="l00129"></a><a class="code" href="a00636.html#e7f95367f3cab9e86972757d3a202101">00129</a> <span class="keywordtype">int</span> GraticuleLevel; <a name="l00130"></a><a class="code" href="a00636.html#1ebe6eb226d9cdfe1d06ece1b3ad2c5a">00130</a> <span class="keywordtype">double</span> Error; <a name="l00131"></a><a class="code" href="a00636.html#f30e477a7288e1ed0d34c649a5ca58f2">00131</a> <span class="keywordtype">float</span> Coverage; <a name="l00132"></a>00132 <a name="l00133"></a>00133 <span class="keyword">private</span>: <a name="l00134"></a>00134 <a class="code" href="a00636.html">vtkGeoTerrainNode</a>(<span class="keyword">const</span> <a class="code" href="a00636.html">vtkGeoTerrainNode</a>&); <span class="comment">// Not implemented.</span> <a name="l00135"></a>00135 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00636.html">vtkGeoTerrainNode</a>&); <span class="comment">// Not implemented.</span> <a name="l00136"></a>00136 }; <a name="l00137"></a>00137 <a name="l00138"></a>00138 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:19 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>