This file is indexed.

/usr/include/KWWidgets/vtkKWStateMachineDOTWriter.h is in libkwwidgets1-dev 1.0.0~cvs20100930-8.

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
184
185
186
187
/*=========================================================================

  Module:    $RCSfile: vtkKWStateMachineDOTWriter.h,v $

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/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 notice for more information.

=========================================================================*/
// .NAME vtkKWStateMachineDOTWriter - a state machine DOT writer.
// .SECTION Description
// This class is a state machine writer for the DOT format, based on the
// reference document: http://www.graphviz.org/Documentation/dotguide.pdf
// The resulting file can be rendered using dot:
//   dot -T png -o foo.png foo.txt
// It can also be used directly from a Wiki page if your MediaWiki supports
// the GraphViz extension (http://meta.wikimedia.org/wiki/GraphViz).
// A state machine is defined by a set of states, a set of inputs and a
// transition matrix that defines for each pair of (state,input) what is
// the next state to assume.
// .SECTION Thanks
// This work is part of the National Alliance for Medical Image
// Computing (NAMIC), funded by the National Institutes of Health
// through the NIH Roadmap for Medical Research, Grant U54 EB005149.
// Information on the National Centers for Biomedical Computing
// can be obtained from http://nihroadmap.nih.gov/bioinformatics.
// .SECTION See Also
// vtkKWStateMachineWriter vtkKWStateMachine

#ifndef __vtkKWStateMachineDOTWriter_h
#define __vtkKWStateMachineDOTWriter_h

#include "vtkKWStateMachineWriter.h"

class KWWidgets_EXPORT vtkKWStateMachineDOTWriter : public vtkKWStateMachineWriter
{
public:
  static vtkKWStateMachineDOTWriter* New();
  vtkTypeRevisionMacro(vtkKWStateMachineDOTWriter, vtkKWStateMachineWriter);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Write state machine representation to stream or file. 
  // Returns 1 on success and 0 on failure.
  virtual int WriteToStream(ostream& os);
  virtual int WriteToFile(const char *filename);

  // Description:
  // Set/Get the font name used for state labels. Defaults to Helvetica.
  // It is best to stick to Times, Helvetica, Courier or Symbol
  vtkGetStringMacro(StateFontName);
  vtkSetStringMacro(StateFontName);

  // Description:
  // Set/Get the font size used for state labels. Defaults to 9.
  vtkSetClampMacro(StateFontSize, int, 2, 200);
  vtkGetMacro(StateFontSize, int);

  // Description:
  // Set/Get the font color used for state labels. Defaults to black.
  vtkSetVector3Macro(StateFontColor,double);
  vtkGetVector3Macro(StateFontColor,double);

  // Description:
  // Set/Get the font name used for input labels. Defaults to Helvetica.
  // It is best to stick to Times, Helvetica, Courier or Symbol
  vtkGetStringMacro(InputFontName);
  vtkSetStringMacro(InputFontName);

  // Description:
  // Set/Get the font size used for input labels. Defaults to 8.
  vtkSetClampMacro(InputFontSize, int, 2, 200);
  vtkGetMacro(InputFontSize, int);

  // Description:
  // Set/Get the font color used for input labels. Defaults to blue.
  vtkSetVector3Macro(InputFontColor,double);
  vtkGetVector3Macro(InputFontColor,double);

  // Description:
  // Set/Get graph label (at the bottom of the graph).
  vtkGetStringMacro(GraphLabel);
  vtkSetStringMacro(GraphLabel);

  // Description:
  // Set/Get the font name used for graph labels. Defaults to Helvetica.
  // Graph labels do not include state or input labels.
  // It is best to stick to Times, Helvetica, Courier or Symbol
  vtkGetStringMacro(GraphFontName);
  vtkSetStringMacro(GraphFontName);

  // Description:
  // Set/Get the font size used for graph labels. Defaults to 12.
  // Graph labels do not include state or input labels.
  vtkSetClampMacro(GraphFontSize, int, 2, 200);
  vtkGetMacro(GraphFontSize, int);

  // Description:
  // Set/Get the font color used for graph labels. Defaults to black.
  // Graph labels do not include state or input labels.
  vtkSetVector3Macro(GraphFontColor,double);
  vtkGetVector3Macro(GraphFontColor,double);

  // Description:
  // Set/Get the preferred graph direction. Defaults to top to bottom.
  //BTX
  enum
  {
    GraphDirectionTopToBottom,
    GraphDirectionLeftToRight
  };
  //ETX
  vtkSetClampMacro(GraphDirection, int, GraphDirectionTopToBottom, GraphDirectionLeftToRight);
  vtkGetMacro(GraphDirection, int);
  virtual void SetGraphDirectionToTopToBottom();
  virtual void SetGraphDirectionToLeftToRight();

  // Description:
  // Set/Get if the all states should be put at the same rank.
  // If GraphDirection is TopToBottom, all nodes will share the same rank 
  // horizontally, except the clusters which will still be set up in a 
  // vertical fashion. If the GraphDirection is LeftToRight, all nodes
  // will share the same rank vertically, except the clusters which will still
  // be set up in a horizontal fashion. Experiment :)
  vtkBooleanMacro(PutStatesAtSameRank, int);
  vtkGetMacro(PutStatesAtSameRank, int);
  vtkSetMacro(PutStatesAtSameRank, int);

  // Description:
  // Set/Get if the callbacks/commands associated to the state and 
  // transitions should be shown (default) or hidden.
  vtkBooleanMacro(CommandVisibility, int);
  vtkGetMacro(CommandVisibility, int);
  vtkSetMacro(CommandVisibility, int);

  // Description:
  // Set/Get the font name used for cluster labels. Defaults to Helvetica.
  // It is best to stick to Times, Helvetica, Courier or Symbol
  vtkGetStringMacro(ClusterFontName);
  vtkSetStringMacro(ClusterFontName);

  // Description:
  // Set/Get the font size used for cluster labels. Defaults to 10.
  vtkSetClampMacro(ClusterFontSize, int, 2, 200);
  vtkGetMacro(ClusterFontSize, int);

  // Description:
  // Set/Get the font color used for cluster labels. Defaults to black.
  vtkSetVector3Macro(ClusterFontColor,double);
  vtkGetVector3Macro(ClusterFontColor,double);

protected:
  vtkKWStateMachineDOTWriter();
  ~vtkKWStateMachineDOTWriter();

  char *GraphLabel;
  char *GraphFontName;
  int GraphFontSize;
  double GraphFontColor[3];
  int GraphDirection;

  char *StateFontName;
  int StateFontSize;
  double StateFontColor[3];

  char *InputFontName;
  int InputFontSize;
  double InputFontColor[3];

  char *ClusterFontName;
  int ClusterFontSize;
  double ClusterFontColor[3];

  int PutStatesAtSameRank;
  int CommandVisibility;

private:

  vtkKWStateMachineDOTWriter(const vtkKWStateMachineDOTWriter&); // Not implemented
  void operator=(const vtkKWStateMachineDOTWriter&); // Not implemented
};

#endif