VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkWebApplication Class Reference

defines ParaViewWeb application interface. More...

#include <vtkWebApplication.h>

Inheritance diagram for vtkWebApplication:
Inheritance graph
[legend]
Collaboration diagram for vtkWebApplication:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkWebApplicationNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
bool GetHasImagesBeingProcessed (vtkRenderWindow *)
void InvalidateCache (vtkRenderWindow *view)
const char * GetWebGLSceneMetaData (vtkRenderWindow *view)
const char * GetWebGLBinaryData (vtkRenderWindow *view, const char *id, int partIndex)
vtkObjectIdMapGetObjectIdMap ()
vtkUnsignedCharArrayStillRender (vtkRenderWindow *view, int quality=100)
vtkUnsignedCharArrayInteractiveRender (vtkRenderWindow *view, int quality=50)
const char * StillRenderToString (vtkRenderWindow *view, unsigned long time=0, int quality=100)
bool HandleInteractionEvent (vtkRenderWindow *view, vtkWebInteractionEvent *event)
virtual unsigned long GetLastStillRenderToStringMTime ()

Static Public Member Functions

static vtkWebApplicationNew ()
static int IsTypeOf (const char *type)
static vtkWebApplicationSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkWebApplication ()
 ~vtkWebApplication ()

Protected Attributes

int ImageEncoding
int ImageCompression
unsigned long LastStillRenderToStringMTime
enum  { ENCODING_NONE = 0, ENCODING_BASE64 = 1 }
virtual void SetImageEncoding (int)
virtual int GetImageEncoding ()
enum  { COMPRESSION_NONE = 0, COMPRESSION_PNG = 1, COMPRESSION_JPEG = 2 }
virtual void SetImageCompression (int)
virtual int GetImageCompression ()

Detailed Description

defines ParaViewWeb application interface.

vtkWebApplication 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 34 of file vtkWebApplication.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 38 of file vtkWebApplication.h.


Member Enumeration Documentation

anonymous enum

Set the encoding to be used for rendered images.

Enumerator:
ENCODING_NONE 
ENCODING_BASE64 

Definition at line 43 of file vtkWebApplication.h.

anonymous enum

Set the compression to be used for rendered images.

Enumerator:
COMPRESSION_NONE 
COMPRESSION_PNG 
COMPRESSION_JPEG 

Definition at line 54 of file vtkWebApplication.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkWebApplication::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkWebApplication::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkWebApplication::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkWebApplication::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

virtual void vtkWebApplication::SetImageEncoding ( int  ) [virtual]

Set the encoding to be used for rendered images.

Set the encoding to be used for rendered images.

virtual void vtkWebApplication::SetImageCompression ( int  ) [virtual]

Set the compression to be used for rendered images.

Set the compression to be used for rendered images.

Render a view and obtain the rendered image.

Render a view and obtain the rendered image.

const char* vtkWebApplication::StillRenderToString ( vtkRenderWindow view,
unsigned long  time = 0,
int  quality = 100 
)

Render a view and obtain the rendered image.

StillRenderToString() need not necessary returns the most recently rendered image. Use this method to get whether there are any pending images being processed concurrently.

Communicate mouse interaction to a view. Returns true if the interaction changed the view state, otherwise returns false.

Invalidate view cache

virtual unsigned long vtkWebApplication::GetLastStillRenderToStringMTime ( ) [virtual]

Return the MTime of the last array exported by StillRenderToString.

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* vtkWebApplication::GetWebGLBinaryData ( vtkRenderWindow view,
const char *  id,
int  partIndex 
)

Return the binary data given the part index and the webGL object piece id in the scene.


Member Data Documentation

Definition at line 107 of file vtkWebApplication.h.

Definition at line 108 of file vtkWebApplication.h.

Definition at line 109 of file vtkWebApplication.h.


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