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

#include <CLCurve.h>

Inheritance diagram for CLCurve:
CLBase CGraphCurve

List of all members.

Public Member Functions

 CLCurve ()
 CLCurve (const CLCurve &c)
 CLCurve (const Curve &sbmlcurve)
 ~CLCurve ()
const std::vector
< CLLineSegment > & 
getCurveSegments () const
CLLineSegmentgetSegmentAt (C_INT32 i)
C_INT32 getNumCurveSegments () const
void clear ()
void addCurveSegment (CLLineSegment *pLs)
bool isContinuous () const
std::vector< CLPointgetListOfPoints () const
bool operator== (const CLCurve &rhs) const
void scale (const double &scaleFactor)
void exportToSBML (Curve *c, const std::map< CCopasiObject *, SBase * > &copasimodelmap) const

Protected Attributes

std::vector< CLLineSegmentmvCurveSegments

Friends

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

Constructor & Destructor Documentation

CLCurve::CLCurve ( ) [inline]
CLCurve::CLCurve ( const CLCurve c)

copy constructor (should make deep copy)

CLCurve::CLCurve ( const Curve &  sbmlcurve)

constructor from libsbml object

CLCurve::~CLCurve ( )

Member Function Documentation

void CLCurve::addCurveSegment ( CLLineSegment pLs)

add a copy of the line segment to the curve

void CLCurve::clear ( )
void CLCurve::exportToSBML ( Curve *  c,
const std::map< CCopasiObject *, SBase * > &  copasimodelmap 
) const

This method writes the information of the copasi layout object into the corresponding sbml object

const std::vector<CLLineSegment>& CLCurve::getCurveSegments ( ) const [inline]
std::vector< CLPoint > CLCurve::getListOfPoints ( ) const

This method should only be called if isContinuous() is true. It returns the curve as a list of points rather than a list of line segments.

C_INT32 CLCurve::getNumCurveSegments ( ) const [inline]
CLLineSegment* CLCurve::getSegmentAt ( C_INT32  i) [inline]
bool CLCurve::isContinuous ( ) const

this method tells whether the curve is a continuous set of line segments, i.e. if the end point of one line segment is identical to the starting point of the following one.

bool CLCurve::operator== ( const CLCurve rhs) const [inline]

Two curves are supposed to be equal iff all there line segments including their order are equal

void CLCurve::scale ( const double &  scaleFactor) [inline]

Reimplemented in CGraphCurve.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CLCurve c 
) [friend]

insert operator


Member Data Documentation

std::vector<CLLineSegment> CLCurve::mvCurveSegments [protected]

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