copasi API
0.1
|
#include <CLCurve.h>
Public Member Functions | |
CLLineSegment () | |
CLLineSegment (const CLPoint &s, const CLPoint &e) | |
CLLineSegment (const CLPoint &s, const CLPoint &e, const CLPoint &b1, const CLPoint &b2) | |
CLLineSegment (const LineSegment &ls) | |
const CLPoint & | getStart () const |
const CLPoint & | getEnd () const |
void | setStart (const CLPoint &p) |
void | setEnd (const CLPoint &p) |
const CLPoint & | getBase1 () const |
const CLPoint & | getBase2 () const |
void | setBase1 (const CLPoint &p) |
void | setBase2 (const CLPoint &p) |
bool | isBezier () const |
void | setIsBezier (bool b) |
bool | operator== (const CLLineSegment &rhs) const |
bool | operator< (const CLLineSegment &rhs) const |
void | scale (const double &scaleFactor) |
void | exportToSBMLBezier (CubicBezier *c, const std::map< CCopasiObject *, SBase * > &copasimodelmap) const |
void | exportToSBMLLineSegment (LineSegment *l, const std::map< CCopasiObject *, SBase * > &copasimodelmap) const |
Protected Attributes | |
CLPoint | mStart |
CLPoint | mEnd |
CLPoint | mBase1 |
CLPoint | mBase2 |
bool | mIsBezier |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CLLineSegment &ls) |
This class describes a line segment.
CLLineSegment::CLLineSegment | ( | ) | [inline] |
Constructor for a straight line segment
CLLineSegment::CLLineSegment | ( | const CLPoint & | s, |
const CLPoint & | e, | ||
const CLPoint & | b1, | ||
const CLPoint & | b2 | ||
) | [inline] |
Constructor for a bezier segment
CLLineSegment::CLLineSegment | ( | const LineSegment & | ls | ) |
constructor from libsbml object
void CLLineSegment::exportToSBMLBezier | ( | CubicBezier * | c, |
const std::map< CCopasiObject *, SBase * > & | copasimodelmap | ||
) | const |
This method writes the information of the copasi layout object into the corresponding sbml object. This is only guaranteed to work if isBezier() is true.
void CLLineSegment::exportToSBMLLineSegment | ( | LineSegment * | l, |
const std::map< CCopasiObject *, SBase * > & | copasimodelmap | ||
) | const |
This method writes the information of the copasi layout object into the corresponding sbml object. This is only guaranteed to work if isBezier() is false.
const CLPoint& CLLineSegment::getBase1 | ( | ) | const [inline] |
const CLPoint& CLLineSegment::getBase2 | ( | ) | const [inline] |
const CLPoint& CLLineSegment::getEnd | ( | ) | const [inline] |
const CLPoint& CLLineSegment::getStart | ( | ) | const [inline] |
bool CLLineSegment::isBezier | ( | ) | const [inline] |
bool CLLineSegment::operator< | ( | const CLLineSegment & | rhs | ) | const [inline] |
bool CLLineSegment::operator== | ( | const CLLineSegment & | rhs | ) | const [inline] |
void CLLineSegment::scale | ( | const double & | scaleFactor | ) | [inline] |
void CLLineSegment::setBase1 | ( | const CLPoint & | p | ) | [inline] |
void CLLineSegment::setBase2 | ( | const CLPoint & | p | ) | [inline] |
void CLLineSegment::setEnd | ( | const CLPoint & | p | ) | [inline] |
void CLLineSegment::setIsBezier | ( | bool | b | ) | [inline] |
void CLLineSegment::setStart | ( | const CLPoint & | p | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | os, |
const CLLineSegment & | ls | ||
) | [friend] |
insert operator
CLPoint CLLineSegment::mBase1 [protected] |
CLPoint CLLineSegment::mBase2 [protected] |
CLPoint CLLineSegment::mEnd [protected] |
bool CLLineSegment::mIsBezier [protected] |
CLPoint CLLineSegment::mStart [protected] |