COPASI API  4.16.103
Macros | Functions
CLayout.cpp File Reference
#include "iostream"
#include "sbml/packages/layout/sbml/Layout.h"
#include "sbml/packages/render/sbml/LocalRenderInformation.h"
#include "sbml/packages/render/extension/RenderLayoutPlugin.h"
#include "sbml/packages/render/extension/RenderListOfLayoutsPlugin.h"
#include "copasi.h"
#include "CLayout.h"
#include "CLReactionGlyph.h"
#include "SBMLDocumentLoader.h"
#include "report/CKeyFactory.h"
#include "sbml/CSBMLExporter.h"
#include "copasi/report/CCopasiRootContainer.h"
Include dependency graph for CLayout.cpp:

Go to the source code of this file.

Macros

#define USE_LAYOUT   1
 
#define USE_RENDER   1
 

Functions

std::ostream & operator<< (std::ostream &os, const CLayout &l)
 

Macro Definition Documentation

#define USE_LAYOUT   1

Definition at line 15 of file CLayout.cpp.

#define USE_RENDER   1

Definition at line 16 of file CLayout.cpp.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CLayout l 
)

insert operator

Definition at line 269 of file CLayout.cpp.

References CCopasiObject::getObjectName(), CLayout::mDimensions, CLayout::mvCompartments, CLayout::mvGraphicalObjects, CLayout::mvLabels, CLayout::mvMetabs, CLayout::mvReactions, and CCopasiVector< T >::size().

270 {
271  size_t i, imax;
272 
273  os << "Layout \"" << l.getObjectName() << "\" " << l.mDimensions << "\n\n";
274 
275  imax = l.mvCompartments.size();
276 
277  if (imax)
278  {
279  os << "List of compartment glyphs: \n\n";
280 
281  for (i = 0; i < imax; ++i)
282  os << *l.mvCompartments[i];
283  }
284 
285  imax = l.mvMetabs.size();
286 
287  if (imax)
288  {
289  os << "\nList of species glyphs: \n\n";
290 
291  for (i = 0; i < imax; ++i)
292  os << *l.mvMetabs[i];
293  }
294 
295  imax = l.mvReactions.size();
296 
297  if (imax)
298  {
299  os << "\nList of reaction glyphs: \n\n";
300 
301  for (i = 0; i < imax; ++i)
302  os << *l.mvReactions[i];
303  }
304 
305  imax = l.mvLabels.size();
306 
307  if (imax)
308  {
309  os << "\nList of labels: \n\n";
310 
311  for (i = 0; i < imax; ++i)
312  os << *l.mvLabels[i];
313  }
314 
315  imax = l.mvGraphicalObjects.size();
316 
317  if (imax)
318  {
319  os << "\nList of graphical objects: \n\n";
320 
321  for (i = 0; i < imax; ++i)
322  os << *l.mvGraphicalObjects[i];
323  }
324 
325  return os;
326 }
CCopasiVector< CLCompartmentGlyph > mvCompartments
Definition: CLayout.h:42
const std::string & getObjectName() const
virtual size_t size() const
CCopasiVector< CLReactionGlyph > mvReactions
Definition: CLayout.h:44
CLDimensions mDimensions
Definition: CLayout.h:40
CCopasiVector< CLTextGlyph > mvLabels
Definition: CLayout.h:45
CCopasiVector< CLMetabGlyph > mvMetabs
Definition: CLayout.h:43
CCopasiVector< CLGeneralGlyph > mvGraphicalObjects
Definition: CLayout.h:46