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 =========================================================================*/
30 #ifndef __vtkRIBProperty_h
31 #define __vtkRIBProperty_h
32 
33 #include "vtkProperty.h"
34 
35 class vtkRIBRenderer;
36 
38 {
39 public:
40  static vtkRIBProperty *New();
41  vtkTypeMacro(vtkRIBProperty,vtkProperty);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkSetStringMacro(SurfaceShader);
47  vtkGetStringMacro(SurfaceShader);
49 
51 
52  vtkSetStringMacro(DisplacementShader);
53  vtkGetStringMacro(DisplacementShader);
55 
57 
58  void SetVariable (char *variable, char *declaration);
59  void AddVariable (char *variable, char *declaration);
61 
63  char *GetDeclarations ();
64 
66 
67  void SetParameter (char *parameter, char *value);
68  void AddParameter (char *parameter, char *value);
70 
72  char *GetParameters ();
73 
74 protected:
76  ~vtkRIBProperty();
77 
78  void Render(vtkActor *a, vtkRenderer *ren);
82  char *Declarations;
83  char *Parameters;
84 private:
85  vtkRIBProperty(const vtkRIBProperty&); // Not implemented.
86  void operator=(const vtkRIBProperty&); // Not implemented.
87 };
88 
89 #endif