COPASI API  4.40.278
CLBoundingBox Class Reference

#include <CLBase.h>

Inheritance diagram for CLBoundingBox:
[legend]

Public Member Functions

 CLBoundingBox ()
 
 CLBoundingBox (const BoundingBox &bb)
 
 CLBoundingBox (const CLPoint &p, const CLDimensions &d)
 
CLPoint getCenter () const
 
CLDimensionsgetDimensions ()
 
const CLDimensionsgetDimensions () const
 
CLPointgetPosition ()
 
const CLPointgetPosition () const
 
BoundingBox getSBMLBoundingBox () const
 
bool isEmpty () const
 
virtual void moveBy (const CLPoint &p)
 
void scale (const double &scaleFactor)
 
void setDimensions (const CLDimensions &d)
 
void setPosition (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
 
void setTag (const std::string &tag)
 
virtual ~CLBase ()
 

Protected Attributes

CLDimensions mDimensions
 
CLPoint mPosition
 
- Protected Attributes inherited from CLBase
std::string mTag
 

Friends

std::ostream & operator<< (std::ostream &os, const CLBoundingBox &bb)
 

Detailed Description

This class describes a bounding box.

Constructor & Destructor Documentation

◆ CLBoundingBox() [1/3]

CLBoundingBox::CLBoundingBox ( )
inline

◆ CLBoundingBox() [2/3]

CLBoundingBox::CLBoundingBox ( const CLPoint p,
const CLDimensions d 
)
inline

◆ CLBoundingBox() [3/3]

CLBoundingBox::CLBoundingBox ( const BoundingBox &  bb)

constructor from libsbml object

Member Function Documentation

◆ getCenter()

◆ getDimensions() [1/2]

CLDimensions& CLBoundingBox::getDimensions ( )
inline

References mDimensions.

◆ getDimensions() [2/2]

◆ getPosition() [1/2]

CLPoint& CLBoundingBox::getPosition ( )
inline

References mPosition.

◆ getPosition() [2/2]

◆ getSBMLBoundingBox()

BoundingBox CLBoundingBox::getSBMLBoundingBox ( ) const

◆ isEmpty()

bool CLBoundingBox::isEmpty ( ) const
inline

◆ moveBy()

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

Reimplemented from CLBase.

References CLPoint::moveBy(), and mPosition.

Referenced by CLGraphicalObject::moveBy().

◆ scale()

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

◆ setDimensions()

void CLBoundingBox::setDimensions ( const CLDimensions d)
inline

◆ setPosition()

void CLBoundingBox::setPosition ( const CLPoint p)
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CLBoundingBox bb 
)
friend

insert operator

Member Data Documentation

◆ mDimensions

CLDimensions CLBoundingBox::mDimensions
protected

◆ mPosition

CLPoint CLBoundingBox::mPosition
protected

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