Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkRIBProperty.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRIBProperty.h,v $
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 =========================================================================*/
00042 #ifndef __vtkRIBProperty_h
00043 #define __vtkRIBProperty_h
00044 
00045 #include "vtkProperty.h"
00046 
00047 class vtkRIBRenderer;
00048 
00049 class VTK_HYBRID_EXPORT vtkRIBProperty : public vtkProperty
00050 {
00051 public:
00052   static vtkRIBProperty *New();
00053   vtkTypeRevisionMacro(vtkRIBProperty,vtkProperty);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057 
00058   vtkSetStringMacro(SurfaceShader);
00059   vtkGetStringMacro(SurfaceShader);
00061   
00063 
00064   vtkSetStringMacro(DisplacementShader);
00065   vtkGetStringMacro(DisplacementShader);
00067   
00069 
00070   void SetVariable (char *variable, char *declaration);
00071   void AddVariable (char *variable, char *declaration);
00073   
00075   char *GetDeclarations ();
00076   
00078 
00079   void SetParameter (char *parameter, char *value);
00080   void AddParameter (char *parameter, char *value);
00082   
00084   char *GetParameters ();
00085   
00086 protected:
00087   vtkRIBProperty();
00088   ~vtkRIBProperty();
00089 
00090   void Render(vtkActor *a, vtkRenderer *ren);
00091   vtkProperty *Property;
00092   char *SurfaceShader;
00093   char *DisplacementShader;
00094   char *Declarations;
00095   char *Parameters;
00096 private:
00097   vtkRIBProperty(const vtkRIBProperty&);  // Not implemented.
00098   void operator=(const vtkRIBProperty&);  // Not implemented.
00099 };
00100 
00101 #endif