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 00067 //BTX 00073 vtkUnicodeString GetHoverText(vtkView* view, vtkProp* prop, vtkIdType cell); 00074 00076 00077 virtual vtkUnicodeString GetHoverTextInternal(vtkSelection*) 00078 { return vtkUnicodeString(); } 00079 //ETX 00081 00084 virtual void PrepareForRendering(vtkRenderView* view); 00085 00086 //BTX 00087 friend class vtkRenderView; 00088 class Internals; 00089 Internals* Implementation; 00090 //ETX 00091 00092 int LabelRenderMode; 00093 00094 private: 00095 vtkRenderedRepresentation(const vtkRenderedRepresentation&); // Not implemented 00096 void operator=(const vtkRenderedRepresentation&); // Not implemented 00097 }; 00098 00099 #endif 00100