VTK
|
GLSL Shader Program. More...
#include <vtkGLSLShaderProgram.h>
Public Types | |
typedef vtkShaderProgram | Superclass |
![]() | |
![]() |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Render (vtkActor *actor, vtkRenderer *renderer) |
virtual void | PostRender (vtkActor *, vtkRenderer *) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
unsigned int | GetProgram () |
![]() | |
virtual vtkXMLMaterial * | GetMaterial () |
virtual void | SetMaterial (vtkXMLMaterial *) |
int | AddShader (vtkShader *shader) |
void | RemoveShader (int index) |
void | RemoveShader (vtkShader *shader) |
vtkCollectionIterator * | NewShaderIterator () |
int | GetNumberOfShaders () |
virtual void | ReadMaterial () |
virtual void | AddShaderVariable (const char *name, int numVars, int *x) |
virtual void | AddShaderVariable (const char *name, int numVars, float *x) |
virtual void | AddShaderVariable (const char *name, int numVars, double *x) |
virtual vtkShaderDeviceAdapter * | GetShaderDeviceAdapter () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
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 *) |
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) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
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) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkGLSLShaderProgram * | SafeDownCast (vtkObject *o) |
static vtkGLSLShaderProgram * | New () |
![]() | |
static vtkShaderProgram * | CreateShaderProgram (int type) |
![]() | |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Protected Member Functions | |
vtkGLSLShaderProgram () | |
virtual | ~vtkGLSLShaderProgram () |
virtual vtkShader * | NewShader () |
virtual void | LoadExtensions (vtkRenderWindow *) |
int | IsProgram () |
int | IsLinked () |
int | IsAttached (vtkGLSLShader *shader) |
virtual void | Link () |
virtual void | SetInfo (const char *) |
virtual char * | GetInfo () |
void | GetProgramInfo () |
void | GetInfoLog () |
![]() | |
vtkShaderProgram () | |
~vtkShaderProgram () | |
virtual void | SetGLExtensionsLoaded (int) |
virtual int | GetGLExtensionsLoaded () |
void | SetShaderDeviceAdapter (vtkShaderDeviceAdapter *) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
unsigned int | Program |
char * | Info |
![]() | |
vtkXMLMaterial * | Material |
vtkCollection * | ShaderCollection |
vtkCollectionIterator * | ShaderCollectionIterator |
int | GLExtensionsLoaded |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
GLSL Shader Program.
vtkGLSLShaderProgram is a concerete implementation of vtkShaderProgram. It's main function is to 'Link' a vertex and a fragment shader together and install them into the rendering pipeline by calling OpenGL2.0.
Initialization of shader parameters is delegated to instances of vtkShader (vtkGLSLShader in this case).
Definition at line 47 of file vtkGLSLShaderProgram.h.
Reimplemented from vtkShaderProgram.
Definition at line 50 of file vtkGLSLShaderProgram.h.
|
protected |
|
protectedvirtual |
|
virtual |
Reimplemented from vtkShaderProgram.
|
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 vtkShaderProgram.
|
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 vtkShaderProgram.
|
static |
Reimplemented from vtkShaderProgram.
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
|
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 vtkShaderProgram.
|
virtual |
Implements vtkShaderProgram.
|
virtual |
Called to unload the shaders after the actor has been rendered.
Reimplemented from vtkShaderProgram.
|
virtual |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkShaderProgram.
|
inline |
Return the OpenGL program id.
Definition at line 71 of file vtkGLSLShaderProgram.h.
|
protectedvirtual |
Creates and returns a new vtkGLSLShader.
Implements vtkShaderProgram.
|
protectedvirtual |
Reimplemented from vtkShaderProgram.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
Definition at line 84 of file vtkGLSLShaderProgram.h.
|
protected |
Definition at line 91 of file vtkGLSLShaderProgram.h.