pub struct vtkCallbackCommand(/* private fields */);Expand description
supports function callbacks
Use vtkCallbackCommand for generic function callbacks. That is, this class can be used when you wish to execute a function (of the signature described below) using the Command/Observer design pattern in VTK. The callback function should have the form
void func(vtkObject*, unsigned long eid, void* clientdata, void *calldata)
where the parameter vtkObject* is the object invoking the event; eid is the event id (see vtkCommand.h); clientdata is special data that should is associated with this instance of vtkCallbackCommand; and calldata is data that the vtkObject::InvokeEvent() may send with the callback. For example, the invocation of the ProgressEvent sends along the progress value as calldata.
@sa vtkCommand vtkOldStyleCallbackCommand
Implementations§
Source§impl vtkCallbackCommand
impl vtkCallbackCommand
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new vtkCallbackCommand wrapped inside vtkNew
Trait Implementations§
Source§impl Default for vtkCallbackCommand
impl Default for vtkCallbackCommand
Auto Trait Implementations§
impl Freeze for vtkCallbackCommand
impl RefUnwindSafe for vtkCallbackCommand
impl !Send for vtkCallbackCommand
impl !Sync for vtkCallbackCommand
impl Unpin for vtkCallbackCommand
impl UnwindSafe for vtkCallbackCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more