VTK  9.1.0
vtkRIBProperty.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRIBProperty.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
47#ifndef vtkRIBProperty_h
48#define vtkRIBProperty_h
49
50#include "vtkIOExportModule.h" // For export macro
51#include "vtkProperty.h"
52
53class vtkRIBRenderer;
54
55class VTKIOEXPORT_EXPORT vtkRIBProperty : public vtkProperty
56{
57public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
63
74 vtkSetMacro(SurfaceShaderUsesDefaultParameters, bool);
75 vtkGetMacro(SurfaceShaderUsesDefaultParameters, bool);
76 vtkBooleanMacro(SurfaceShaderUsesDefaultParameters, bool);
78
80
83 vtkSetStringMacro(SurfaceShader);
84 vtkGetStringMacro(SurfaceShader);
86
88
91 vtkSetStringMacro(DisplacementShader);
92 vtkGetStringMacro(DisplacementShader);
94
96
99 void SetVariable(const char* variable, const char* declaration);
100 void AddVariable(const char* variable, const char* declaration);
102
107
109
113 void SetParameter(const char* parameter, const char* value);
114 void AddParameter(const char* parameter, const char* value);
116
118
121 void SetSurfaceShaderParameter(const char* parameter, const char* value);
122 void AddSurfaceShaderParameter(const char* parameter, const char* value);
124
126
129 void SetDisplacementShaderParameter(const char* parameter, const char* value);
130 void AddDisplacementShaderParameter(const char* parameter, const char* value);
132
134
137 char* GetParameters(); // DEPRECATED: use GetSurfaceShaderParameters instead.
141
142protected:
144 ~vtkRIBProperty() override;
145
146 void Render(vtkActor* a, vtkRenderer* ren) override;
154
155private:
156 vtkRIBProperty(const vtkRIBProperty&) = delete;
157 void operator=(const vtkRIBProperty&) = delete;
158};
159
160#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
represent surface properties of a geometric object
Definition: vtkProperty.h:171
RIP Property.
char * GetDisplacementShaderParameters()
Get parameters.
void SetDisplacementShaderParameter(const char *parameter, const char *value)
Specify parameter values for displacement shader parameters.
char * GetDeclarations()
Get variable declarations.
char * GetParameters()
Get parameters.
void SetParameter(const char *parameter, const char *value)
Specify parameter values for variables.
bool SurfaceShaderUsesDefaultParameters
vtkProperty * Property
void SetSurfaceShaderParameter(const char *parameter, const char *value)
Specify parameter values for surface shader parameters.
static vtkRIBProperty * New()
char * GetSurfaceShaderParameters()
Get parameters.
void Render(vtkActor *a, vtkRenderer *ren) override
This method causes the property to set up whatever is required for its instance variables.
void AddDisplacementShaderParameter(const char *parameter, const char *value)
Specify parameter values for displacement shader parameters.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddSurfaceShaderParameter(const char *parameter, const char *value)
Specify parameter values for surface shader parameters.
void AddParameter(const char *parameter, const char *value)
Specify parameter values for variables.
void SetVariable(const char *variable, const char *declaration)
Specify declarations for variables.
char * SurfaceShaderParameters
char * DisplacementShaderParameters
char * DisplacementShader
~vtkRIBProperty() override
void AddVariable(const char *variable, const char *declaration)
Specify declarations for variables.
abstract specification for renderers
Definition: vtkRenderer.h:182