copasi API  0.1
Public Member Functions | Protected Attributes | Friends
CLLineSegment Class Reference

#include <CLCurve.h>

Inheritance diagram for CLLineSegment:
CLBase

List of all members.

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 CLPointgetStart () const
const CLPointgetEnd () const
void setStart (const CLPoint &p)
void setEnd (const CLPoint &p)
const CLPointgetBase1 () const
const CLPointgetBase2 () 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)

Detailed Description

This class describes a line segment.


Constructor & Destructor Documentation

CLLineSegment::CLLineSegment ( ) [inline]
CLLineSegment::CLLineSegment ( const CLPoint s,
const CLPoint e 
) [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


Member Function Documentation

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]

Friends And Related Function Documentation

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

insert operator


Member Data Documentation

bool CLLineSegment::mIsBezier [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines