COPASI API  4.16.103
Macros | Functions
CLCurve.cpp File Reference
#include <sbml/packages/layout/sbml/Curve.h>
#include <sbml/packages/layout/sbml/CubicBezier.h>
#include "CLCurve.h"
Include dependency graph for CLCurve.cpp:

Go to the source code of this file.

Macros

#define USE_LAYOUT   1
 

Functions

std::ostream & operator<< (std::ostream &os, const CLLineSegment &ls)
 
std::ostream & operator<< (std::ostream &os, const CLCurve &c)
 

Macro Definition Documentation

#define USE_LAYOUT   1

Definition at line 15 of file CLCurve.cpp.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CLLineSegment ls 
)

insert operator

Definition at line 62 of file CLCurve.cpp.

References CLLineSegment::mBase1, CLLineSegment::mBase2, CLLineSegment::mEnd, CLLineSegment::mIsBezier, and CLLineSegment::mStart.

63 {
64  os << "[" << ls.mStart << "->" << ls.mEnd << "]";
65 
66  if (ls.mIsBezier)
67  os << " " << ls.mBase1 << ", " << ls.mBase2;
68 
69  return os;
70 }
CLPoint mEnd
Definition: CLCurve.h:38
bool mIsBezier
Definition: CLCurve.h:43
CLPoint mBase1
Definition: CLCurve.h:40
CLPoint mBase2
Definition: CLCurve.h:41
CLPoint mStart
Definition: CLCurve.h:37
std::ostream& operator<< ( std::ostream &  os,
const CLCurve c 
)

insert operator

Definition at line 173 of file CLCurve.cpp.

References CLCurve::getCurveSegments(), and CLCurve::getNumCurveSegments().

174 {
175  if (c.getNumCurveSegments())
176  {
177  os << " Curve:\n";
178  size_t i, imax = c.getNumCurveSegments();
179 
180  for (i = 0; i < imax; ++i)
181  os << " " << c.getCurveSegments()[i] << "\n";
182  }
183 
184  return os;
185 }
const std::vector< CLLineSegment > & getCurveSegments() const
Definition: CLCurve.h:154
size_t getNumCurveSegments() const
Definition: CLCurve.h:168