Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
vtkXMLShader Class Reference

#include <vtkXMLShader.h>

Inheritance diagram for vtkXMLShader:
Collaboration diagram for vtkXMLShader:

Public Types

enum  ScopeCodes {
  SCOPE_NONE, SCOPE_MIXED, SCOPE_VERTEX, SCOPE_FRAGMENT,
  SCOPE_GEOMETRY
}
 

Public Member Functions

 vtkTypeMacro (vtkXMLShader, vtkObject)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
 vtkGetObjectMacro (RootElement, vtkXMLDataElement)
 
void SetRootElement (vtkXMLDataElement *)
 
int GetScope ()
 
int GetStyle ()
 
const char * GetName ()
 
const char * GetEntry ()
 
const char * GetCode ()
 
const char ** GetArgs ()
 

Static Public Member Functions

static vtkXMLShaderNew ()
 
static char * LocateFile (const char *filename)
 

Protected Member Functions

 vtkXMLShader ()
 
 ~vtkXMLShader ()
 
 vtkSetStringMacro (Code)
 
void SetSourceLibraryElement (vtkXMLDataElement *)
 
void CleanupArgs ()
 

Protected Attributes

char * Code
 
vtkXMLDataElement * RootElement
 
vtkXMLDataElement * SourceLibraryElement
 
char ** Args
 

Detailed Description

Definition at line 48 of file vtkXMLShader.h.

Member Enumeration Documentation

Enumerator
SCOPE_NONE 
SCOPE_MIXED 
SCOPE_VERTEX 
SCOPE_FRAGMENT 
SCOPE_GEOMETRY 

Definition at line 100 of file vtkXMLShader.h.

Constructor & Destructor Documentation

vtkXMLShader::vtkXMLShader ( )
protected

Definition at line 42 of file vtkXMLShader.cpp.

vtkXMLShader::~vtkXMLShader ( )
protected

Definition at line 47 of file vtkXMLShader.cpp.

References CleanupArgs(), RootElement, and SetSourceLibraryElement().

Member Function Documentation

void vtkXMLShader::CleanupArgs ( )
protected

Definition at line 225 of file vtkXMLShader.cpp.

References Args.

Referenced by GetArgs(), and ~vtkXMLShader().

const char ** vtkXMLShader::GetArgs ( )

Definition at line 192 of file vtkXMLShader.cpp.

References Args, CleanupArgs(), and RootElement.

Referenced by PrintSelf().

const char * vtkXMLShader::GetCode ( )

Definition at line 219 of file vtkXMLShader.cpp.

References RootElement.

const char * vtkXMLShader::GetEntry ( )

Definition at line 186 of file vtkXMLShader.cpp.

References RootElement.

Referenced by PrintSelf().

const char * vtkXMLShader::GetName ( )

Definition at line 180 of file vtkXMLShader.cpp.

References RootElement.

Referenced by PrintSelf(), and vtkXMLMaterial::SetRootElement().

int vtkXMLShader::GetScope ( )
int vtkXMLShader::GetStyle ( )

Definition at line 145 of file vtkXMLShader.cpp.

References RootElement.

Referenced by vtkXMLMaterial::GetShaderStyle().

char * vtkXMLShader::LocateFile ( const char *  filename)
static

Definition at line 70 of file vtkXMLShader.cpp.

References filename.

Referenced by vtkXMLMaterial::CreateInstance().

static vtkXMLShader* vtkXMLShader::New ( )
static
void vtkXMLShader::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override
void vtkXMLShader::SetRootElement ( vtkXMLDataElement *  root)

Definition at line 60 of file vtkXMLShader.cpp.

References RootElement, and SetSourceLibraryElement().

Referenced by vtkXMLMaterial::SetRootElement().

void vtkXMLShader::SetSourceLibraryElement ( vtkXMLDataElement *  )
protected

Referenced by SetRootElement(), and ~vtkXMLShader().

vtkXMLShader::vtkGetObjectMacro ( RootElement  ,
vtkXMLDataElement   
)
vtkXMLShader::vtkSetStringMacro ( Code  )
protected
vtkXMLShader::vtkTypeMacro ( vtkXMLShader  ,
vtkObject   
)

Member Data Documentation

char** vtkXMLShader::Args
protected

Definition at line 121 of file vtkXMLShader.h.

Referenced by CleanupArgs(), and GetArgs().

char* vtkXMLShader::Code
protected

Definition at line 114 of file vtkXMLShader.h.

vtkXMLDataElement* vtkXMLShader::RootElement
protected
vtkXMLDataElement* vtkXMLShader::SourceLibraryElement
protected

Definition at line 118 of file vtkXMLShader.h.


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