This file is indexed.

/usr/include/synfig-1.0/synfig/blinepoint.h is in libsynfig-dev 1.2.1-0ubuntu4.

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
/* === S Y N F I G ========================================================= */
/*!	\file blinepoint.h
**	\brief Template Header
**
**	$Id$
**
**	\legal
**	Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
**	This package is free software; you can redistribute it and/or
**	modify it under the terms of the GNU General Public License as
**	published by the Free Software Foundation; either version 2 of
**	the License, or (at your option) any later version.
**
**	This package is distributed in the hope that it will be useful,
**	but WITHOUT ANY WARRANTY; without even the implied warranty of
**	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
**	General Public License for more details.
**	\endlegal
*/
/* ========================================================================= */

/* === S T A R T =========================================================== */

#ifndef __SYNFIG_BLINEPOINT_H
#define __SYNFIG_BLINEPOINT_H

/* === H E A D E R S ======================================================= */

#include "vector.h"
#include "uniqueid.h"
#include <algorithm>

/* === M A C R O S ========================================================= */

/* === T Y P E D E F S ===================================================== */

/* === C L A S S E S & S T R U C T S ======================================= */

namespace synfig {

class BLinePoint : public UniqueID
{
private:
	Point	vertex_;
	Vector	tangent_[2];
	float	width_;
	float	origin_;
	bool	split_tangent_radius_;
	bool	split_tangent_angle_;
	bool	boned_vertex_;
	Point	vertex_setup_;

	// True if split_tangent_radius == split_tangent_angle == true otherwise false
	bool	split_tangent_both_;
	// True if split_tangent_radius == split_tangent_angle == false otherwise false
	bool	merge_tangent_both_;

	// Used to store the tangent2 when split_radius=true && split_angle==false
	Vector	tangent2_radius_split_;
	// Used to store the tangent2 when split_radius=false && split_angle==true
	Vector	tangent2_angle_split_;

	void	update_flags();
	void	update_tangent2();

public:

	BLinePoint():
		vertex_(Point(0,0)),
		width_(1),
		origin_(0.0),
		split_tangent_radius_(true),
		split_tangent_angle_(false),
		boned_vertex_(false),
		vertex_setup_(vertex_)
	{
		tangent_[0] = Point(0,0);
		tangent_[1] = Point(0,0);
		update_flags();
	}

	const Point& get_vertex()const { return vertex_; }
	void set_vertex(const Point& x) { vertex_=x; vertex_setup_=vertex_;}

	const Vector& get_tangent1()const { return tangent_[0];	}
	const Vector& get_tangent2()const
	{
		if(merge_tangent_both_)
			return tangent_[0];
		if(split_tangent_both_)
			return tangent_[1];
		if(split_tangent_radius_)
			return tangent2_radius_split_;
		return tangent2_angle_split_;
	}
	void set_tangent(const Vector& x) { tangent_[0]=tangent_[1]=x; update_tangent2(); }
	void set_tangent1(const Vector& x) { tangent_[0]=x; update_tangent2(); }
	void set_tangent2(const Vector& x) { tangent_[1]=x; update_tangent2(); }

	const float& get_width()const { return width_; }
	void set_width(float x) { width_=x; }

	// We store the origin offset by 0.5 so that
	// can have the origin set to the default by zeroing
	// out the structure.
	float get_origin()const { return origin_+0.5f; }
	void set_origin(float x) { origin_=x-0.5f; }


	const bool& get_split_tangent_both()const { return split_tangent_both_; }
	void set_split_tangent_both(bool x=true) { set_split_tangent_radius(x); set_split_tangent_angle(x); }

	const bool& get_merge_tangent_both()const { return merge_tangent_both_; }
	void set_merge_tangent_both(bool x=true) { set_split_tangent_radius(!x); set_split_tangent_angle(!x); }


	const bool& get_split_tangent_radius()const { return split_tangent_radius_; }
	void set_split_tangent_radius(bool x=true)
	{
		split_tangent_radius_=x;
		update_tangent2();
		update_flags();
	}

	const bool& get_split_tangent_angle()const { return split_tangent_angle_; }
	void set_split_tangent_angle(bool x=true)
	{
		split_tangent_angle_=x;
		update_tangent2();
		update_flags();
	}
	const bool& get_boned_vertex_flag()const { return boned_vertex_; }
	void set_boned_vertex_flag(bool x=true) { boned_vertex_=x; }

	const Vector& get_vertex_setup()const { return vertex_setup_; }
	void set_vertex_setup(Vector& x) { vertex_setup_=x; }

	void reverse();

}; // END of class BLinePoint

}; // END of namespace synfig

/* === E N D =============================================================== */

#endif