defines ParaViewWeb application interface. More...
#include <vtkPVWebApplication.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
bool | GetHasImagesBeingProcessed (vtkSMViewProxy *) |
StillRenderToString() need not necessary returns the most recently rendered image. More... | |
bool | HandleInteractionEvent (vtkSMViewProxy *view, vtkWebInteractionEvent *event) |
Communicate mouse interaction to a view. More... | |
void | InvalidateCache (vtkSMViewProxy *view) |
Invalidate view cache. More... | |
const char * | GetWebGLSceneMetaData (vtkSMViewProxy *view) |
Return the Meta data description of the input scene in JSON format. More... | |
const char * | GetWebGLBinaryData (vtkSMViewProxy *view, const char *id, int partIndex) |
Return the binary data given the part index and the webGL object piece id in the scene. More... | |
vtkUnsignedCharArray * | StillRender (vtkSMViewProxy *view, int quality=100) |
Render a view and obtain the rendered image. More... | |
vtkUnsignedCharArray * | InteractiveRender (vtkSMViewProxy *view, int quality=50) |
Render a view and obtain the rendered image. More... | |
const char * | StillRenderToString (vtkSMViewProxy *view, unsigned long time=0, int quality=100) |
Render a view and obtain the rendered image. More... | |
vtkUnsignedCharArray * | StillRenderToBuffer (vtkSMViewProxy *view, unsigned long time=0, int quality=100) |
Render a view and obtain the rendered image. More... | |
virtual vtkMTimeType | GetLastStillRenderToMTime () |
Return the MTime of the last array exported by StillRenderToString, StillRenderToBuffer. More... | |
virtual int * | GetLastStillRenderImageSize () |
Return the size of the last image exported. More... | |
virtual void | GetLastStillRenderImageSize (int &, int &) |
Return the size of the last image exported. More... | |
virtual void | GetLastStillRenderImageSize (int [2]) |
Return the size of the last image exported. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
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) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkPVWebApplication * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVWebApplication * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkPVWebApplication () | |
~vtkPVWebApplication () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
int | ImageEncoding |
int | ImageCompression |
vtkMTimeType | LastStillRenderToMTime |
int | LastStillRenderImageSize [3] |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
enum | { ENCODING_NONE = 0, ENCODING_BASE64 = 1 } |
Set the encoding to be used for rendered images. More... | |
virtual void | SetImageEncoding (int) |
Set the encoding to be used for rendered images. More... | |
virtual int | GetImageEncoding () |
Set the encoding to be used for rendered images. More... | |
enum | { COMPRESSION_NONE = 0, COMPRESSION_PNG = 1, COMPRESSION_JPEG = 2 } |
Set the compression to be used for rendered images. More... | |
virtual void | SetImageCompression (int) |
Set the compression to be used for rendered images. More... | |
virtual int | GetImageCompression () |
Set the compression to be used for rendered images. More... | |
defines ParaViewWeb application interface.
vtkPVWebApplication defines the core interface for a ParaViewWeb application. This exposes methods that make it easier to manage views and rendered images from views.
Definition at line 22 of file vtkPVWebApplication.h.
Definition at line 26 of file vtkPVWebApplication.h.
anonymous enum |
Set the encoding to be used for rendered images.
Enumerator | |
---|---|
ENCODING_NONE | |
ENCODING_BASE64 |
Definition at line 33 of file vtkPVWebApplication.h.
anonymous enum |
Set the compression to be used for rendered images.
Enumerator | |
---|---|
COMPRESSION_NONE | |
COMPRESSION_PNG | |
COMPRESSION_JPEG |
Definition at line 46 of file vtkPVWebApplication.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
|
virtual |
Set the encoding to be used for rendered images.
|
virtual |
Set the encoding to be used for rendered images.
|
virtual |
Set the compression to be used for rendered images.
|
virtual |
Set the compression to be used for rendered images.
vtkUnsignedCharArray* vtkPVWebApplication::StillRender | ( | vtkSMViewProxy * | view, |
int | quality = 100 |
||
) |
Render a view and obtain the rendered image.
vtkUnsignedCharArray* vtkPVWebApplication::InteractiveRender | ( | vtkSMViewProxy * | view, |
int | quality = 50 |
||
) |
Render a view and obtain the rendered image.
const char* vtkPVWebApplication::StillRenderToString | ( | vtkSMViewProxy * | view, |
unsigned long | time = 0 , |
||
int | quality = 100 |
||
) |
Render a view and obtain the rendered image.
vtkUnsignedCharArray* vtkPVWebApplication::StillRenderToBuffer | ( | vtkSMViewProxy * | view, |
unsigned long | time = 0 , |
||
int | quality = 100 |
||
) |
Render a view and obtain the rendered image.
bool vtkPVWebApplication::GetHasImagesBeingProcessed | ( | vtkSMViewProxy * | ) |
StillRenderToString() need not necessary returns the most recently rendered image.
Use this method to get whether there are any pending images being processed concurrently.
bool vtkPVWebApplication::HandleInteractionEvent | ( | vtkSMViewProxy * | view, |
vtkWebInteractionEvent * | event | ||
) |
Communicate mouse interaction to a view.
Returns true if the interaction changed the view state, otherwise returns false.
void vtkPVWebApplication::InvalidateCache | ( | vtkSMViewProxy * | view | ) |
Invalidate view cache.
|
virtual |
Return the MTime of the last array exported by StillRenderToString, StillRenderToBuffer.
const char* vtkPVWebApplication::GetWebGLSceneMetaData | ( | vtkSMViewProxy * | view | ) |
Return the Meta data description of the input scene in JSON format.
This is using the vtkWebGLExporter to parse the scene. NOTE: This should be called before getting the webGL binary data.
const char* vtkPVWebApplication::GetWebGLBinaryData | ( | vtkSMViewProxy * | view, |
const char * | id, | ||
int | partIndex | ||
) |
Return the binary data given the part index and the webGL object piece id in the scene.
|
virtual |
Return the size of the last image exported.
Return the size of the last image exported.
|
virtual |
Return the size of the last image exported.
|
protected |
Definition at line 116 of file vtkPVWebApplication.h.
|
protected |
Definition at line 117 of file vtkPVWebApplication.h.
|
protected |
Definition at line 118 of file vtkPVWebApplication.h.
|
protected |
Definition at line 119 of file vtkPVWebApplication.h.