|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkAnariSceneGraph * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | Build (bool prepass) override |
| Builds objects for this renderer.
|
|
virtual void | Render (bool prepass) override |
| Traverse graph in ANARI's preferred order and render.
|
|
virtual void | Invalidate (bool prepass) override |
| Invalidates cached rendering data.
|
|
void | SetUpdateWorldOnly (bool onlyUpdateWorld=false) |
| When passing 'true', the renderer will skip actually rendering frame.
|
|
void | AddLight (anari::Light) |
| Methods for other nodes to access.
|
|
void | AddSurface (anari::Surface) |
| Accessed by the AnariPolyDataMapperNode to an ANARISurface to the world.
|
|
void | AddVolume (anari::Volume) |
| Accessed by the AnariVolumeMapperNode to add Volumes to the world.
|
|
void | SetCamera (anari::Camera) |
| Accessed by the AnariCameraNode to set the ANARICamera on the ANARIFrame.
|
|
anari::Device | GetDeviceHandle () const |
| Get the ANARI back-end device.
|
|
anari::Renderer | GetRendererHandle () const |
| Get the currently set ANARI renderer.
|
|
const anari::Extensions & | GetAnariDeviceExtensions () const |
| Get the extensions supported by the current back-end device.
|
|
virtual const unsigned char * | GetBuffer () |
| Get the last rendered ColorBuffer.
|
|
virtual const float * | GetZBuffer () |
| Get the last rendered ZBuffer.
|
|
virtual void | Traverse (int operation) override |
|
vtkRenderer * | GetRenderer () |
| Convenience method to get and downcast renderable.
|
|
virtual void | WriteLayer (unsigned char *buffer, float *zbuffer, int buffx, int buffy, int layer) |
| Put my results into the correct place in the provided pixel buffer.
|
|
void | InvalidateSceneStructure () |
| Indicate that a new RenderTraversal of children needs to occur next frame.
|
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkRendererNode * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
void | Build (bool prepass) override |
| Build containers for our child nodes.
|
|
virtual int * | GetSize () |
| Get/Set the framebuffer size.
|
|
virtual void | GetSize (int &, int &) |
|
virtual void | GetSize (int[2]) |
|
virtual void | SetSize (int, int) |
|
void | SetSize (int[2]) |
|
virtual double * | GetViewport () |
| Get/Set the window viewport.
|
|
virtual void | GetViewport (double &, double &, double &, double &) |
|
virtual void | GetViewport (double[4]) |
|
virtual void | SetViewport (double, double, double, double) |
|
virtual void | SetViewport (double[4]) |
|
virtual int * | GetScale () |
| Get/Set the window tile scale.
|
|
virtual void | GetScale (int &, int &) |
|
virtual void | GetScale (int[2]) |
|
virtual void | SetScale (int, int) |
|
void | SetScale (int[2]) |
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkViewNode * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | Build (bool) |
| Builds myself.
|
|
virtual void | Synchronize (bool) |
| Ensures that my state agrees with my Renderable's.
|
|
virtual void | Render (bool) |
| Makes calls to make self visible.
|
|
virtual void | Invalidate (bool) |
| Clear any cached data.
|
|
vtkViewNode * | GetViewNodeFor (vtkObject *) |
| Returns the view node that corresponding to the provided object Will return NULL if a match is not found in self or descendents.
|
|
vtkViewNode * | GetFirstAncestorOfType (const char *type) |
| Find the first parent/grandparent of the desired type.
|
|
vtkViewNode * | GetFirstChildOfType (const char *type) |
| Find the first child of the desired type.
|
|
virtual void | SetRenderable (vtkObject *) |
| Allow explicit setting of the renderable for a view node.
|
|
virtual void | Traverse (int operation) |
|
virtual void | TraverseAllPasses () |
|
virtual vtkObject * | GetRenderable () |
| This is the VTK class that this node stands in for.
|
|
virtual void | SetParent (vtkViewNode *) |
| Access the node that owns this one.
|
|
virtual vtkViewNode * | GetParent () |
| Access the node that owns this one.
|
|
virtual std::list< vtkViewNode * > const & | GetChildren () |
| Access nodes that this one owns.
|
|
virtual void | SetMyFactory (vtkViewNodeFactory *) |
| A factory that creates particular subclasses for different rendering back ends.
|
|
virtual vtkViewNodeFactory * | GetMyFactory () |
| A factory that creates particular subclasses for different rendering back ends.
|
|
| 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 | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
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 std::string | GetObjectDescription () const |
| The object description printed in messages and PrintSelf output.
|
|
virtual vtkTypeBool | IsA (const char *name) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
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 vtkAnariSceneGraph * | New () |
|
static vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkAnariSceneGraph * | SafeDownCast (vtkObjectBase *o) |
|
static vtkInformationIntegerKey * | ACCUMULATION_COUNT () |
| Set the number of frames to render which are accumulated to result in a better converged image.
|
|
static void | SetAccumulationCount (vtkRenderer *renderer, int) |
| Convenience method to set/get ACCUMULATION_COUNT on a vtkRenderer.
|
|
static int | GetAccumulationCount (vtkRenderer *renderer) |
|
static vtkInformationIntegerKey * | COMPOSITE_ON_GL () |
| used to make the renderer add ANARI's content onto GL rendered content on the window
|
|
static void | SetCompositeOnGL (vtkRenderer *renderer, int) |
| Convenience method to set/get COMPOSITE_ON_GL on a vtkRenderer.
|
|
static int | GetCompositeOnGL (vtkRenderer *renderer) |
|
static vtkRendererNode * | New () |
|
static vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkRendererNode * | SafeDownCast (vtkObjectBase *o) |
|
static vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkViewNode * | SafeDownCast (vtkObjectBase *o) |
|
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.
|
|
links vtkRenderers to ANARI
This class acts as a root node managing an anari::Frame and everything within it. The anari::Frame is the top-level object to render images using ANARI, containing the anari::Camera, anari::World, and anari::Renderer all from a particular anari::Device. vtkAnariSceneGraph expects to be given the anari::Device and anari::Renderer externally, which are managed by other classes which use vtkAnariSceneGraph (e.g. vtkAnariPass and vtkAnariWindowNode). vtkAnariSceneGraph expects to be given a valid anari::Device before any scene graph traversals occur.
- Thanks:
- Kevin Griffin kgrif.nosp@m.fin@.nosp@m.nvidi.nosp@m.a.co.nosp@m.m for creating and contributing the class and NVIDIA for supporting this work.
- Tests:
- vtkAnariSceneGraph (Tests)
Definition at line 41 of file vtkAnariSceneGraph.h.