Sophie

Sophie

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

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/Infovis/vtkTreeMapViewer.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/Infovis/vtkTreeMapViewer.h</h1><a href="a03084.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: vtkTreeMapViewer.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 <span class="comment">/*-------------------------------------------------------------------------</span>
<a name="l00016"></a>00016 <span class="comment">  Copyright 2008 Sandia Corporation.</span>
<a name="l00017"></a>00017 <span class="comment">  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span>
<a name="l00018"></a>00018 <span class="comment">  the U.S. Government retains certain rights in this software.</span>
<a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span>
<a name="l00041"></a>00041 <span class="preprocessor">#ifndef __vtkTreeMapViewer_h</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTreeMapViewer_h</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include "<a class="code" href="a02127.html">vtkSmartPointer.h</a>"</span>    <span class="comment">// Required for smart pointer internal ivars.</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01749.html" title="adds level and leaf fields to a vtkTree">vtkTreeLevelsFilter</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a01746.html" title="aggregate field values from the leaves up the tree">vtkTreeFieldAggregator</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a01750.html" title="layout a vtkTree into a tree map">vtkTreeMapLayout</a>;
<a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a01751.html" title="abstract superclass for all tree map layout strategies">vtkTreeMapLayoutStrategy</a>;
<a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a01752.html" title="converts a tree to a polygonal data representing a tree map">vtkTreeMapToPolyData</a>;
<a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a01265.html" title="map vtkPolyData to graphics primitives">vtkPolyDataMapper</a>;
<a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a>;
<a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp;amp; properties) in a rendered scene">vtkActor</a>;
<a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a>;
<a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a01491.html" title="platform-independent render window interaction including picking and frame rate control...">vtkRenderWindowInteractor</a>;
<a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a00918.html" title="An interactor style for a tree map view.">vtkInteractorStyleTreeMapHover</a>;
<a name="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>;
<a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>;
<a name="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a01491.html" title="platform-independent render window interaction including picking and frame rate control...">vtkRenderWindowInteractor</a>;
<a name="l00062"></a>00062 <span class="keyword">class </span><a class="code" href="a00980.html" title="map scalar values into colors via a lookup table">vtkLookupTable</a>;
<a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a01707.html" title="extracts cells where scalar value in cell satisfies threshold criterion">vtkThreshold</a>;
<a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a00938.html" title="draw text labels at dataset points">vtkLabeledDataMapper</a>;
<a name="l00065"></a>00065 <span class="keyword">class </span><a class="code" href="a00939.html" title="draw text labels on a tree map">vtkLabeledTreeMapDataMapper</a>;
<a name="l00066"></a>00066 
<a name="l00067"></a><a class="code" href="a01754.html">00067</a> <span class="keyword">class </span><a class="code" href="a02170.html#73f1c245b8811be3c4b76b0a89784e70">VTK_INFOVIS_EXPORT</a> <a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> 
<a name="l00068"></a>00068 {
<a name="l00069"></a>00069 <span class="keyword">public</span>:
<a name="l00070"></a>00070   <span class="keyword">static</span> <a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00071"></a><a class="code" href="a01754.html#ab4eda2f36c9788dd232c99aa3f6cd56">00071</a>   vtkTypeRevisionMacro(<a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00072"></a>00072   <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="l00073"></a>00073   
<a name="l00075"></a>00075   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInput(<a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> *arg);
<a name="l00076"></a>00076 
<a name="l00078"></a>00078 
<a name="l00079"></a>00079   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRenderWindow(<a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a> *arg);
<a name="l00080"></a>00080   vtkGetObjectMacro(RenderWindow, <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>);
<a name="l00082"></a>00082   
<a name="l00084"></a>00084 
<a name="l00085"></a>00085   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetAggregationFieldName(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a>);
<a name="l00086"></a>00086   <span class="keyword">virtual</span> <span class="keywordtype">char</span>* GetAggregationFieldName();
<a name="l00088"></a>00088   
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   vtkGetObjectMacro(InteractorStyle, <a class="code" href="a00918.html" title="An interactor style for a tree map view.">vtkInteractorStyleTreeMapHover</a>);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 <span class="comment">//BTX</span>
<a name="l00096"></a>00096   <span class="keyword">enum</span> {
<a name="l00097"></a><a class="code" href="a01754.html#954dfd8beb58a4b69d2ec178e978ae0f97c2c47a505e605891ed4ec4a2a79c6d">00097</a>     BOX_LAYOUT,
<a name="l00098"></a><a class="code" href="a01754.html#954dfd8beb58a4b69d2ec178e978ae0fc7aecf027c28ddb7c45b55addd4da2dd">00098</a>     SLICE_AND_DICE_LAYOUT,
<a name="l00099"></a><a class="code" href="a01754.html#954dfd8beb58a4b69d2ec178e978ae0fa5b1b976fbac48c467bb4663b2f68623">00099</a>     SQUARIFY_LAYOUT,
<a name="l00100"></a><a class="code" href="a01754.html#954dfd8beb58a4b69d2ec178e978ae0f229aa1249f149970111092360ca6f1d3">00100</a>     NUMBER_OF_LAYOUTS
<a name="l00101"></a>00101   };
<a name="l00102"></a>00102 <span class="comment">//ETX</span>
<a name="l00103"></a>00103 
<a name="l00105"></a>00105 
<a name="l00106"></a>00106   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLayoutStrategy(<span class="keywordtype">int</span> strategy);
<a name="l00107"></a><a class="code" href="a01754.html#aece68eed52e8f7588c8900e77d13fc2">00107</a>   <span class="keywordtype">void</span> SetLayoutStrategyToBox() { this-&gt;SetLayoutStrategy(BOX_LAYOUT); }
<a name="l00108"></a><a class="code" href="a01754.html#b165aa90561a7ddb64bfc052fd9a4bd9">00108</a>   <span class="keywordtype">void</span> SetLayoutStrategyToSliceAndDice() {
<a name="l00109"></a>00109     this-&gt;SetLayoutStrategy(SLICE_AND_DICE_LAYOUT);
<a name="l00110"></a>00110   }
<a name="l00111"></a><a class="code" href="a01754.html#70a8f58fba5cee87bab13c21b2b95e72">00111</a>   <span class="keywordtype">void</span> SetLayoutStrategyToSquarify() {
<a name="l00112"></a>00112     this-&gt;SetLayoutStrategy(SQUARIFY_LAYOUT);
<a name="l00113"></a>00113   }
<a name="l00114"></a>00114   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetLayoutStrategy();
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 
<a name="l00119"></a>00119   <span class="keywordtype">void</span> SetBorderPercentage(<span class="keywordtype">double</span> pcent);
<a name="l00120"></a>00120   <span class="keywordtype">double</span> GetBorderPercentage();
<a name="l00122"></a>00122 
<a name="l00124"></a>00124 
<a name="l00125"></a>00125   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLayoutStrategy(<span class="keyword">const</span> <span class="keywordtype">char</span> *layoutType);
<a name="l00126"></a>00126   <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *GetLayoutStrategyName(<span class="keywordtype">int</span> strategy);
<a name="l00128"></a>00128   
<a name="l00130"></a>00130 
<a name="l00131"></a>00131   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetColorFieldName(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a>);
<a name="l00132"></a>00132   <span class="keyword">virtual</span> <span class="keywordtype">char</span>* GetColorFieldName();
<a name="l00134"></a>00134   
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLabelFieldName(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a>);
<a name="l00138"></a>00138   <span class="keyword">virtual</span> <span class="keywordtype">char</span>* GetLabelFieldName();
<a name="l00140"></a>00140   
<a name="l00142"></a>00142   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetFontSizeRange(<span class="keyword">const</span> <span class="keywordtype">int</span> maxSize, <span class="keyword">const</span> <span class="keywordtype">int</span> minSize);
<a name="l00143"></a>00143 
<a name="l00145"></a>00145 
<a name="l00146"></a>00146   <span class="keywordtype">bool</span> GetLogScale();
<a name="l00147"></a>00147   <span class="keywordtype">void</span> SetLogScale(<span class="keywordtype">bool</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00149"></a>00149   
<a name="l00151"></a>00151   <span class="keywordtype">void</span> HighLightItem(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>);
<a name="l00152"></a>00152 
<a name="l00154"></a>00154 
<a name="l00156"></a>00156   <span class="keywordtype">void</span> SetLabelLevelRange(<span class="keywordtype">int</span> start, <span class="keywordtype">int</span> end);
<a name="l00157"></a>00157   <span class="keywordtype">void</span> GetLabelLevelRange(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]);
<a name="l00159"></a>00159 
<a name="l00161"></a>00161 
<a name="l00162"></a>00162   <span class="keywordtype">void</span> SetDynamicLabelLevel(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>);
<a name="l00163"></a>00163   <span class="keywordtype">int</span> GetDynamicLabelLevel();
<a name="l00165"></a>00165 
<a name="l00167"></a>00167 
<a name="l00168"></a>00168   <span class="keywordtype">void</span> SetChildLabelMotion(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210608db9ad4c08b9eb2e8e8353b79225da">mode</a>);
<a name="l00169"></a>00169   <span class="keywordtype">int</span> GetChildLabelMotion();
<a name="l00171"></a>00171 
<a name="l00173"></a>00173 
<a name="l00176"></a>00176   <span class="keywordtype">void</span> SetLabelClipMode(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210608db9ad4c08b9eb2e8e8353b79225da">mode</a>);
<a name="l00177"></a>00177   <span class="keywordtype">int</span> GetLabelClipMode();
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="keyword">protected</span>:
<a name="l00181"></a>00181   <a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a>();
<a name="l00182"></a>00182   ~<a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a>();
<a name="l00183"></a>00183   
<a name="l00184"></a>00184   <span class="comment">// Protected methods that may be called by inherited classes</span>
<a name="l00185"></a>00185   
<a name="l00187"></a>00187   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetupPipeline();
<a name="l00188"></a>00188   
<a name="l00189"></a><a class="code" href="a01754.html#e762cfd6c585541e8cce1c79404b37fd">00189</a>   <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>*                                  Input;
<a name="l00190"></a><a class="code" href="a01754.html#20b845058edf9e69ca0345c48d1c91cc">00190</a>   <a class="code" href="a01489.html" title="create a window for renderers to draw into">vtkRenderWindow</a>*                          RenderWindow;
<a name="l00191"></a><a class="code" href="a01754.html#ea2cee6f6b3152d39d2df5aed7de9806">00191</a>   <a class="code" href="a00918.html" title="An interactor style for a tree map view.">vtkInteractorStyleTreeMapHover</a>*           InteractorStyle;
<a name="l00192"></a>00192   <span class="comment">//BTX</span>
<a name="l00193"></a><a class="code" href="a01754.html#fd1d634704f520665893aceacc2701b7">00193</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkTreeLevelsFilter&gt;</a>      TreeLevelsFilter;
<a name="l00194"></a><a class="code" href="a01754.html#40c68ecc412ad219a518c38526ea3fd5">00194</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkTreeFieldAggregator&gt;</a>   TreeFieldAggregator;
<a name="l00195"></a><a class="code" href="a01754.html#10b731b56cba9b3ad39962b4b91b502e">00195</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkTreeMapLayout&gt;</a>         TreeMapLayout;
<a name="l00196"></a><a class="code" href="a01754.html#529bc9c45c24155854b18fadbc2bc89a">00196</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkTreeMapToPolyData&gt;</a>     TreeMapToPolyData;
<a name="l00197"></a><a class="code" href="a01754.html#1f0139763f28f917c9668c2425c981cc">00197</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkPolyDataMapper&gt;</a>        PolyDataMapper;
<a name="l00198"></a><a class="code" href="a01754.html#f6a054bd347f8304ae5cf798f9da51cd">00198</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkRenderer&gt;</a>              Renderer;
<a name="l00199"></a><a class="code" href="a01754.html#98fbe37d611852a45c47adbee51bdc60">00199</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkActor&gt;</a>                 Actor;
<a name="l00200"></a><a class="code" href="a01754.html#4008c19c81cb8fd9c681a1cb31841e8c">00200</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkActor2D&gt;</a>               LabelActor;
<a name="l00201"></a><a class="code" href="a01754.html#2ecf6b8ceb245c82fc3f0e13751b441a">00201</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkLookupTable&gt;</a>           ColorLUT;
<a name="l00202"></a><a class="code" href="a01754.html#4e3bf76aae284a8a5eda6769323d0f72">00202</a>   <a class="code" href="a01562.html" title="Hold a reference to a vtkObjectBase instance.">vtkSmartPointer&lt;vtkLabeledTreeMapDataMapper&gt;</a>     LabeledDataMapper;
<a name="l00203"></a>00203   <span class="comment">//ETX</span>
<a name="l00204"></a>00204   
<a name="l00205"></a>00205 <span class="keyword">private</span>:
<a name="l00206"></a>00206 
<a name="l00207"></a>00207   <span class="comment">// Internally used methods</span>
<a name="l00208"></a>00208   
<a name="l00211"></a>00211   <span class="keywordtype">void</span> InputInitialize();
<a name="l00212"></a>00212 
<a name="l00213"></a>00213   <a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a>(<span class="keyword">const</span> <a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00214"></a>00214   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01754.html" title="Display a 2D TreeMap.">vtkTreeMapViewer</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00215"></a>00215 };
<a name="l00216"></a>00216 
<a name="l00217"></a>00217 <span class="preprocessor">#endif</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span>
<a name="l00219"></a>00219 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:38 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>