Sophie

Sophie

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

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/Common/vtkObject.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/Common/vtkObject.h</h1><a href="a02079.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: vtkObject.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="l00046"></a>00046 <span class="preprocessor">#ifndef __vtkObject_h</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#define __vtkObject_h</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049 <span class="preprocessor">#include "<a class="code" href="a02080.html">vtkObjectBase.h</a>"</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include "vtkSetGet.h"</span>
<a name="l00051"></a>00051 <span class="preprocessor">#include "<a class="code" href="a02146.html">vtkTimeStamp.h</a>"</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">class </span>vtkSubjectHelper;
<a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a>;
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="a01084.html">00056</a> <span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> : <span class="keyword">public</span> <a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00059"></a><a class="code" href="a01084.html#11429dee69f4b562e03e07b453dae9b5">00059</a>   vtkTypeRevisionMacro(<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>,<a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>);
<a name="l00060"></a>00060 
<a name="l00063"></a>00063   <span class="keyword">static</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> *<a class="code" href="a01085.html#1ad146652efe695e9ace7bc29b3e0f74">New</a>();
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="preprocessor">#ifdef _WIN32</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>  <span class="comment">// avoid dll boundary problems</span>
<a name="l00067"></a>00067   <span class="keywordtype">void</span>* operator new( <span class="keywordtype">size_t</span> tSize );
<a name="l00068"></a>00068   <span class="keywordtype">void</span> operator delete( <span class="keywordtype">void</span>* p );
<a name="l00069"></a>00069 <span class="preprocessor">#endif </span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>  
<a name="l00072"></a>00072   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DebugOn();
<a name="l00073"></a>00073 
<a name="l00075"></a>00075   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DebugOff();
<a name="l00076"></a>00076   
<a name="l00078"></a>00078   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> GetDebug();
<a name="l00079"></a>00079   
<a name="l00081"></a>00081   <span class="keywordtype">void</span> SetDebug(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> debugFlag);
<a name="l00082"></a>00082   
<a name="l00085"></a>00085   <span class="keyword">static</span> <span class="keywordtype">void</span> BreakOnError();
<a name="l00086"></a>00086   
<a name="l00091"></a>00091   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Modified();
<a name="l00092"></a>00092   
<a name="l00094"></a>00094   <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetMTime();
<a name="l00095"></a>00095 
<a name="l00100"></a>00100   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01085.html#08b8a2d0047a4d9b787c4a822bcda456">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<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> SetGlobalWarningDisplay(<span class="keywordtype">int</span> val);
<a name="l00106"></a><a class="code" href="a01084.html#caf491434b21e13d7fc02a2cf0097ae3">00106</a>   <span class="keyword">static</span> <span class="keywordtype">void</span> GlobalWarningDisplayOn(){<a class="code" href="a01084.html#4bc46239efb79cd34504ff94e1710d9c">vtkObject::SetGlobalWarningDisplay</a>(1);};
<a name="l00107"></a><a class="code" href="a01084.html#7e38ded43a1781d5c24125e820631073">00107</a>   <span class="keyword">static</span> <span class="keywordtype">void</span> GlobalWarningDisplayOff() 
<a name="l00108"></a>00108     {<a class="code" href="a01084.html#4bc46239efb79cd34504ff94e1710d9c">vtkObject::SetGlobalWarningDisplay</a>(0);};
<a name="l00109"></a>00109   <span class="keyword">static</span> <span class="keywordtype">int</span>  GetGlobalWarningDisplay();
<a name="l00111"></a>00111 
<a name="l00113"></a>00113 
<a name="l00122"></a>00122   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> AddObserver(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *, 
<a name="l00123"></a>00123                             <span class="keywordtype">float</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21024293a2f7a2743668a74cff1eb1382e2">priority</a>=0.0f);
<a name="l00124"></a>00124   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> AddObserver(<span class="keyword">const</span> <span class="keywordtype">char</span> *event, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *, 
<a name="l00125"></a>00125                             <span class="keywordtype">float</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21024293a2f7a2743668a74cff1eb1382e2">priority</a>=0.0f);
<a name="l00126"></a>00126   <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *GetCommand(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> tag);
<a name="l00127"></a>00127   <span class="keywordtype">void</span> RemoveObserver(<a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a>*);
<a name="l00128"></a>00128   <span class="keywordtype">void</span> RemoveObservers(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *);
<a name="l00129"></a>00129   <span class="keywordtype">void</span> RemoveObservers(<span class="keyword">const</span> <span class="keywordtype">char</span> *event, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *);
<a name="l00130"></a>00130   <span class="keywordtype">int</span> HasObserver(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *);
<a name="l00131"></a>00131   <span class="keywordtype">int</span> HasObserver(<span class="keyword">const</span> <span class="keywordtype">char</span> *event, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *);
<a name="l00132"></a>00132   <span class="comment">//ETX </span>
<a name="l00133"></a>00133   <span class="keywordtype">void</span> RemoveObserver(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> tag);
<a name="l00134"></a>00134   <span class="keywordtype">void</span> RemoveObservers(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event);
<a name="l00135"></a>00135   <span class="keywordtype">void</span> RemoveObservers(<span class="keyword">const</span> <span class="keywordtype">char</span> *event);
<a name="l00136"></a>00136   <span class="keywordtype">void</span> RemoveAllObservers(); <span class="comment">//remove every last one of them</span>
<a name="l00137"></a>00137   <span class="keywordtype">int</span> HasObserver(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event);
<a name="l00138"></a>00138   <span class="keywordtype">int</span> HasObserver(<span class="keyword">const</span> <span class="keywordtype">char</span> *event);
<a name="l00140"></a>00140 
<a name="l00151"></a>00151   <span class="comment">// This method invokes an event and return whether the event was</span>
<a name="l00152"></a>00152   <span class="comment">// aborted or not. If the event was aborted, the return value is 1,</span>
<a name="l00153"></a>00153   <span class="comment">// otherwise it is 0.  </span>
<a name="l00154"></a>00154   <span class="comment">//BTX</span>
<a name="l00155"></a>00155   <span class="keywordtype">int</span> InvokeEvent(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event, <span class="keywordtype">void</span> *callData);
<a name="l00156"></a>00156   <span class="keywordtype">int</span> InvokeEvent(<span class="keyword">const</span> <span class="keywordtype">char</span> *event, <span class="keywordtype">void</span> *callData);
<a name="l00157"></a>00157   <span class="comment">//ETX</span>
<a name="l00158"></a><a class="code" href="a01084.html#5d573a92653d85e7394c38ad27302e9d">00158</a>   <span class="keywordtype">int</span> InvokeEvent(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> event) { <span class="keywordflow">return</span> this-&gt;InvokeEvent(event, NULL); };
<a name="l00159"></a><a class="code" href="a01084.html#d779ae5a285ffb34a2253881cde7352b">00159</a>   <span class="keywordtype">int</span> InvokeEvent(<span class="keyword">const</span> <span class="keywordtype">char</span> *event) { <span class="keywordflow">return</span> this-&gt;InvokeEvent(event, NULL); };
<a name="l00160"></a>00160   
<a name="l00161"></a>00161 <span class="keyword">protected</span>:
<a name="l00162"></a>00162   <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>(); 
<a name="l00163"></a>00163   <span class="keyword">virtual</span> ~<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>(); 
<a name="l00164"></a>00164 
<a name="l00165"></a>00165   <span class="comment">// See vtkObjectBase.h.</span>
<a name="l00166"></a>00166   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01085.html#4cd2b409226ac745dfe99f5ed44d5479">RegisterInternal</a>(<a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>*, <span class="keywordtype">int</span> check);
<a name="l00167"></a>00167   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01085.html#cb07fb03c86ea1ea2177529abb1454be">UnRegisterInternal</a>(<a class="code" href="a01085.html" title="abstract base class for most VTK objects">vtkObjectBase</a>*, <span class="keywordtype">int</span> check);
<a name="l00168"></a>00168 
<a name="l00169"></a><a class="code" href="a01084.html#9719fd50ca3e1b996bc232232534a342">00169</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>     Debug;      <span class="comment">// Enable debug messages</span>
<a name="l00170"></a><a class="code" href="a01084.html#3c9aa2881371fbf331696d2ff363489f">00170</a>   <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a>      MTime;      <span class="comment">// Keep track of modification time</span>
<a name="l00171"></a><a class="code" href="a01084.html#12e85e365dff86d7fdf355054e630edf">00171</a>   vtkSubjectHelper *SubjectHelper; <span class="comment">// List of observers on this object</span>
<a name="l00172"></a>00172 
<a name="l00174"></a>00174 
<a name="l00181"></a>00181   <span class="keywordtype">void</span> InternalGrabFocus(<a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *mouseEvents, <a class="code" href="a00291.html" title="superclass for callback/observer methods">vtkCommand</a> *keypressEvents=NULL);
<a name="l00182"></a>00182   <span class="keywordtype">void</span> InternalReleaseFocus();
<a name="l00183"></a>00183   <span class="comment">//ETX</span>
<a name="l00185"></a>00185 <span class="comment"></span>
<a name="l00186"></a>00186 <span class="keyword">private</span>:
<a name="l00187"></a>00187   <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>(<span class="keyword">const</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00188"></a>00188   <span class="keywordtype">void</span> <a class="code" href="a01085.html#2726f0dad4d247e86a8fe3be3d351fca">operator=</a>(<span class="keyword">const</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00189"></a>00189 };
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 <span class="preprocessor">#endif</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:11 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>