<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Hi, <BR>
when I use the function AddObserver() of vtkImageViewer&nbsp;in C++&nbsp;, I write my own function . and I find the function is :<BR>
&nbsp;&nbsp;&nbsp; imageViewer-&gt;AddObserver( const char * event , vtkCommand * MyFunction , float priority = 0.0 ) ;<BR>from the introduction of it , I know the higher priority commands will be called first if a priority value is specified .&nbsp;<BR>
I user 3 objects of&nbsp;vtkImageViewer , and I set the priority value&nbsp;for them .&nbsp;So there is my problem :<BR>
if object A's priority is&nbsp;3 , object&nbsp;B's priority is 2 , and I call&nbsp;A first ,if I call&nbsp;B next ,&nbsp;can&nbsp;MyFunction() of B work ?<BR>
and then there is another question : how can I control the MyFunction() to be used by one object at one time ? if I only <BR>
write a MyFunction() and these objects use it with share , I think the objects that have higher priority could not be <BR>
interrupted by the objects having lower priority . or I write many MyFunction() for all the objects , but then the&nbsp;priority&nbsp;is <BR>
not necessary . So&nbsp;how can I do if I want to choose a&nbsp;object of vtkImageViewer at one time and with one MyFunction() ?<BR>
waiting for your answer&nbsp;! thank you very much !&nbsp;<BR><br /><hr />使用新一代 Hotmail,更强大、更安全、更多存储空间! <a href='http://www.hotmail.com' target='_new'>立刻体验!</a></body>
</html>