COPASI API  4.16.103
BezierCurve.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/BezierCurve.h,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:29:16 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
20 // Properties, Inc. and EML Research, gGmbH.
21 // All rights reserved.
22 
23 /*!
24  \file BezierCurve.h
25  \brief Header file of class BezierCurve
26  */
27 
28 #ifndef CBEZIERCURVE_H
29 #define CBEZIERCURVE_H
30 
31 #include "copasi.h"
32 
33 #include <vector>
34 
35 #include "copasi/layout/CLBase.h"
36 
38 {
39 public:
40  BezierCurve();
41  BezierCurve(size_t numberOfStepsOnCurve);
42  std::vector<CLPoint> curvePts(const std::vector<CLPoint>& pts);
43 
44 private:
46  size_t steps;
48 
50  CLPoint bezierPt(C_FLOAT64 t, std::vector<CLPoint> pts);
52  void init();
53 };
54 #endif
C_FLOAT64 t
Definition: BezierCurve.h:45
C_FLOAT64 bernstein(C_INT32 i, C_INT32 n, C_FLOAT64 t)
Definition: BezierCurve.cpp:79
C_FLOAT64 multiplyFromTo(C_INT32 n1, C_INT32 n2)
#define C_INT32
Definition: copasi.h:90
Definition: CLBase.h:54
C_FLOAT64 dt
Definition: BezierCurve.h:47
#define C_FLOAT64
Definition: copasi.h:92
std::vector< CLPoint > curvePts(const std::vector< CLPoint > &pts)
Definition: BezierCurve.cpp:49
size_t steps
Definition: BezierCurve.h:46
CLPoint bezierPt(C_FLOAT64 t, std::vector< CLPoint > pts)
Definition: BezierCurve.cpp:89