COPASI API  4.16.103
Public Member Functions | List of all members
CQLabelGraphicsItem Class Reference

#include <CQLabelGraphicsItem.h>

Inheritance diagram for CQLabelGraphicsItem:
Inheritance graph
[legend]
Collaboration diagram for CQLabelGraphicsItem:
Collaboration graph
[legend]

Public Member Functions

 CQLabelGraphicsItem (const CLTextGlyph *textGlyph, const CLRenderResolver *resolver=NULL)
 
virtual ~CQLabelGraphicsItem ()
 
- Public Member Functions inherited from CQCopasiGraphicsItem
 CQCopasiGraphicsItem (const CLRenderResolver *resolver, const CLStyle *style)
 
const CLRenderResolvergetResolver () const
 
const CLStylegetStyle () const
 
void setResolver (const CLRenderResolver *resolver)
 
void setStyle (const CLStyle *style)
 
virtual ~CQCopasiGraphicsItem ()
 

Additional Inherited Members

- Protected Attributes inherited from CQCopasiGraphicsItem
const CLRenderResolvermpResolver
 
const CLStylempStyle
 

Detailed Description

Definition at line 14 of file CQLabelGraphicsItem.h.

Constructor & Destructor Documentation

CQLabelGraphicsItem::CQLabelGraphicsItem ( const CLTextGlyph textGlyph,
const CLRenderResolver resolver = NULL 
)

Definition at line 11 of file CQLabelGraphicsItem.cpp.

References CQRenderConverter::applyStyle(), CLGraphicalObject::getBoundingBox(), CLStyle::getGroup(), CLBoundingBox::getPosition(), CLPoint::getX(), CLPoint::getY(), CQCopasiGraphicsItem::mpResolver, and CQCopasiGraphicsItem::mpStyle.

12  : QGraphicsTextItem(textGlyph->getText().c_str())
13  , CQCopasiGraphicsItem(resolver, resolver != NULL ? resolver->resolveStyle(textGlyph) : NULL)
14 {
15  //setTextInteractionFlags(Qt::TextEditorInteraction);
16  //setFlag(QGraphicsItem::ItemIsMovable);
17  //setFlag(QGraphicsItem::ItemIsSelectable);
18 
19  setPos(textGlyph->getBoundingBox().getPosition().getX(),
20  textGlyph->getBoundingBox().getPosition().getY());
21 
22  CQRenderConverter::applyStyle(this, &textGlyph->getBoundingBox(), mpStyle == NULL ? NULL : mpStyle->getGroup(), mpResolver);
23 }
const CLBoundingBox & getBoundingBox() const
const CLStyle * resolveStyle(const CLGraphicalObject *pObject) const
virtual std::string getText() const
Definition: CLGlyphs.cpp:238
const C_FLOAT64 & getX() const
Definition: CLBase.h:83
const CLPoint & getPosition() const
Definition: CLBase.h:265
const CLGroup * getGroup() const
Definition: CLStyle.cpp:91
static void applyStyle(QGraphicsTextItem *item, const CLBoundingBox *bounds, const CLGroup *style, const CLRenderResolver *resolver)
const CLRenderResolver * mpResolver
const C_FLOAT64 & getY() const
Definition: CLBase.h:84
CQCopasiGraphicsItem(const CLRenderResolver *resolver, const CLStyle *style)
CQLabelGraphicsItem::~CQLabelGraphicsItem ( )
virtual

Definition at line 25 of file CQLabelGraphicsItem.cpp.

26 {
27 }

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