1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: blinepoint.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_BLINEPOINT_H
25 #define __SINFG_BLINEPOINT_H
27 /* === H E A D E R S ======================================================= */
33 /* === M A C R O S ========================================================= */
35 /* === T Y P E D E F S ===================================================== */
37 /* === C L A S S E S & S T R U C T S ======================================= */
41 class BLinePoint : public UniqueID
59 const Point& get_vertex()const { return vertex_; }
60 void set_vertex(const Point& x) { vertex_=x; }
63 const Vector& get_tangent1()const { return tangent_[0]; }
64 const Vector& get_tangent2()const { return split_tangent_?tangent_[1]:tangent_[0]; }
65 void set_tangent(const Vector& x) { tangent_[0]=tangent_[1]=x; }
66 void set_tangent1(const Vector& x) { tangent_[0]=x; }
67 void set_tangent2(const Vector& x) { tangent_[1]=x; }
70 const float& get_width()const { return width_; }
71 void set_width(float x) { width_=x; }
73 // We store the origin offset by 0.5 so that
74 // can have the origin set to the default by zeroing
76 float get_origin()const { return origin_+0.5f; }
77 void set_origin(float x) { origin_=x-0.5f; }
80 const bool& get_split_tangent_flag()const { return split_tangent_; }
81 void set_split_tangent_flag(bool x=true) { split_tangent_=x; }
85 }; // END of class BLinePoint
87 }; // END of namespace sinfg
89 /* === E N D =============================================================== */