00001 /*========================================================================= 00002 00003 Program: ParaView 00004 Module: $RCSfile: vtkSMCubeAxesDisplayProxy.h,v $ 00005 00006 Copyright (c) Kitware, Inc. 00007 All rights reserved. 00008 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/ 00022 #ifndef __vtkSMCubeAxesDisplayProxy_h 00023 #define __vtkSMCubeAxesDisplayProxy_h 00024 00025 00026 #include "vtkSMConsumerDisplayProxy.h" 00027 00028 class vtkDataSet; 00029 class vtkPVDataInformation; 00030 class vtkProp; 00031 class vtkSMProxy; 00032 class vtkProperty; 00033 class vtkSMSourceProxy; 00034 class vtkUnstructuredGrid; 00035 class vtkSMRenderModuleProxy; 00036 00037 00038 class VTK_EXPORT vtkSMCubeAxesDisplayProxy : public vtkSMConsumerDisplayProxy 00039 { 00040 public: 00041 static vtkSMCubeAxesDisplayProxy* New(); 00042 vtkTypeRevisionMacro(vtkSMCubeAxesDisplayProxy, vtkSMConsumerDisplayProxy); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 virtual void AddToRenderModule(vtkSMRenderModuleProxy*); 00048 virtual void RemoveFromRenderModule(vtkSMRenderModuleProxy*); 00050 00053 virtual void AddInput(vtkSMSourceProxy* input, const char*, int); 00054 00057 virtual void SetInput(vtkSMProxy* input); 00058 00060 00061 virtual void SetVisibility(int v); 00062 vtkGetMacro(Visibility,int); 00064 00066 virtual void Update(); 00067 00069 virtual void CacheUpdate(int idx, int total); 00070 00072 virtual void InvalidateGeometry(); 00073 00077 virtual void MarkConsumersAsModified(); 00078 00079 protected: 00080 vtkSMCubeAxesDisplayProxy(); 00081 ~vtkSMCubeAxesDisplayProxy(); 00082 00083 virtual void RemoveAllCaches(); 00084 int NumberOfCaches; 00085 double **Caches; 00086 00087 int GeometryIsValid; 00088 int Visibility; 00089 00090 vtkSMRenderModuleProxy* RenderModuleProxy; 00091 vtkSMProxy* CubeAxesProxy; 00092 vtkSMSourceProxy* Input; 00093 00094 virtual void CreateVTKObjects(int num); 00095 00096 vtkSMCubeAxesDisplayProxy(const vtkSMCubeAxesDisplayProxy&); // Not implemented 00097 void operator=(const vtkSMCubeAxesDisplayProxy&); // Not implemented 00098 }; 00099 00100 #endif