VTK
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
vtkJavaCommand Class Reference

#include <vtkJavaUtil.h>

Inheritance diagram for vtkJavaCommand:
[legend]
Collaboration diagram for vtkJavaCommand:
[legend]

Public Member Functions

void SetGlobalRef (jobject obj)
 
void SetMethodID (jmethodID id)
 
void AssignJavaVM (JNIEnv *env)
 
void Execute (vtkObject *, unsigned long, void *)
 
- Public Member Functions inherited from vtkCommand
virtual int IsA (const char *type)
 
vtkCommandNewInstance () const
 
void UnRegister ()
 
virtual void UnRegister (vtkObjectBase *)
 
void SetAbortFlag (int f)
 
int GetAbortFlag ()
 
void AbortFlagOn ()
 
void AbortFlagOff ()
 
void SetPassiveObserver (int f)
 
int GetPassiveObserver ()
 
void PassiveObserverOn ()
 
void PassiveObserverOff ()
 
 vtkCommand ()
 
virtual ~vtkCommand ()
 
 vtkCommand (const vtkCommand &c)
 
void operator= (const vtkCommand &)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkJavaCommandNew ()
 
- Static Public Member Functions inherited from vtkCommand
static int IsTypeOf (const char *type)
 
static vtkCommandSafeDownCast (vtkObjectBase *o)
 
static const char * GetStringFromEventId (unsigned long event)
 
static unsigned long GetEventIdFromString (const char *event)
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Public Attributes

JavaVM * vm
 
jobject uobj
 
jmethodID mid
 
- Public Attributes inherited from vtkCommand
vtkEventDeclarationMacro(EventIds) protected int PassiveObserver
 

Protected Member Functions

 vtkJavaCommand ()
 
 ~vtkJavaCommand ()
 
- Protected Member Functions inherited from vtkCommand
virtual vtkObjectBaseNewInstanceInternal () const
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Public Types inherited from vtkCommand
typedef vtkObjectBase Superclass
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Definition at line 70 of file vtkJavaUtil.h.

Constructor & Destructor Documentation

vtkJavaCommand::vtkJavaCommand ( )
protected
vtkJavaCommand::~vtkJavaCommand ( )
protected

Member Function Documentation

static vtkJavaCommand* vtkJavaCommand::New ( void  )
inlinestatic

Definition at line 73 of file vtkJavaUtil.h.

void vtkJavaCommand::SetGlobalRef ( jobject  obj)
inline

Definition at line 75 of file vtkJavaUtil.h.

void vtkJavaCommand::SetMethodID ( jmethodID  id)
inline

Definition at line 76 of file vtkJavaUtil.h.

void vtkJavaCommand::AssignJavaVM ( JNIEnv *  env)
inline

Definition at line 77 of file vtkJavaUtil.h.

void vtkJavaCommand::Execute ( vtkObject caller,
unsigned  eventId,
void *  callData 
)
virtual

All derived classes of vtkCommand must implement this method. This is the method that actually does the work of the callback. The caller argument is the object invoking the event, the eventId parameter is the id of the event, and callData parameter is data that can be passed into the execute method. (Note: vtkObject::InvokeEvent() takes two parameters: the event id (or name) and call data. Typically call data is NULL, but the user can package data and pass it this way. Alternatively, a derived class of vtkCommand can be used to pass data.)

Implements vtkCommand.

Member Data Documentation

JavaVM* vtkJavaCommand::vm

Definition at line 81 of file vtkJavaUtil.h.

jobject vtkJavaCommand::uobj

Definition at line 82 of file vtkJavaUtil.h.

jmethodID vtkJavaCommand::mid

Definition at line 83 of file vtkJavaUtil.h.


The documentation for this class was generated from the following file: