This file is indexed.

/usr/include/IGSTK/igstkConeObjectRepresentation.h is in libigstk4-dev 4.4.0-2build2.

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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*=========================================================================

  Program:   Image Guided Surgery Software Toolkit
  Module:    $RCSfile: igstkConeObjectRepresentation.h,v $
  Language:  C++
  Date:      $Date: 2008-02-11 01:41:50 $
  Version:   $Revision: 1.7 $

  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 __igstkConeObjectRepresentation_h
#define __igstkConeObjectRepresentation_h

#include "igstkMacros.h"
#include "igstkObjectRepresentation.h"
#include "igstkConeObject.h"
#include "vtkConeSource.h"
#include "igstkStateMachine.h"

namespace igstk
{

/** \class ConeObjectRepresentation
 * 
 * \brief This class represents a cone object. 
 *
 * The parameters of the object are the height of the object, and the radius.
 * Default representation axis is X.  The cylindrical object is rendered in a
 * VTK scene using the vtkConeSource object.
 * 
 * 
 *  \image html  igstkConeObjectRepresentation.png "State Machine Diagram" 
 *
 *  \image latex igstkConeObjectRepresentation.eps 
 *
 *  \ingroup ObjectRepresentation
 */

class ConeObjectRepresentation 
: public ObjectRepresentation
{

public:

  /** Macro with standard traits declarations. */
  igstkStandardClassTraitsMacro( ConeObjectRepresentation, 
                                 ObjectRepresentation )

public:

  /** Typedefs */
  typedef ConeObject                 ConeSpatialObjectType;

  /** Return a copy of the current object representation */
  Pointer Copy() const;

  /** Connect this representation class to the spatial object */
  void RequestSetConeObject( const ConeSpatialObjectType * coneObject );

protected:

  ConeObjectRepresentation( void );
  virtual ~ConeObjectRepresentation( void );

  ConeObjectRepresentation(const Self&); //purposely not implemented
  void operator=(const Self&);           //purposely not implemented

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

  /** Create the VTK actors */
  void CreateActors();

private:

  /** Internal itkSpatialObject */
  ConeSpatialObjectType::ConstPointer   m_ConeSpatialObject;

  /** VTK class that generates the geometrical representation of the cone */
  vtkConeSource * m_ConeSource;

  /** update the visual representation with changes in the geometry */
  virtual void UpdateRepresentationProcessing();

  /** Connect this representation class to the spatial object. Only to be
   * called by the State Machine. */
  void SetConeObjectProcessing(); 

  /** Method for performing a null operation during a 
   *  State Machine transition */
  void NoProcessing();

private:

  /** Inputs to the State Machine */
  igstkDeclareInputMacro( ValidConeObject );
  igstkDeclareInputMacro( NullConeObject );
  
  /** States for the State Machine */
  igstkDeclareStateMacro( NullConeObject );
  igstkDeclareStateMacro( ValidConeObject );

  ConeSpatialObjectType::ConstPointer m_ConeObjectToAdd;

};


} // end namespace igstk

#endif // __igstkConeObjectRepresentation_h