VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkWebGLWidget.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 =========================================================================*/ 00020 #ifndef vtkWebGLWidget_h 00021 #define vtkWebGLWidget_h 00022 00023 #include "vtkWebGLObject.h" 00024 #include "vtkWebGLExporterModule.h" // needed for export macro 00025 00026 #include <vector> // Needed to store colors 00027 00028 class vtkActor2D; 00029 00030 class VTKWEBGLEXPORTER_EXPORT vtkWebGLWidget : public vtkWebGLObject 00031 { 00032 public: 00033 static vtkWebGLWidget* New(); 00034 vtkTypeMacro(vtkWebGLWidget, vtkWebGLObject); 00035 void PrintSelf(ostream &os, vtkIndent indent); 00036 00037 void GenerateBinaryData(); 00038 unsigned char* GetBinaryData(int part); 00039 int GetBinarySize(int part); 00040 int GetNumberOfParts(); 00041 00042 void GetDataFromColorMap(vtkActor2D* actor); 00043 00044 protected: 00045 vtkWebGLWidget(); 00046 ~vtkWebGLWidget(); 00047 00048 unsigned char* binaryData; 00049 int binarySize; 00050 int orientation; 00051 char* title; 00052 char* textFormat; 00053 int textPosition; 00054 float position[2]; 00055 float size[2]; 00056 int numberOfLabels; 00057 std::vector <double*>colors; //x, r, g, b 00058 00059 private: 00060 vtkWebGLWidget(const vtkWebGLWidget&); // Not implemented 00061 void operator=(const vtkWebGLWidget&); // Not implemented 00062 00063 }; 00064 00065 #endif