VTK
dox/IO/Export/vtkRIBProperty.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkRIBProperty.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00030 #ifndef __vtkRIBProperty_h
00031 #define __vtkRIBProperty_h
00032 
00033 #include "vtkIOExportModule.h" // For export macro
00034 #include "vtkProperty.h"
00035 
00036 class vtkRIBRenderer;
00037 
00038 class VTKIOEXPORT_EXPORT vtkRIBProperty : public vtkProperty
00039 {
00040 public:
00041   static vtkRIBProperty *New();
00042   vtkTypeMacro(vtkRIBProperty,vtkProperty);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkSetStringMacro(SurfaceShader);
00048   vtkGetStringMacro(SurfaceShader);
00050 
00052 
00053   vtkSetStringMacro(DisplacementShader);
00054   vtkGetStringMacro(DisplacementShader);
00056 
00058 
00059   void SetVariable (char *variable, char *declaration);
00060   void AddVariable (char *variable, char *declaration);
00062 
00064   char *GetDeclarations ();
00065 
00067 
00068   void SetParameter (char *parameter, char *value);
00069   void AddParameter (char *parameter, char *value);
00071 
00073   char *GetParameters ();
00074 
00075 protected:
00076   vtkRIBProperty();
00077   ~vtkRIBProperty();
00078 
00079   void Render(vtkActor *a, vtkRenderer *ren);
00080   vtkProperty *Property;
00081   char *SurfaceShader;
00082   char *DisplacementShader;
00083   char *Declarations;
00084   char *Parameters;
00085 private:
00086   vtkRIBProperty(const vtkRIBProperty&);  // Not implemented.
00087   void operator=(const vtkRIBProperty&);  // Not implemented.
00088 };
00089 
00090 #endif