Section: Visualization Toolkit Geo Vis Classes
Sources are multi-threaded. Each source may have one or more worker threads associated with it, which this superclass manages. It is essential that the FetchChild() method is thread-safe, since it may be called from multiple workers simultaneously.
To create an instance of class vtkGeoSource, simply invoke its constructor as follows
obj = vtkGeoSource
obj
is an instance of the vtkGeoSource class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkGeoSource = obj.NewInstance ()
vtkGeoSource = obj.SafeDownCast (vtkObject o)
vtkGeoSource = obj.()
~vtkGeoSource = obj.()
bool = obj.FetchRoot (vtkGeoTreeNode root)
- Blocking access methods to be implemented in subclasses.
bool = obj.FetchChild (vtkGeoTreeNode node, int index, vtkGeoTreeNode child)
- Blocking access methods to be implemented in subclasses.
obj.RequestChildren (vtkGeoTreeNode node)
- Non-blocking methods for to use from the main application.
After calling RequestChildren() for a certain node,
GetRequestedNodes() will after a certain period of time return a
non-null pointer to a collection of four vtkGeoTreeNode objects,
which are the four children of the requested node.
The collection is reference counted, so you need to eventually
call Delete() on the returned collection pointer (if it is non-null).
vtkCollection = obj.GetRequestedNodes (vtkGeoTreeNode node)
- Non-blocking methods for to use from the main application.
After calling RequestChildren() for a certain node,
GetRequestedNodes() will after a certain period of time return a
non-null pointer to a collection of four vtkGeoTreeNode objects,
which are the four children of the requested node.
The collection is reference counted, so you need to eventually
call Delete() on the returned collection pointer (if it is non-null).
obj.Initialize (int numThreads)
- Spawn worker threads.
obj.ShutDown ()
- Shut down the source. This terminates the thread and releases memory.
obj.WorkerThread ()
vtkAbstractTransform = obj.GetTransform ()