This file is indexed.

/usr/include/IGSTK/igstkTrackerToolObserverToOpenIGTLinkRelay.h is in libigstk4-dev 4.4.0-6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
/*=========================================================================

  Program:   Image Guided Surgery Software Toolkit
  Module:    $RCSfile: igstkTrackerToolObserverToOpenIGTLinkRelay.h,v $
  Language:  C++
  Date:      $Date: 2010-12-01 15:08:27 $
  Version:   $Revision: 1.4 $

  Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
  See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#ifndef __igstkTrackerToolObserverToOpenIGTLinkRelay_h
#define __igstkTrackerToolObserverToOpenIGTLinkRelay_h

#include "igstkObject.h"
#include "igstkMacros.h"
#include "igstkStateMachine.h"
#include "igstkTrackerTool.h"

#include "igtlOSUtil.h"
#include "igtlTransformMessage.h"
#include "igtlClientSocket.h"


namespace igstk
{
/** \class TrackerToolObserverToOpenIGTLinkRelay
 *
 *  \brief This class observe a TrackerTool for Transforms events and relay
 *  them to a socket connection.
 *
 */

class TrackerToolObserverToOpenIGTLinkRelay  : public Object
{

public:

  /** Macro with standard traits declarations. */
  igstkStandardClassTraitsMacro( TrackerToolObserverToOpenIGTLinkRelay, Object )

public:

  void RequestSetPort( int port );

  void RequestSetHostName( const char * hostname );
  
  void RequestSetDeviceName( const char * devicename );

  void RequestSetTrackerTool( const TrackerTool * tracker );

  void RequestStart();

protected:

  /** Constructor is protected in order to enforce
   *  the use of the New() operator */
  TrackerToolObserverToOpenIGTLinkRelay(void);

  virtual ~TrackerToolObserverToOpenIGTLinkRelay(void);

  /** Print the object information. */
  virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;

  void ResendTransformThroughOpenIGTLink(
    itk::Object * caller, const itk::EventObject & event );

  typedef itk::MemberCommand< TrackerToolObserverToOpenIGTLinkRelay >   
                                                                   ObserverType;


private:

  ObserverType::Pointer       m_Observer;

  TrackerTool::ConstPointer   m_TrackerTool;

  vtkMatrix4x4              * m_Matrix;

  unsigned int                m_Tag;

  int                         m_Port;

  std::string                 m_HostName;

  igtl::ClientSocket::Pointer m_Socket;

  igtl::TransformMessage::Pointer m_TransformMessage;

};

} // end of namespace igstk

#endif //__igstk_TrackerToolObserverToOpenIGTLinkRelay_h_