VTK
|
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 "vtkViewsInfovisModule.h" // For export macro 00029 #include "vtkDataRepresentation.h" 00030 #include "vtkSmartPointer.h" // for SP ivars 00031 #include "vtkUnicodeString.h" // for string 00032 00033 class vtkApplyColors; 00034 class vtkProp; 00035 class vtkRenderView; 00036 class vtkRenderWindow; 00037 class vtkTextProperty; 00038 class vtkTexture; 00039 class vtkView; 00040 00041 class VTKVIEWSINFOVIS_EXPORT vtkRenderedRepresentation : public vtkDataRepresentation 00042 { 00043 public: 00044 static vtkRenderedRepresentation* New(); 00045 vtkTypeMacro(vtkRenderedRepresentation, vtkDataRepresentation); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 00052 vtkSetMacro(LabelRenderMode, int); 00053 vtkGetMacro(LabelRenderMode, int); 00055 00056 protected: 00057 vtkRenderedRepresentation(); 00058 ~vtkRenderedRepresentation(); 00059 00061 00064 void AddPropOnNextRender(vtkProp* p); 00065 void RemovePropOnNextRender(vtkProp* p); 00067 00073 vtkUnicodeString GetHoverText(vtkView* view, vtkProp* prop, vtkIdType cell); 00074 00076 00077 virtual vtkUnicodeString GetHoverTextInternal(vtkSelection*) 00078 { return vtkUnicodeString(); } 00080 00083 virtual void PrepareForRendering(vtkRenderView* view); 00084 00085 //BTX 00086 friend class vtkRenderView; 00087 class Internals; 00088 Internals* Implementation; 00089 //ETX 00090 00091 int LabelRenderMode; 00092 00093 private: 00094 vtkRenderedRepresentation(const vtkRenderedRepresentation&); // Not implemented 00095 void operator=(const vtkRenderedRepresentation&); // Not implemented 00096 }; 00097 00098 #endif 00099