Ray casts every WebGPU volume in a renderer in one pass.
Volume rendering only composites correctly when the volumes that share a ray are sampled together. Handing each vtkVolume to its own mapper and letting each mapper draw in turn cannot do that: every mapper would composite a finished image over the previous one, which is wrong wherever two volumes occupy the same space and is order dependent everywhere else.
This class is where the volumes of a renderer are brought back together. Each vtkWebGPUVolumeRayCastMapper prepares its own inputs, uploading textures and tabulating transfer functions, and then offers them to the coordinator of the renderer it is drawing into. Once the opaque geometry has been rasterized, the coordinator marches one set of rays through everything it was offered and composites the result over the frame a single time.
Nothing has to be assembled by hand for this to happen. Adding several vtkVolume props to a renderer is enough, whether they overlap or not, and whether they came from one mapper with several inputs or from a mapper each. A vtkMultiVolume still works but is no longer needed.
There is one coordinator per renderer, created on demand and released with the renderer.
- See also
- vtkWebGPUVolumeRayCastMapper
- Examples:
- vtkWebGPUVolumeRayCastCoordinator (Examples)
- Tests:
- vtkWebGPUVolumeRayCastCoordinator (Tests)
Definition at line 49 of file vtkWebGPUVolumeRayCastCoordinator.h.
|
| virtual vtkTypeBool | IsA (const char *type) |
| | Return 1 if this class is the same type of (or a subclass of) the named class.
|
| vtkWebGPUVolumeRayCastCoordinator * | NewInstance () const |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| | Methods invoked by print to print information about the object including superclasses.
|
| virtual int | GetNumberOfVolumes () |
| | How many inputs were gathered for the frame being drawn.
|
| virtual bool | GetComplete () |
| | Whether the bricks the last frame asked for were all resident.
|
| vtkInternals * | GetInternals () |
| virtual void | SetPoolBrickSize (int) |
| | Edge length, in voxels, of the bricks every volume of this renderer is cut into.
|
| virtual int | GetPoolBrickSize () |
| | Edge length, in voxels, of the bricks every volume of this renderer is cut into.
|
| virtual void | SetBrickPoolSizeMB (int) |
| | How much device memory the shared brick pool may take, in megabytes, and how many bricks may be brought in per frame.
|
| virtual int | GetBrickPoolSizeMB () |
| | How much device memory the shared brick pool may take, in megabytes, and how many bricks may be brought in per frame.
|
| virtual void | SetMaximumBricksPerFrame (int) |
| | How much device memory the shared brick pool may take, in megabytes, and how many bricks may be brought in per frame.
|
| virtual int | GetMaximumBricksPerFrame () |
| | How much device memory the shared brick pool may take, in megabytes, and how many bricks may be brought in per frame.
|
| void | Render (vtkRenderer *renderer) |
| | Called by vtkWebGPUVolumeRayCastMapper as it moves through the stages of a frame.
|
| void | ReleaseGraphicsResources (vtkWebGPUVolumeRayCastMapper *mapper) |
| | Called by vtkWebGPUVolumeRayCastMapper as it moves through the stages of a frame.
|
| bool | GetImageColor (vtkImageData *output) |
| | Copy what the last render to image produced into output.
|
| bool | GetImageDepth (int scalarType, vtkImageData *output) |
| | Copy what the last render to image produced into output.
|
| | vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
| virtual void | DebugOn () |
| | Turn debugging output on.
|
| virtual void | DebugOff () |
| | Turn debugging output off.
|
| bool | GetDebug () |
| | Get the value of the debug flag.
|
| void | SetDebug (bool debugFlag) |
| | Set the value of the debug flag.
|
| virtual void | Modified () |
| | Update the modification time for this object.
|
| virtual vtkMTimeType | GetMTime () |
| | Return this object's modified time.
|
| void | RemoveObserver (unsigned long tag) |
| void | RemoveObservers (unsigned long event) |
| void | RemoveObservers (const char *event) |
| void | RemoveAllObservers () |
| vtkTypeBool | HasObserver (unsigned long event) |
| vtkTypeBool | HasObserver (const char *event) |
| vtkTypeBool | InvokeEvent (unsigned long event) |
| vtkTypeBool | InvokeEvent (const char *event) |
| std::string | GetObjectDescription () const override |
| | The object description printed in messages and PrintSelf output.
|
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| vtkCommand * | GetCommand (unsigned long tag) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| void | RemoveObserver (vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| void | RemoveObservers (const char *event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
| | Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
| template<class U, class T> |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| | Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
| template<class U, class T> |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| | Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
| template<class U, class T> |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| | Allow user to set the AbortFlagOn() with the return value of the callback method.
|
| vtkTypeBool | InvokeEvent (unsigned long event, void *callData) |
| | This method invokes an event and return whether the event was aborted or not.
|
| vtkTypeBool | InvokeEvent (const char *event, void *callData) |
| | This method invokes an event and return whether the event was aborted or not.
|
| virtual void | SetObjectName (const std::string &objectName) |
| | Set/get the name of this object for reporting purposes.
|
| virtual std::string | GetObjectName () const |
| | Set/get the name of this object for reporting purposes.
|
| const char * | GetClassName () const |
| | Return the class name as a string.
|
| virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
| | Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
| virtual void | Delete () |
| | Delete a VTK object.
|
| virtual void | FastDelete () |
| | Delete a reference to this object.
|
| void | InitializeObjectBase () |
| void | Print (ostream &os) |
| | Print an object to an ostream.
|
| void | Register (vtkObjectBase *o) |
| | Increase the reference count (mark as used by another object).
|
| virtual void | UnRegister (vtkObjectBase *o) |
| | Decrease the reference count (release by another object).
|
| int | GetReferenceCount () |
| | Return the current reference count of this object.
|
| void | SetReferenceCount (int) |
| | Sets the reference count.
|
| bool | GetIsInMemkind () const |
| | A local state flag that remembers whether this object lives in the normal or extended memory space.
|
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| | Methods invoked by print to print information about the object including superclasses.
|
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| | Methods invoked by print to print information about the object including superclasses.
|
| virtual bool | UsesGarbageCollector () const |
| | Indicate whether the class uses vtkGarbageCollector or not.
|
|
| static vtkWebGPUVolumeRayCastCoordinator * | New () |
| static vtkTypeBool | IsTypeOf (const char *type) |
| static vtkWebGPUVolumeRayCastCoordinator * | SafeDownCast (vtkObjectBase *o) |
| static vtkWebGPUVolumeRayCastCoordinator * | GetForRenderer (vtkRenderer *renderer) |
| | The coordinator of renderer, created the first time it is asked for and released when the renderer goes away.
|
| static void | ReleaseAll () |
| | Forget the coordinators of every renderer.
|
| static vtkObject * | New () |
| | Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
| static void | BreakOnError () |
| | This method is called when vtkErrorMacro executes.
|
| static void | SetGlobalWarningDisplay (vtkTypeBool val) |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| static void | GlobalWarningDisplayOn () |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| static void | GlobalWarningDisplayOff () |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| static vtkTypeBool | GetGlobalWarningDisplay () |
| | This is a global flag that controls whether any debug, warning or error messages are displayed.
|
| static vtkTypeBool | IsTypeOf (const char *name) |
| | Return 1 if this class type is the same type of (or a subclass of) the named class.
|
| static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
| | Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
| static vtkObjectBase * | New () |
| | Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
| static void | SetMemkindDirectory (const char *directoryname) |
| | The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
|
| static bool | GetUsingMemkind () |
| | A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.
|