VTK
dox/Rendering/vtkTDxMacDevice.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTDxMacDevice.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 =========================================================================*/
00027 #ifndef __vtkTDxMacDevice_h
00028 #define __vtkTDxMacDevice_h
00029 
00030 #include "vtkTDxDevice.h"
00031 
00032 //class vtkRenderWindowInteractor;
00033 #include <3dConnexionClient/ConnexionClientAPI.h> // 3DxMacWare SDK
00034 
00035 class VTK_RENDERING_EXPORT vtkTDxMacDevice : public vtkTDxDevice
00036 {
00037 public:
00038   static vtkTDxMacDevice *New();
00039   vtkTypeMacro(vtkTDxMacDevice,vtkTDxDevice);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00045   vtkGetStringMacro(ClientApplicationName);
00046   vtkSetStringMacro(ClientApplicationName);
00048   
00055   void Initialize();
00056   
00058   virtual void Close();
00059   
00065   void ProcessEvent(const ConnexionDeviceState *s);
00066   
00067 protected:
00070   vtkTDxMacDevice();
00071   
00074   virtual ~vtkTDxMacDevice();
00075 
00086   unsigned char *CStringToPascalString(const char *s);
00087   
00088   char *ClientApplicationName;
00089   
00090   UInt16 ClientID;
00091   UInt16 LastButtonState;
00092   
00093 private:
00094   vtkTDxMacDevice(const vtkTDxMacDevice&);  // Not implemented.
00095   void operator=(const vtkTDxMacDevice&);  // Not implemented.
00096 };
00097 
00098 #endif