<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 in C++ , I write my own function . and I find the function is :<BR>
imageViewer->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 . <BR>
I user 3 objects of vtkImageViewer , and I set the priority value for them . So there is my problem :<BR>
if object A's priority is 3 , object B's priority is 2 , and I call A first ,if I call B next , can 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 priority is <BR>
not necessary . So how can I do if I want to choose a object of vtkImageViewer at one time and with one MyFunction() ?<BR>
waiting for your answer ! thank you very much ! <BR><br /><hr />使用新一代 Hotmail,更强大、更安全、更多存储空间! <a href='http://www.hotmail.com' target='_new'>立刻体验!</a></body>
</html>