 |
VTK
9.0.1
|
Go to the documentation of this file.
30 #ifndef vtkOpenGLShaderProperty_h
31 #define vtkOpenGLShaderProperty_h
33 #include "vtkRenderingOpenGL2Module.h"
58 const std::string& replacementValue,
bool replaceAll)
override;
61 const std::string& replacementValue,
bool replaceAll)
override;
64 const std::string& replacementValue,
bool replaceAll)
override;
69 std::string& replacementValue,
bool& replaceAll)
override;
90 const std::string& replacementValue,
bool replaceAll);
92 const std::string& originalValue,
bool replaceFirst);
102 typedef std::map<vtkShader::ReplacementSpec, vtkShader::ReplacementValue>
ReplacementMap;
represent GPU shader properties
virtual void GetNthShaderReplacement(vtkIdType index, std::string &name, bool &replaceFirst, std::string &replacementValue, bool &replaceAll)=0
virtual void AddFragmentShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
virtual int GetNumberOfShaderReplacements()=0
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.
virtual void ClearGeometryShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
virtual void AddGeometryShaderReplacement(const std::string &originalValue, bool replaceFirst, const std::string &replacementValue, bool replaceAll)=0
ReplacementMap UserShaderReplacements
const ReplacementMap & GetAllShaderReplacements()
a simple class to control print indentation
Type
Available shader types.
virtual std::string GetNthShaderReplacementTypeAsString(vtkIdType index)=0
virtual void ClearVertexShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
std::map< vtkShader::ReplacementSpec, vtkShader::ReplacementValue > ReplacementMap
GetAllShaderReplacements returns all user-specified shader replacements.
void DeepCopy(vtkShaderProperty *p)
Assign one property to another.
represent GPU shader properties
virtual void ClearFragmentShaderReplacement(const std::string &originalValue, bool replaceFirst)=0
virtual void ClearAllShaderReplacements()=0
virtual void ClearAllGeometryShaderReplacements()=0
virtual void ClearAllVertexShaderReplacements()=0
virtual void ClearAllFragmentShaderReplacements()=0
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkShaderProperty * New()
Construct object with no shader replacements.