ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkIceTContext Class Reference

This is a helper class for vtkIceTRenderManager and vtkOpenGLIceTRenderer. More...

#include <vtkIceTContext.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void MakeCurrent ()
 Make this context the current one. More...
 
virtual void CopyState (vtkIceTContext *src)
 Copy the state from the given context to this context. More...
 
virtual int IsValid ()
 Returns true if the current state is valid. More...
 
virtual void SetController (vtkMultiProcessController *controller)
 Associate the context with the given controller. More...
 
virtual vtkMultiProcessController * GetController ()
 Associate the context with the given controller. More...
 
virtual int GetUseOpenGL ()
 Turn this on to enable the OpenGL layer in IceT. More...
 
virtual void SetUseOpenGL (int flag)
 Turn this on to enable the OpenGL layer in IceT. More...
 
virtual void UseOpenGLOn ()
 Turn this on to enable the OpenGL layer in IceT. More...
 
virtual void UseOpenGLOff ()
 Turn this on to enable the OpenGL layer in IceT. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkIceTContextSafeDownCast (vtkObject *o)
 
static vtkIceTContextNew ()
 

Protected Member Functions

 vtkIceTContext ()
 
 ~vtkIceTContext ()
 

Protected Attributes

vtkMultiProcessController * Controller
 
int UseOpenGL
 

Detailed Description

This is a helper class for vtkIceTRenderManager and vtkOpenGLIceTRenderer.

Most users will never need this class.

This class was conceived to pass IceT contexts between vtkIceTRenderManager and vtkOpenGLIceTRenderer without having to include the IceT header file in either class. Along the way, some functionality was added.

Bug:
If you set the communicator to NULL and then to a valid value, the IceT state will be lost.
See also
vtkIceTRenderManager

Definition at line 51 of file vtkIceTContext.h.

Member Typedef Documentation

◆ Superclass

typedef vtkObject vtkIceTContext::Superclass

Definition at line 54 of file vtkIceTContext.h.

Constructor & Destructor Documentation

◆ vtkIceTContext()

vtkIceTContext::vtkIceTContext ( )
protected

◆ ~vtkIceTContext()

vtkIceTContext::~vtkIceTContext ( )
protected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkIceTContext::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkIceTContext::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkIceTContext::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkIceTContext* vtkIceTContext::SafeDownCast ( vtkObject *  o)
static

◆ New()

static vtkIceTContext* vtkIceTContext::New ( )
static

◆ PrintSelf()

virtual void vtkIceTContext::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

◆ SetController()

virtual void vtkIceTContext::SetController ( vtkMultiProcessController *  controller)
virtual

Associate the context with the given controller.

Currently, this must be a vtkMPIController. The context is not valid until a controller is set.

◆ GetController()

virtual vtkMultiProcessController* vtkIceTContext::GetController ( )
virtual

Associate the context with the given controller.

Currently, this must be a vtkMPIController. The context is not valid until a controller is set.

◆ MakeCurrent()

virtual void vtkIceTContext::MakeCurrent ( )
virtual

Make this context the current one.

◆ GetUseOpenGL()

virtual int vtkIceTContext::GetUseOpenGL ( )
virtual

Turn this on to enable the OpenGL layer in IceT.

By default this is off. Unless you explicitly plan to use the OpenGL layer, it should probably remain off to ensure that you don't accidentally use a feature you did not intend to use.

◆ SetUseOpenGL()

virtual void vtkIceTContext::SetUseOpenGL ( int  flag)
virtual

Turn this on to enable the OpenGL layer in IceT.

By default this is off. Unless you explicitly plan to use the OpenGL layer, it should probably remain off to ensure that you don't accidentally use a feature you did not intend to use.

◆ UseOpenGLOn()

virtual void vtkIceTContext::UseOpenGLOn ( )
virtual

Turn this on to enable the OpenGL layer in IceT.

By default this is off. Unless you explicitly plan to use the OpenGL layer, it should probably remain off to ensure that you don't accidentally use a feature you did not intend to use.

◆ UseOpenGLOff()

virtual void vtkIceTContext::UseOpenGLOff ( )
virtual

Turn this on to enable the OpenGL layer in IceT.

By default this is off. Unless you explicitly plan to use the OpenGL layer, it should probably remain off to ensure that you don't accidentally use a feature you did not intend to use.

◆ CopyState()

virtual void vtkIceTContext::CopyState ( vtkIceTContext src)
virtual

Copy the state from the given context to this context.

◆ IsValid()

virtual int vtkIceTContext::IsValid ( )
virtual

Returns true if the current state is valid.

Member Data Documentation

◆ Controller

vtkMultiProcessController* vtkIceTContext::Controller
protected

Definition at line 99 of file vtkIceTContext.h.

◆ UseOpenGL

int vtkIceTContext::UseOpenGL
protected

Definition at line 101 of file vtkIceTContext.h.


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