25#include "vtkRenderingOpenGL2Module.h"
63 std::string
GetSource()
const {
return this->Source; }
66 std::string
GetError()
const {
return this->Error; }
133 void operator=(
const vtkShader&) =
delete;
a simple class to control print indentation
abstract base class for most VTK objects
bool operator>(const ReplacementSpec &v1) const
vtkShader::Type ShaderType
std::string OriginalValue
bool operator<(const ReplacementSpec &v1) const
Vertex or Fragment shader, combined into a ShaderProgram.
void Cleanup()
Delete the shader.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Type GetType() const
Get the shader type, typically Vertex or Fragment.
std::string GetSource() const
Get the source for the shader.
std::string GetError() const
Get the error message (empty if none) for the shader.
bool Compile()
Compile the shader.
int GetHandle() const
Get the handle of the shader.
Type
Available shader types.
@ Geometry
Geometry shader.
@ Fragment
Fragment shader.
void SetSource(const std::string &source)
Set the shader source to the supplied string.
void SetType(Type type)
Set the shader type.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)