COPASI API  4.16.103
CArrow.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CArrow.h,v $
3 // $Revision: 1.7 $
4 // $Name: $
5 // $Author: pwilly $
6 // $Date: 2008/06/11 10:18:15 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 /*!
19  \file CArrow.h
20  \brief Header file of class CArrow
21  */
22 
23 #ifndef ARROW_H_
24 #define ARROW_H_
25 
26 #include "layout/CLBase.h"
27 #include "layout/CLCurve.h"
28 
29 class CArrow
30  {
31  private:
36  public:
37  CArrow(){endPoint = CLPoint(0.0, 0.0);arrowLength = 12.0; arrowWidth = 5.0;}
38  CArrow(CLLineSegment l, C_FLOAT64 x, C_FLOAT64 y, C_FLOAT64 currentZoomFactor);
39 
43  void setLine(CLLineSegment l){line = l;}
45  void setPoint(CLPoint p){endPoint = p;}
48  void scale(C_FLOAT64 zoomFactor);
49  private:
50  void scaleHeadSize(C_FLOAT64 zoomFactor);
51  void scalePosition(C_FLOAT64 zoomFactor);
52  };
53 
54 #endif /*ARROW_H_*/
void scalePosition(C_FLOAT64 zoomFactor)
Definition: CArrow.cpp:42
void scale(C_FLOAT64 zoomFactor)
Definition: CArrow.cpp:36
CLPoint getEndOfLine()
Definition: CArrow.h:41
C_FLOAT64 getArrowLength()
Definition: CArrow.h:47
const CLPoint & getEnd() const
Definition: CLCurve.h:75
Definition: CLBase.h:54
C_FLOAT64 arrowWidth
Definition: CArrow.h:35
Definition: CArrow.h:29
C_FLOAT64 getArrowWidth()
Definition: CArrow.h:46
CArrow()
Definition: CArrow.h:37
CLPoint getStartOfLine()
Definition: CArrow.h:40
CLLineSegment getLine()
Definition: CArrow.h:42
void scaleHeadSize(C_FLOAT64 zoomFactor)
Definition: CArrow.cpp:49
#define C_FLOAT64
Definition: copasi.h:92
CLLineSegment line
Definition: CArrow.h:32
void setPoint(CLPoint p)
Definition: CArrow.h:45
CLPoint getPoint()
Definition: CArrow.h:44
CLPoint endPoint
Definition: CArrow.h:33
C_FLOAT64 arrowLength
Definition: CArrow.h:34
void setLine(CLLineSegment l)
Definition: CArrow.h:43
const CLPoint & getStart() const
Definition: CLCurve.h:74