Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkShaderBallScene Class Reference

Used as part of the pqMaterialEditor to display the current selected material in a simple scene containing a sphere and a plane. More...

#include <vtkShaderBallScene.h>

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

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
 
virtual vtkGenericOpenGLRenderWindowGetWindow ()
 Returns the render window where the scene is rendered. More...
 
virtual vtkRendererGetRenderer ()
 Returns the renderer for the simple scene. More...
 
void Render ()
 Renders the scene. More...
 
void ResetOSPrayPass ()
 Resets the vtkOSPRayPass of the scene. More...
 
void Modified () override
 
void SetMaterialName (const char *)
 Updates the sphere material with the given material name Default is empty. More...
 
const char * GetMaterialName () const
 Updates the sphere material with the given material name Default is empty. More...
 
void SetNumberOfSamples (int numberOfSamples)
 Setup the number of samples to use in the Shader ball scene. More...
 
int GetNumberOfSamples () const
 Setup the number of samples to use in the Shader ball scene. More...
 
void SetVisible (bool visible)
 Set the value of visible and render the scene if value is true. More...
 
virtual bool GetVisible ()
 Set the value of visible and render the scene if value is true. More...
 
virtual void VisibleOn ()
 Set the value of visible and render the scene if value is true. More...
 
virtual void VisibleOff ()
 Set the value of visible and render the scene if value is true. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
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)
 
vtkCommandGetCommand (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)
 
vtkCommandGetCommand (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 vtkShaderBallSceneNew ()
 
static int IsTypeOf (const char *type)
 
static vtkShaderBallSceneSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
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 vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkShaderBallScene ()
 
virtual ~vtkShaderBallScene ()
 
- 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 &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Used as part of the pqMaterialEditor to display the current selected material in a simple scene containing a sphere and a plane.

Definition at line 23 of file vtkShaderBallScene.h.

Member Typedef Documentation

◆ Superclass

Definition at line 27 of file vtkShaderBallScene.h.

Constructor & Destructor Documentation

◆ vtkShaderBallScene()

vtkShaderBallScene::vtkShaderBallScene ( )
protected

◆ ~vtkShaderBallScene()

virtual vtkShaderBallScene::~vtkShaderBallScene ( )
protectedvirtual

Member Function Documentation

◆ New()

static vtkShaderBallScene* vtkShaderBallScene::New ( )
static

◆ GetClassName()

virtual const char* vtkShaderBallScene::GetClassName ( )
virtual

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkObjectBase.

◆ SafeDownCast()

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

◆ PrintSelf()

void vtkShaderBallScene::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkObject.

◆ GetWindow()

virtual vtkGenericOpenGLRenderWindow* vtkShaderBallScene::GetWindow ( )
virtual

Returns the render window where the scene is rendered.

◆ GetRenderer()

virtual vtkRenderer* vtkShaderBallScene::GetRenderer ( )
virtual

Returns the renderer for the simple scene.

◆ SetMaterialName()

void vtkShaderBallScene::SetMaterialName ( const char *  )

Updates the sphere material with the given material name Default is empty.

◆ GetMaterialName()

const char* vtkShaderBallScene::GetMaterialName ( ) const

Updates the sphere material with the given material name Default is empty.

◆ SetNumberOfSamples()

void vtkShaderBallScene::SetNumberOfSamples ( int  numberOfSamples)

Setup the number of samples to use in the Shader ball scene.

Default is 2.

◆ GetNumberOfSamples()

int vtkShaderBallScene::GetNumberOfSamples ( ) const

Setup the number of samples to use in the Shader ball scene.

Default is 2.

◆ SetVisible()

void vtkShaderBallScene::SetVisible ( bool  visible)

Set the value of visible and render the scene if value is true.

Default is false.

◆ GetVisible()

virtual bool vtkShaderBallScene::GetVisible ( )
virtual

Set the value of visible and render the scene if value is true.

Default is false.

◆ VisibleOn()

virtual void vtkShaderBallScene::VisibleOn ( )
virtual

Set the value of visible and render the scene if value is true.

Default is false.

◆ VisibleOff()

virtual void vtkShaderBallScene::VisibleOff ( )
virtual

Set the value of visible and render the scene if value is true.

Default is false.

◆ Render()

void vtkShaderBallScene::Render ( )

Renders the scene.

◆ ResetOSPrayPass()

void vtkShaderBallScene::ResetOSPrayPass ( )

Resets the vtkOSPRayPass of the scene.

This must be called when the widget containing this class is pop upped, otherwise it crashes.

The problems comes from vtkOSPRayPass.cxx::RenderInternal where the shader is destroyed whenever the window is poped out

◆ Modified()

void vtkShaderBallScene::Modified ( )
overridevirtual

Reimplemented from vtkObject.


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