VTK
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 =========================================================================*/
31 #ifndef vtkRIBProperty_h
32 #define vtkRIBProperty_h
33 
34 #include "vtkIOExportModule.h" // For export macro
35 #include "vtkProperty.h"
36 
37 class vtkRIBRenderer;
38 
39 class VTKIOEXPORT_EXPORT vtkRIBProperty : public vtkProperty
40 {
41 public:
42  static vtkRIBProperty *New();
43  vtkTypeMacro(vtkRIBProperty,vtkProperty);
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
58  vtkSetMacro(SurfaceShaderUsesDefaultParameters, bool);
59  vtkGetMacro(SurfaceShaderUsesDefaultParameters, bool);
60  vtkBooleanMacro(SurfaceShaderUsesDefaultParameters, bool);
62 
64 
67  vtkSetStringMacro(SurfaceShader);
68  vtkGetStringMacro(SurfaceShader);
70 
72 
75  vtkSetStringMacro(DisplacementShader);
76  vtkGetStringMacro(DisplacementShader);
78 
80 
83  void SetVariable (const char *variable, const char *declaration);
84  void AddVariable (const char *variable, const char *declaration);
86 
90  char *GetDeclarations ();
91 
93 
97  void SetParameter (const char *parameter, const char *value);
98  void AddParameter (const char *parameter, const char *value);
100 
102 
105  void SetSurfaceShaderParameter (const char *parameter, const char *value);
106  void AddSurfaceShaderParameter (const char *parameter, const char *value);
108 
110 
113  void SetDisplacementShaderParameter (const char *parameter, const char *value);
114  void AddDisplacementShaderParameter (const char *parameter, const char *value);
116 
118 
121  char *GetParameters (); // DEPRECATED: use GetSurfaceShaderParameters instead.
122  char *GetSurfaceShaderParameters ();
123  char *GetDisplacementShaderParameters ();
125 
126 protected:
127  vtkRIBProperty();
128  ~vtkRIBProperty() override;
129 
130  void Render(vtkActor *a, vtkRenderer *ren) override;
138 
139 private:
140  vtkRIBProperty(const vtkRIBProperty&) = delete;
141  void operator=(const vtkRIBProperty&) = delete;
142 };
143 
144 #endif
virtual void Render(vtkActor *, vtkRenderer *)
This method causes the property to set up whatever is required for its instance variables.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
static vtkProperty * New()
Construct object with object color, ambient color, diffuse color, specular color, and edge color whit...
represent surface properties of a geometric object
Definition: vtkProperty.h:66
char * DisplacementShader
RIP Property.
bool SurfaceShaderUsesDefaultParameters
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkProperty * Property
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * DisplacementShaderParameters
char * SurfaceShaderParameters