COPASI API
4.40.278
|
#include <CLBase.h>
Public Member Functions | |
CLDimensions () | |
CLDimensions (const C_FLOAT64 &w, const C_FLOAT64 &h, const C_FLOAT64 &d=0.0) | |
CLDimensions (const Dimensions &d) | |
C_FLOAT64 & | getDepth () |
const C_FLOAT64 & | getDepth () const |
C_FLOAT64 & | getHeight () |
const C_FLOAT64 & | getHeight () const |
Dimensions | getSBMLDimensions () const |
C_FLOAT64 & | getWidth () |
const C_FLOAT64 & | getWidth () const |
bool | isEmpty () const |
void | scale (const double &scaleFactor) |
void | setDepth (const C_FLOAT64 &d) |
void | setHeight (const C_FLOAT64 &h) |
void | setWidth (const C_FLOAT64 &w) |
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 | |
C_FLOAT64 | mDepth |
C_FLOAT64 | mHeight |
C_FLOAT64 | mWidth |
Protected Attributes inherited from CLBase | |
std::string | mTag |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CLDimensions &d) |
This class describes a size in a layout. It is 2-dimensional at the moment.
|
inline |
|
inline |
CLDimensions::CLDimensions | ( | const Dimensions & | d | ) |
constructor from libsbml object
|
inline |
References mDepth.
Referenced by CLLayoutRenderer::convert_to_absolute(), CLLayoutRenderer::draw_ellipse(), and CLLayoutRenderer::draw_text().
|
inline |
References mHeight.
Referenced by CLayout::calculateBoundingBox(), CLLayoutRenderer::convert_to_absolute(), CCopasiSpringLayout::createLayout(), CLLayoutRenderer::draw_datapoints(), CLLayoutRenderer::draw_ellipse(), CLLayoutRenderer::draw_group(), CLLayoutRenderer::draw_image(), CLLayoutRenderer::draw_layout(), CLLayoutRenderer::draw_rectangle(), CLLayoutRenderer::draw_selection_box(), CLLayoutRenderer::draw_text(), CCopasiSpringLayout::finalizeState(), CLBoundingBox::getCenter(), CLGraphicalObject::getHeight(), CLLayoutRenderer::getObjectsAt(), CLLayoutRenderer::getObjectsInBoundingBox(), CLBoundingBox::getSBMLBoundingBox(), CLLayoutRenderer::map_arrow_head(), compareGraphicalObjectsBySize::operator()(), randomlyPlaceGlyphInCompartmentGlyph(), randomlyPlaceGlyphInDimensions(), CCopasiXML::saveDimensions(), CCopasiXML::saveLayoutList(), and CLLayoutRenderer::update_textures_and_colors().
Dimensions CLDimensions::getSBMLDimensions | ( | ) | const |
convert to sbml dimension
References mDepth, mHeight, and mWidth.
Referenced by CLayout::exportToSBML().
|
inline |
References mWidth.
Referenced by CLayout::calculateBoundingBox(), CLLayoutRenderer::convert_to_absolute(), CCopasiSpringLayout::createLayout(), CLLayoutRenderer::draw_datapoints(), CLLayoutRenderer::draw_ellipse(), CLLayoutRenderer::draw_group(), CLLayoutRenderer::draw_image(), CLLayoutRenderer::draw_layout(), CLLayoutRenderer::draw_rectangle(), CLLayoutRenderer::draw_selection_box(), CLLayoutRenderer::draw_text(), CCopasiSpringLayout::finalizeState(), CLBoundingBox::getCenter(), CLLayoutRenderer::getObjectsAt(), CLLayoutRenderer::getObjectsInBoundingBox(), CLBoundingBox::getSBMLBoundingBox(), CLGraphicalObject::getWidth(), CLLayoutRenderer::map_arrow_head(), compareGraphicalObjectsBySize::operator()(), randomlyPlaceGlyphInCompartmentGlyph(), randomlyPlaceGlyphInDimensions(), CCopasiXML::saveDimensions(), CCopasiXML::saveLayoutList(), CLLineEnding::toSBML(), and CLLayoutRenderer::update_textures_and_colors().
|
inline |
References mDepth, mHeight, and mWidth.
Referenced by CLBoundingBox::isEmpty().
|
inline |
References mDepth, mHeight, and mWidth.
Referenced by CLayout::scale(), and CLBoundingBox::scale().
|
inline |
References mDepth.
Referenced by DimensionsHandler::processStart().
|
inline |
References mHeight.
Referenced by DimensionsHandler::processStart(), and CLGraphicalObject::setHeight().
|
inline |
References mWidth.
Referenced by DimensionsHandler::processStart(), and CLGraphicalObject::setWidth().
|
friend |
insert operator
|
protected |
Referenced by getDepth(), getSBMLDimensions(), isEmpty(), scale(), and setDepth().
|
protected |
Referenced by getHeight(), getSBMLDimensions(), isEmpty(), scale(), and setHeight().
|
protected |
Referenced by getSBMLDimensions(), getWidth(), isEmpty(), scale(), and setWidth().