VTK
dox/Views/vtkRenderedRepresentation.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkRenderedRepresentation.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 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00025 #ifndef __vtkRenderedRepresentation_h
00026 #define __vtkRenderedRepresentation_h
00027 
00028 #include "vtkDataRepresentation.h"
00029 #include "vtkSmartPointer.h" // for SP ivars
00030 #include "vtkUnicodeString.h" // for string
00031 
00032 class vtkApplyColors;
00033 class vtkProp;
00034 class vtkRenderView;
00035 class vtkRenderWindow;
00036 class vtkTextProperty;
00037 class vtkTexture;
00038 class vtkView;
00039 
00040 class VTK_VIEWS_EXPORT vtkRenderedRepresentation : public vtkDataRepresentation
00041 {
00042 public:
00043   static vtkRenderedRepresentation* New();
00044   vtkTypeMacro(vtkRenderedRepresentation, vtkDataRepresentation);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00051   vtkSetMacro(LabelRenderMode, int);
00052   vtkGetMacro(LabelRenderMode, int);
00054 
00055 protected:
00056   vtkRenderedRepresentation();
00057   ~vtkRenderedRepresentation();
00058 
00060 
00063   void AddPropOnNextRender(vtkProp* p);
00064   void RemovePropOnNextRender(vtkProp* p);
00066 
00072   vtkUnicodeString GetHoverText(vtkView* view, vtkProp* prop, vtkIdType cell);
00073 
00075 
00076   virtual vtkUnicodeString GetHoverTextInternal(vtkSelection*)
00077     { return vtkUnicodeString(); }
00079 
00082   virtual void PrepareForRendering(vtkRenderView* view);
00083 
00084   //BTX
00085   friend class vtkRenderView;
00086   class Internals;
00087   Internals* Implementation;
00088   //ETX
00089 
00090   int LabelRenderMode;
00091 
00092 private:
00093   vtkRenderedRepresentation(const vtkRenderedRepresentation&); // Not implemented
00094   void operator=(const vtkRenderedRepresentation&);   // Not implemented
00095 };
00096 
00097 #endif
00098