1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: outline.h,v 1.1.1.1 2005/01/04 01:23:10 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_OUTLINE_H
25 #define __SINFG_OUTLINE_H
27 /* === H E A D E R S ======================================================= */
31 #include <sinfg/layer_polygon.h>
32 #include <sinfg/segment.h>
33 #include <sinfg/value.h>
35 /* === M A C R O S ========================================================= */
37 /* === T Y P E D E F S ===================================================== */
39 /* === C L A S S E S & S T R U C T S ======================================= */
41 using namespace sinfg;
45 class Outline : public sinfg::Layer_Polygon
47 SINFG_LAYER_MODULE_EXT
50 sinfg::ValueBase bline;
52 std::vector<sinfg::Segment> segment_list;
53 std::vector<sinfg::Real> width_list;
70 bool homogeneous_width;
76 //! Updates the polygon data to match the parameters.
79 virtual bool set_param(const String & param, const sinfg::ValueBase &value);
81 virtual ValueBase get_param(const String & param)const;
83 virtual Vocab get_param_vocab()const;
84 virtual void set_time(Context context, Time time)const;
85 virtual void set_time(Context context, Time time, Vector pos)const;
86 virtual bool set_version(const String &ver){if(ver=="0.1")old_version=true; return true;}
87 virtual void reset_version(){old_version=false;}
91 /* === E N D =============================================================== */