COPASI API  4.40.278
CLPoint Class Reference

#include <CLBase.h>

Inheritance diagram for CLPoint:
[legend]

Public Member Functions

 CLPoint ()
 
 CLPoint (const C_FLOAT64 &x, const C_FLOAT64 &y, const C_FLOAT64 &z=0.0)
 
 CLPoint (const Point &p)
 
C_FLOAT64 dot (const CLPoint &rhs) const
 
Point getSBMLPoint () const
 
C_FLOAT64getX ()
 
const C_FLOAT64getX () const
 
C_FLOAT64getY ()
 
const C_FLOAT64getY () const
 
C_FLOAT64getZ ()
 
const C_FLOAT64getZ () const
 
bool isEmpty () const
 
virtual void moveBy (const CLPoint &p)
 
CLPoint operator* (const double &rhs) const
 
CLPoint operator+ (const CLPoint &rhs) const
 
CLPoint operator- (const CLPoint &rhs) const
 
bool operator< (const CLPoint &rhs) const
 
bool operator== (const CLPoint &rhs) const
 
void scale (const double &scaleFactor)
 
void setX (const C_FLOAT64 &x)
 
void setY (const C_FLOAT64 &y)
 
void setZ (const C_FLOAT64 &z)
 
- Public Member Functions inherited from CLBase
 CLBase ()
 
 CLBase (const CLBase &b)
 
 CLBase (const SBase &)
 
const std::string & getTag () const
 
bool hasTag () const
 
void setTag (const std::string &tag)
 
virtual ~CLBase ()
 

Protected Attributes

C_FLOAT64 mX
 
C_FLOAT64 mY
 
C_FLOAT64 mZ
 
- Protected Attributes inherited from CLBase
std::string mTag
 

Friends

std::ostream & operator<< (std::ostream &os, const CLPoint &p)
 

Detailed Description

This class describes a Point in a layout It is 2-dimensional at the moment

Constructor & Destructor Documentation

◆ CLPoint() [1/3]

CLPoint::CLPoint ( )
inline

Referenced by operator*(), operator+(), and operator-().

◆ CLPoint() [2/3]

CLPoint::CLPoint ( const C_FLOAT64 x,
const C_FLOAT64 y,
const C_FLOAT64 z = 0.0 
)
inline

◆ CLPoint() [3/3]

CLPoint::CLPoint ( const Point &  p)

constructor from libsbml object

Member Function Documentation

◆ dot()

C_FLOAT64 CLPoint::dot ( const CLPoint rhs) const
inline

References mX, mY, and mZ.

Referenced by CCopasiSpringLayout::finalizeState().

◆ getSBMLPoint()

Point CLPoint::getSBMLPoint ( ) const

convert to sbml point

References mX, mY, and mZ.

◆ getX() [1/2]

C_FLOAT64& CLPoint::getX ( )
inline

References mX.

◆ getX() [2/2]

◆ getY() [1/2]

C_FLOAT64& CLPoint::getY ( )
inline

References mY.

◆ getY() [2/2]

◆ getZ() [1/2]

C_FLOAT64& CLPoint::getZ ( )
inline

References mZ.

◆ getZ() [2/2]

◆ isEmpty()

bool CLPoint::isEmpty ( ) const
inline

References mX, mY, and mZ.

Referenced by CLBoundingBox::isEmpty(), and CLayout::moveBy().

◆ moveBy()

virtual void CLPoint::moveBy ( const CLPoint p)
inlinevirtual

Reimplemented from CLBase.

References mX, mY, and mZ.

Referenced by CLBoundingBox::moveBy(), and CLCurve::moveBy().

◆ operator*()

CLPoint CLPoint::operator* ( const double &  rhs) const
inline

References CLPoint().

◆ operator+()

CLPoint CLPoint::operator+ ( const CLPoint rhs) const
inline

References CLPoint(), mX, mY, and mZ.

◆ operator-()

CLPoint CLPoint::operator- ( const CLPoint rhs) const
inline

References CLPoint(), mX, mY, and mZ.

◆ operator<()

bool CLPoint::operator< ( const CLPoint rhs) const
inline

References mX, mY, and mZ.

◆ operator==()

bool CLPoint::operator== ( const CLPoint rhs) const
inline

References mX, mY, and mZ.

◆ scale()

void CLPoint::scale ( const double &  scaleFactor)
inline

◆ setX()

◆ setY()

◆ setZ()

void CLPoint::setZ ( const C_FLOAT64 z)
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CLPoint p 
)
friend

insert operator

Member Data Documentation

◆ mX

◆ mY

◆ mZ


The documentation for this class was generated from the following files: