COPASI API
4.40.278
|
#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) | |
void | exportToSBMLBezier (CubicBezier *c, const std::map< const CDataObject *, SBase * > &copasimodelmap) const |
void | exportToSBMLLineSegment (LineSegment *l, const std::map< const CDataObject *, SBase * > &copasimodelmap) const |
CLPoint & | getBase1 () |
const CLPoint & | getBase1 () const |
CLPoint & | getBase2 () |
const CLPoint & | getBase2 () const |
CLPoint & | getEnd () |
const CLPoint & | getEnd () const |
CLPoint & | getStart () |
const CLPoint & | getStart () const |
bool | isBezier () const |
bool | operator< (const CLLineSegment &rhs) const |
bool | operator== (const CLLineSegment &rhs) const |
void | scale (const double &scaleFactor) |
void | setBase1 (const CLPoint &p) |
void | setBase2 (const CLPoint &p) |
void | setEnd (const CLPoint &p) |
void | setIsBezier (bool b) |
void | setStart (const CLPoint &p) |
Public Member Functions inherited from CLBase | |
CLBase () | |
CLBase (const CLBase &b) | |
CLBase (const SBase &) | |
const std::string & | getTag () const |
bool | hasTag () const |
virtual void | moveBy (const CLPoint &) |
void | setTag (const std::string &tag) |
virtual | ~CLBase () |
Protected Attributes | |
CLPoint | mBase1 |
CLPoint | mBase2 |
CLPoint | mEnd |
bool | mIsBezier |
CLPoint | mStart |
Protected Attributes inherited from CLBase | |
std::string | mTag |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CLLineSegment &ls) |
This class describes a line segment.
|
inline |
Constructor for a straight line segment
|
inline |
Constructor for a bezier segment
CLLineSegment::CLLineSegment | ( | const LineSegment & | ls | ) |
void CLLineSegment::exportToSBMLBezier | ( | CubicBezier * | c, |
const std::map< const CDataObject *, 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.
References exportToSBMLLineSegment(), getBase1(), and getBase2().
void CLLineSegment::exportToSBMLLineSegment | ( | LineSegment * | l, |
const std::map< const CDataObject *, 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.
References getEnd(), and getStart().
Referenced by exportToSBMLBezier().
|
inline |
References mBase1.
Referenced by CLCurve::calculateBoundingBox(), CLLayoutRenderer::draw_curve(), exportToSBMLBezier(), CLLayoutRenderer::getCurveBoundingBox(), CLLayoutRenderer::is_curve_segment_visible(), CLLayoutRenderer::isSegmentHit(), CLLayoutRenderer::move_curve_object(), CLCurve::moveBy(), CLLayoutRenderer::revert_curve(), and CCopasiXML::saveCurve().
|
inline |
References mBase2.
Referenced by CLCurve::calculateBoundingBox(), CLLayoutRenderer::draw_curve(), exportToSBMLBezier(), CLLayoutRenderer::getCurveBoundingBox(), CLLayoutRenderer::is_curve_segment_visible(), CLLayoutRenderer::isSegmentHit(), CLLayoutRenderer::move_curve_object(), CLCurve::moveBy(), CLLayoutRenderer::revert_curve(), and CCopasiXML::saveCurve().
|
inline |
References mEnd.
Referenced by CLCurve::calculateBoundingBox(), CLLayoutRenderer::draw_curve(), exportToSBMLLineSegment(), CLLayoutRenderer::getCurveBoundingBox(), CLLayoutRenderer::is_curve_segment_visible(), CLLayoutRenderer::isSegmentHit(), CLLayoutRenderer::move_curve_object(), CLLayoutRenderer::move_reaction_glyph(), CLLayoutRenderer::move_species_glyph(), CLCurve::moveBy(), CLLayoutRenderer::revert_curve(), and CCopasiXML::saveCurve().
|
inline |
References mStart.
Referenced by CLCurve::calculateBoundingBox(), CLLayoutRenderer::draw_curve(), exportToSBMLLineSegment(), CLLayoutRenderer::getCurveBoundingBox(), CLLayoutRenderer::is_curve_segment_visible(), CLLayoutRenderer::isSegmentHit(), CLLayoutRenderer::move_curve_object(), CLLayoutRenderer::move_reaction_glyph(), CLLayoutRenderer::move_species_glyph(), CLCurve::moveBy(), CLLayoutRenderer::revert_curve(), CCopasiXML::saveCurve(), and CLLayoutRenderer::update_associations().
|
inline |
References mIsBezier.
Referenced by CLCurve::calculateBoundingBox(), CLLayoutRenderer::draw_curve(), CLLayoutRenderer::getCurveBoundingBox(), CLLayoutRenderer::is_curve_segment_visible(), CLLayoutRenderer::isSegmentHit(), CLLayoutRenderer::move_curve_object(), CLCurve::moveBy(), ListOfCurveSegmentsHandler::processStart(), CLLayoutRenderer::revert_curve(), and CCopasiXML::saveCurve().
|
inline |
References mStart.
|
inline |
|
inline |
|
inline |
References mBase1.
Referenced by CubicBezierHandler::processEnd(), and CLLayoutRenderer::revert_curve().
|
inline |
References mBase2.
Referenced by CubicBezierHandler::processEnd(), and CLLayoutRenderer::revert_curve().
|
inline |
References mEnd.
Referenced by CLLayoutRenderer::is_curve_segment_visible(), CubicBezierHandler::processEnd(), and LineSegmentHandler::processEnd().
|
inline |
References mIsBezier.
Referenced by CLLayoutRenderer::is_curve_segment_visible(), ListOfCurveSegmentsHandler::processStart(), and CLLayoutRenderer::revert_curve().
|
inline |
References mStart.
Referenced by CLLayoutRenderer::is_curve_segment_visible(), CubicBezierHandler::processEnd(), and LineSegmentHandler::processEnd().
|
friend |
insert operator
|
protected |
Referenced by CLLineSegment(), getBase1(), operator==(), scale(), and setBase1().
|
protected |
Referenced by CLLineSegment(), getBase2(), operator==(), scale(), and setBase2().
|
protected |
Referenced by getEnd(), operator==(), scale(), and setEnd().
|
protected |
Referenced by CLLineSegment(), isBezier(), operator==(), scale(), and setIsBezier().
|
protected |
Referenced by getStart(), operator<(), operator==(), scale(), and setStart().