This file is indexed.

/usr/include/IGSTK/igstkSceneGraphNode.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/*=========================================================================

  Program:   Image Guided Surgery Software Toolkit
  Module:    $RCSfile: igstkSceneGraphNode.h,v $
  Language:  C++
  Date:      $Date: 2010-11-16 05:46:36 $
  Version:   $Revision: 1.3 $

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

#include <iostream>
#include "igstkTransform.h"
#include "igstkCoordinateSystem.h"

namespace igstk 
{

/** \class SceneGraphNode
 * 
 * \brief Class to represent each of the nodes of the 
 * scene graph.
 *
 */

class SceneGraphNode
{
public:
   
  /**  Constructor.
  */
   SceneGraphNode(void);

   /**  Destructor.
  */
  virtual ~SceneGraphNode(void);
      
  /**  Get/Set value of x coordinate of the node in FLTK window. */
  igstkGetMacro(XC1, int); 
  igstkSetMacro(XC1, int); 

  /**  Get/Set value of y coordinate of the node in FLTK window. */
  igstkGetMacro(YC1, int);
  igstkSetMacro(YC1, int);

  /**  Get/Set value of flag to set if this node is in the current transform
  * being computed.*/
  igstkGetMacro(IsCurrentTransform, bool);
  igstkSetMacro(IsCurrentTransform, bool);

  /**  Get/Set value of flag to indicate if this is selected by the user.*/
  igstkGetMacro(IsSelected, bool);
  igstkSetMacro(IsSelected, bool);

  /**  Get/Set value of flag to set if this node is in the current inverse transform
  * being computed.*/
  igstkGetMacro(IsCurrentInverseTransform, bool);
  igstkSetMacro(IsCurrentInverseTransform, bool);

  //Previously handled by macros, but there seem to be valgrind issues.
  CoordinateSystem*GetCoordinateSystem()
    { 
    return(m_CoordinateSystem);
    };
  void SetCoordinateSystem(CoordinateSystem* coordinateSystem)
    {
    if (coordinateSystem != NULL)
      {
      m_CoordinateSystem = coordinateSystem;
      }
    };
  SceneGraphNode* GetParent()
    { 
    return(m_Parent);
    };
  void SetParent(SceneGraphNode* parent)
    {
    if (parent != NULL)
      {
      m_Parent = parent;
      }
    };
  typedef std::list<SceneGraphNode*> SceneGraphNodeList;
  SceneGraphNodeList* GetChildren()
    { 
    return(m_Children);
    };
  void SetChildren(SceneGraphNodeList *children)
    {
    if (children != NULL)
      {
      m_Children = children;
      }
    };
  char *GetName()
    { 
    return(m_Name);
    };
  void SetName(char* name)
    {
    if (name != NULL)
      {
      m_Name = name;
      }
    };
  char *GetType()
    { 
    return(m_Type);
    };
  void SetType(char* type)
    {
    if (type != NULL)
      {
      m_Type = type;
      }
    };
          

  /**  Get/Set Reference to the transform with parent coordiante system.*/
  igstkGetMacro(ParentTransform, Transform); 
  igstkSetMacro(ParentTransform, Transform); 
      
private:
  /**  x coordinate of the node in FLTK window.
  */
  int m_XC1;

  /**  y coordinate of the node in FLTK window.
  */
  int m_YC1;

  /**  Flag to set if this node is in the current transform
  * being computed.
  */
  bool m_IsCurrentTransform;

  /**  Flag to indicate if this is selected by the user.
  */
  bool m_IsSelected;

  /**  Flag to set if this node is in the current inverse transform
  * being computed.
  */
  bool m_IsCurrentInverseTransform;

  /**  Reference to the parent node.
  */
  SceneGraphNode* m_Parent;

  /**  Name of the node.
  */
  char* m_Name;

  /**  Type of the node (Spatial Object/View/
  * TrackerTool/Tracker).
  */
  char* m_Type;

  /**  Reference to the coordinate system object 
  * represented by this node.
  */
  CoordinateSystem* m_CoordinateSystem;

  /**  List of children.
  */
  std::list<SceneGraphNode*> *m_Children;

  /**  Reference to the transform with parent coordiante system.
  */
  Transform m_ParentTransform;

};
}
#endif