Sophie

Sophie

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

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/vtkSliderRepresentation.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/vtkSliderRepresentation.h</h1><a href="a03732.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: vtkSliderRepresentation.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="l00034"></a>00034 <span class="preprocessor">#ifndef __vtkSliderRepresentation_h</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSliderRepresentation_h</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="a03750.html">vtkWidgetRepresentation.h</a>"</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="a01558.html">00040</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 <span class="keyword">public</span>:
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="a01558.html#0b4fdd0cb2d1859151409e84843bdc1c">00045</a>   vtkTypeRevisionMacro(<a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a>,<a class="code" href="a01877.html" title="abstract class defines interface between the widget and widget representation classes...">vtkWidgetRepresentation</a>);
<a name="l00046"></a>00046   <span class="keywordtype">void</span> <a class="code" href="a01877.html#dea6d0138ff965f86cac0a91553ad78f">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00048"></a>00048 
<a name="l00050"></a>00050 
<a name="l00052"></a>00052   <span class="keywordtype">void</span> SetValue(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00053"></a>00053   vtkGetMacro(Value,<span class="keywordtype">double</span>);
<a name="l00055"></a>00055   
<a name="l00057"></a>00057 
<a name="l00060"></a>00060   <span class="keywordtype">void</span> SetMinimumValue(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00061"></a>00061   vtkGetMacro(MinimumValue,<span class="keywordtype">double</span>);
<a name="l00063"></a>00063   
<a name="l00065"></a>00065 
<a name="l00068"></a>00068   <span class="keywordtype">void</span> SetMaximumValue(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00069"></a>00069   vtkGetMacro(MaximumValue,<span class="keywordtype">double</span>);
<a name="l00071"></a>00071   
<a name="l00073"></a>00073 
<a name="l00075"></a>00075   vtkSetClampMacro(SliderLength,<span class="keywordtype">double</span>,0.01,0.5);
<a name="l00076"></a>00076   vtkGetMacro(SliderLength,<span class="keywordtype">double</span>);
<a name="l00078"></a>00078   
<a name="l00080"></a>00080 
<a name="l00084"></a>00084   vtkSetClampMacro(SliderWidth,<span class="keywordtype">double</span>,0.0,1.0);
<a name="l00085"></a>00085   vtkGetMacro(SliderWidth,<span class="keywordtype">double</span>);
<a name="l00087"></a>00087   
<a name="l00089"></a>00089 
<a name="l00091"></a>00091   vtkSetClampMacro(TubeWidth,<span class="keywordtype">double</span>,0.0,1.0);
<a name="l00092"></a>00092   vtkGetMacro(TubeWidth,<span class="keywordtype">double</span>);
<a name="l00094"></a>00094   
<a name="l00096"></a>00096 
<a name="l00099"></a>00099   vtkSetClampMacro(EndCapLength,<span class="keywordtype">double</span>,0.0,0.25);
<a name="l00100"></a>00100   vtkGetMacro(EndCapLength,<span class="keywordtype">double</span>);
<a name="l00102"></a>00102   
<a name="l00104"></a>00104 
<a name="l00106"></a>00106   vtkSetClampMacro(EndCapWidth,<span class="keywordtype">double</span>,0.0,0.25);
<a name="l00107"></a>00107   vtkGetMacro(EndCapWidth,<span class="keywordtype">double</span>);
<a name="l00109"></a>00109   
<a name="l00111"></a>00111 
<a name="l00113"></a><a class="code" href="a01558.html#155f5e79f035ac85ab5a32de699a6a88">00113</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTitleText(<span class="keyword">const</span> <span class="keywordtype">char</span>*) {}
<a name="l00114"></a><a class="code" href="a01558.html#751a638fa8f443d36d9b9b8b9882c9c6">00114</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetTitleText() {<span class="keywordflow">return</span> NULL;}
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 
<a name="l00119"></a>00119   vtkSetStringMacro(LabelFormat);
<a name="l00120"></a>00120   vtkGetStringMacro(LabelFormat);
<a name="l00122"></a>00122 
<a name="l00124"></a>00124 
<a name="l00126"></a>00126   vtkSetClampMacro(LabelHeight,<span class="keywordtype">double</span>,0.0,2.0);
<a name="l00127"></a>00127   vtkGetMacro(LabelHeight,<span class="keywordtype">double</span>);
<a name="l00129"></a>00129 
<a name="l00131"></a>00131 
<a name="l00133"></a>00133   vtkSetClampMacro(TitleHeight,<span class="keywordtype">double</span>,0.0,2.0);
<a name="l00134"></a>00134   vtkGetMacro(TitleHeight,<span class="keywordtype">double</span>);
<a name="l00136"></a>00136 
<a name="l00138"></a>00138 
<a name="l00140"></a>00140   vtkSetMacro(ShowSliderLabel,<span class="keywordtype">int</span>);
<a name="l00141"></a>00141   vtkGetMacro(ShowSliderLabel,<span class="keywordtype">int</span>);
<a name="l00142"></a>00142   vtkBooleanMacro(ShowSliderLabel,<span class="keywordtype">int</span>);
<a name="l00144"></a>00144 
<a name="l00146"></a>00146 
<a name="l00148"></a><a class="code" href="a01558.html#5c6802d9dc79a94acaa24f9a936e3fbe">00148</a>   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetCurrentT()
<a name="l00149"></a>00149     {<span class="keywordflow">return</span> this-&gt;CurrentT;}
<a name="l00150"></a><a class="code" href="a01558.html#5cce796fb735ce374b0762b9c06023eb">00150</a>   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetPickedT()
<a name="l00151"></a>00151     {<span class="keywordflow">return</span> this-&gt;PickedT;}
<a name="l00153"></a>00153 
<a name="l00154"></a>00154 <span class="comment">//BTX</span>
<a name="l00155"></a>00155   <span class="comment">// Enums are used to describe what is selected</span>
<a name="l00156"></a><a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b0">00156</a>   <span class="keyword">enum</span> <a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b0">_InteractionState</a>
<a name="l00157"></a>00157   {
<a name="l00158"></a><a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b04db01903a02840209fe3427cbbbc8475">00158</a>     Outside=0,
<a name="l00159"></a><a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b06776f8077b1adb044df0bdcb2d52e8f5">00159</a>     Tube,
<a name="l00160"></a><a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b09fe489981c9a34cd24cae49efee12b89">00160</a>     LeftCap,
<a name="l00161"></a><a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b08f72c1cbf453ac71037d0ca8db5b7320">00161</a>     RightCap,
<a name="l00162"></a><a class="code" href="a01558.html#e4d78a84b8d322c12f47ebd1bb8135b0d717dcca9f4c796e717629c73c30279f">00162</a>     Slider
<a name="l00163"></a>00163   };
<a name="l00164"></a>00164 <span class="comment">//ETX</span>
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 <span class="keyword">protected</span>:
<a name="l00167"></a>00167   <a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a>();
<a name="l00168"></a>00168   ~<a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a>();
<a name="l00169"></a>00169 
<a name="l00170"></a>00170   <span class="comment">// Values</span>
<a name="l00171"></a><a class="code" href="a01558.html#3c792027478631a3e7f51597e1ffba24">00171</a>   <span class="keywordtype">double</span> Value;  
<a name="l00172"></a><a class="code" href="a01558.html#7204c8d14d6d5833e0ed68eb1c6aa04c">00172</a>   <span class="keywordtype">double</span> MinimumValue;
<a name="l00173"></a><a class="code" href="a01558.html#435f268c495493deba4e94c133b3adcf">00173</a>   <span class="keywordtype">double</span> MaximumValue;
<a name="l00174"></a>00174   
<a name="l00175"></a>00175   <span class="comment">// More ivars controlling the appearance of the widget</span>
<a name="l00176"></a><a class="code" href="a01558.html#24fca329aa23331dd02d961cb37de4e5">00176</a>   <span class="keywordtype">double</span> SliderLength;
<a name="l00177"></a><a class="code" href="a01558.html#4e43beab90c948f41c19571f74ca1efa">00177</a>   <span class="keywordtype">double</span> SliderWidth;
<a name="l00178"></a><a class="code" href="a01558.html#3143abf2959d606715d109259ded6b10">00178</a>   <span class="keywordtype">double</span> EndCapLength;
<a name="l00179"></a><a class="code" href="a01558.html#1f233d06ae3547eedaaff2649c767283">00179</a>   <span class="keywordtype">double</span> EndCapWidth;
<a name="l00180"></a><a class="code" href="a01558.html#2ccac5bde0cc4df6bd7ad9c8ba4cb301">00180</a>   <span class="keywordtype">double</span> TubeWidth;
<a name="l00181"></a>00181 
<a name="l00182"></a>00182   <span class="comment">// The current parametric coordinate</span>
<a name="l00183"></a><a class="code" href="a01558.html#00b1dcbcbd76e6a156d04a8a81e835c4">00183</a>   <span class="keywordtype">double</span> CurrentT;
<a name="l00184"></a><a class="code" href="a01558.html#be0a49d8d00e2221370d6d3f5c19331a">00184</a>   <span class="keywordtype">double</span> PickedT;
<a name="l00185"></a>00185 
<a name="l00186"></a>00186   <span class="comment">// both the title and label</span>
<a name="l00187"></a><a class="code" href="a01558.html#fdc569ad08393c59ac769882cef3b73b">00187</a>   <span class="keywordtype">int</span>    ShowSliderLabel;
<a name="l00188"></a><a class="code" href="a01558.html#5b9e119ed762d1fead2a19adb6be29cb">00188</a>   <span class="keywordtype">char</span>  *LabelFormat;
<a name="l00189"></a><a class="code" href="a01558.html#d093378a24c887d0520598aecc5c0846">00189</a>   <span class="keywordtype">double</span> LabelHeight;
<a name="l00190"></a><a class="code" href="a01558.html#e323d766657bb2665c84da88a79a71f6">00190</a>   <span class="keywordtype">double</span> TitleHeight;
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="keyword">private</span>:
<a name="l00193"></a>00193   <a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00194"></a>00194   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01558.html" title="abstract class defines the representation for a vtkSliderWidget">vtkSliderRepresentation</a>&amp;);  <span class="comment">//Not implemented</span>
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <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>