110#ifndef vtkShaderProperty_h
111#define vtkShaderProperty_h
115#include "vtkRenderingCoreModule.h"
118VTK_ABI_NAMESPACE_BEGIN
161 vtkSetStringMacro(VertexShaderCode);
162 vtkGetStringMacro(VertexShaderCode);
163 vtkSetStringMacro(FragmentShaderCode);
164 vtkGetStringMacro(FragmentShaderCode);
165 vtkSetStringMacro(GeometryShaderCode);
166 vtkGetStringMacro(GeometryShaderCode);
167 vtkSetStringMacro(TessControlShaderCode);
168 vtkGetStringMacro(TessControlShaderCode);
169 vtkSetStringMacro(TessEvaluationShaderCode);
170 vtkGetStringMacro(TessEvaluationShaderCode);
195 const std::string& replacementValue,
bool replaceAll) = 0;
198 const std::string& replacementValue,
bool replaceAll) = 0;
201 const std::string& replacementValue,
bool replaceAll) = 0;
204 const std::string& replacementValue,
bool replaceAll) = 0;
207 const std::string& replacementValue,
bool replaceAll) = 0;
211 std::string& replacementValue,
bool& replaceAll) = 0;
213 const std::string& originalValue,
bool replaceFirst) = 0;
215 const std::string& originalValue,
bool replaceFirst) = 0;
217 const std::string& originalValue,
bool replaceFirst) = 0;
219 const std::string& originalValue,
bool replaceFirst) = 0;
221 const std::string& originalValue,
bool replaceFirst) = 0;
a simple class to control print indentation
Allocate and hold a VTK object.
abstract base class for most VTK objects
represent GPU shader properties
bool HasTessControlShaderCode()
Allow the program to set the shader codes used directly instead of using the built in templates.
bool HasFragmentShaderCode()
Allow the program to set the shader codes used directly instead of using the built in templates.
void DeepCopy(vtkShaderProperty *p)
Assign one property to another.
virtual int GetNumberOfShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
~vtkShaderProperty() override
vtkMTimeType GetShaderMTime()
GetShaderMTime returns the last time a modification was made that affected the code of the shader (ei...
virtual void ClearGeometryShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
This function enables you to apply your own substitutions to the shader creation process.
vtkNew< vtkUniforms > TessEvaluationCustomUniforms
virtual void ClearTessControlShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void ClearAllGeometryShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void ClearAllFragmentShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void ClearTessEvaluationShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void ClearAllTessEvalShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void AddTessControlShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void ClearAllVertexShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void AddVertexShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
This function enables you to apply your own substitutions to the shader creation process.
bool HasGeometryShaderCode()
Allow the program to set the shader codes used directly instead of using the built in templates.
virtual void AddGeometryShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
This function enables you to apply your own substitutions to the shader creation process.
char * GeometryShaderCode
vtkNew< vtkUniforms > GeometryCustomUniforms
bool HasVertexShaderCode()
Allow the program to set the shader codes used directly instead of using the built in templates.
virtual void ClearAllTessControlShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void ClearAllShaderReplacements()=0
This function enables you to apply your own substitutions to the shader creation process.
char * FragmentShaderCode
virtual void ClearFragmentShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void AddTessEvaluationShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
This function enables you to apply your own substitutions to the shader creation process.
vtkNew< vtkUniforms > FragmentCustomUniforms
virtual void GetNthShaderReplacement(vtkIdType index, std::string &name, bool &replaceFirst, std::string &replacementValue, bool &replaceAll)=0
This function enables you to apply your own substitutions to the shader creation process.
virtual std::string GetNthShaderReplacementTypeAsString(vtkIdType index)=0
This function enables you to apply your own substitutions to the shader creation process.
virtual void AddFragmentShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
This function enables you to apply your own substitutions to the shader creation process.
vtkNew< vtkUniforms > VertexCustomUniforms
static vtkShaderProperty * New()
Construct object with no shader replacements.
vtkNew< vtkUniforms > TessControlCustomUniforms
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * TessEvaluationShaderCode
bool HasTessEvalShaderCode()
Allow the program to set the shader codes used directly instead of using the built in templates.
virtual void ClearVertexShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
This function enables you to apply your own substitutions to the shader creation process.
char * TessControlShaderCode
vtkTypeUInt32 vtkMTimeType