<!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/vtkBoxWidget2.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/Widgets/vtkBoxWidget2.h</h1><a href="a03668.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: vtkBoxWidget2.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="l00101"></a>00101 <span class="preprocessor">#ifndef __vtkBoxWidget2_h</span> <a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#define __vtkBoxWidget2_h</span> <a name="l00103"></a>00103 <span class="preprocessor"></span> <a name="l00104"></a>00104 <span class="preprocessor">#include "<a class="code" href="a03650.html">vtkAbstractWidget.h</a>"</span> <a name="l00105"></a>00105 <a name="l00106"></a>00106 <span class="keyword">class </span><a class="code" href="a00198.html" title="a class defining the representation for the vtkBoxWidget2">vtkBoxRepresentation</a>; <a name="l00107"></a>00107 <span class="keyword">class </span><a class="code" href="a00679.html" title="a general widget for moving handles">vtkHandleWidget</a>; <a name="l00108"></a>00108 <a name="l00109"></a>00109 <a name="l00110"></a><a class="code" href="a00200.html">00110</a> <span class="keyword">class </span><a class="code" href="a02170.html#09e5ba6764f54642494e26907662d55f">VTK_WIDGETS_EXPORT</a> <a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a> : <span class="keyword">public</span> <a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a> <a name="l00111"></a>00111 { <a name="l00112"></a>00112 <span class="keyword">public</span>: <a name="l00114"></a>00114 <span class="keyword">static</span> <a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00115"></a>00115 <a name="l00117"></a>00117 <a name="l00118"></a><a class="code" href="a00200.html#a1cf16a31f803a2ed50010692be6a52c">00118</a> vtkTypeRevisionMacro(<a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a>,<a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a>); <a name="l00119"></a>00119 <span class="keywordtype">void</span> <a class="code" href="a00091.html#be6bd600bcf2fa4d3348b945e0c9f67b">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00121"></a>00121 <a name="l00123"></a>00123 <a name="l00126"></a><a class="code" href="a00200.html#325cc35aa8ba809e4d63f38373210b75">00126</a> <span class="keywordtype">void</span> SetRepresentation(<a class="code" href="a00198.html" title="a class defining the representation for the vtkBoxWidget2">vtkBoxRepresentation</a> *r) <a name="l00127"></a>00127 {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));} <a name="l00129"></a>00129 <a name="l00131"></a>00131 <a name="l00133"></a>00133 vtkSetMacro(TranslationEnabled,<span class="keywordtype">int</span>); <a name="l00134"></a>00134 vtkGetMacro(TranslationEnabled,<span class="keywordtype">int</span>); <a name="l00135"></a>00135 vtkBooleanMacro(TranslationEnabled,<span class="keywordtype">int</span>); <a name="l00136"></a>00136 vtkSetMacro(ScalingEnabled,<span class="keywordtype">int</span>); <a name="l00137"></a>00137 vtkGetMacro(ScalingEnabled,<span class="keywordtype">int</span>); <a name="l00138"></a>00138 vtkBooleanMacro(ScalingEnabled,<span class="keywordtype">int</span>); <a name="l00139"></a>00139 vtkSetMacro(RotationEnabled,<span class="keywordtype">int</span>); <a name="l00140"></a>00140 vtkGetMacro(RotationEnabled,<span class="keywordtype">int</span>); <a name="l00141"></a>00141 vtkBooleanMacro(RotationEnabled,<span class="keywordtype">int</span>); <a name="l00143"></a>00143 <a name="l00146"></a>00146 <span class="keywordtype">void</span> <a class="code" href="a00091.html#64bf185aaaff512b32910091cc5ea924">CreateDefaultRepresentation</a>(); <a name="l00147"></a>00147 <a name="l00148"></a>00148 <span class="keyword">protected</span>: <a name="l00149"></a>00149 <a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a>(); <a name="l00150"></a>00150 ~<a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a>(); <a name="l00151"></a>00151 <a name="l00152"></a>00152 <span class="comment">//BTX - manage the state of the widget</span> <a name="l00153"></a><a class="code" href="a00200.html#a847250f123079aaeaf247de48c844f1">00153</a> <span class="keywordtype">int</span> WidgetState; <a name="l00154"></a><a class="code" href="a00200.html#9af279a4f8acbbe85311c960f509149c39e9add5f718bef699fe53324becec6d">00154</a> <span class="keyword">enum</span> <a class="code" href="a00200.html#9af279a4f8acbbe85311c960f509149c">_WidgetState</a> {Start=0,Active}; <a name="l00155"></a>00155 <span class="comment">//ETX</span> <a name="l00156"></a>00156 <a name="l00157"></a>00157 <span class="comment">// These methods handle events</span> <a name="l00158"></a>00158 <span class="keyword">static</span> <span class="keywordtype">void</span> SelectAction(<a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a>*); <a name="l00159"></a>00159 <span class="keyword">static</span> <span class="keywordtype">void</span> EndSelectAction(<a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a>*); <a name="l00160"></a>00160 <span class="keyword">static</span> <span class="keywordtype">void</span> TranslateAction(<a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a>*); <a name="l00161"></a>00161 <span class="keyword">static</span> <span class="keywordtype">void</span> ScaleAction(<a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a>*); <a name="l00162"></a>00162 <span class="keyword">static</span> <span class="keywordtype">void</span> MoveAction(<a class="code" href="a00091.html" title="define the API for widget / widget representation">vtkAbstractWidget</a>*); <a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="comment">// Control whether scaling, rotation, and translation are supported</span> <a name="l00165"></a><a class="code" href="a00200.html#d02720def26b85c3deca7218751b1fa6">00165</a> <span class="keywordtype">int</span> TranslationEnabled; <a name="l00166"></a><a class="code" href="a00200.html#96a1cbb3f6f52c9ef2715fcf4c6030c7">00166</a> <span class="keywordtype">int</span> ScalingEnabled; <a name="l00167"></a><a class="code" href="a00200.html#9355f628880444eb96e077134c133b03">00167</a> <span class="keywordtype">int</span> RotationEnabled; <a name="l00168"></a>00168 <span class="keyword">private</span>: <a name="l00169"></a>00169 <a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a>(<span class="keyword">const</span> <a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a>&); <span class="comment">//Not implemented</span> <a name="l00170"></a>00170 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00200.html" title="3D widget for manipulating a box">vtkBoxWidget2</a>&); <span class="comment">//Not implemented</span> <a name="l00171"></a>00171 }; <a name="l00172"></a>00172 <a name="l00173"></a>00173 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:52 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>