kig
#include <object_calcer.h>
Public Member Functions | |
ObjectPropertyCalcer (ObjectCalcer *parent, int propid, bool islocal) | |
ObjectPropertyCalcer (ObjectCalcer *parent, const char *pintname) | |
~ObjectPropertyCalcer () | |
void | calc (const KigDocument &doc) |
const ObjectImp * | imp () const |
const ObjectImpType * | impRequirement (ObjectCalcer *o, const std::vector< ObjectCalcer * > &os) const |
bool | isDefinedOnOrThrough (const ObjectCalcer *o) const |
ObjectCalcer * | parent () const |
std::vector< ObjectCalcer * > | parents () const |
int | propGid () const |
int | propLid () const |
Public Member Functions inherited from ObjectCalcer | |
virtual | ~ObjectCalcer () |
void | addChild (ObjectCalcer *c) |
virtual bool | canMove () const |
std::vector< ObjectCalcer * > | children () const |
void | delChild (ObjectCalcer *c) |
virtual bool | isFreelyTranslatable () const |
virtual std::vector < ObjectCalcer * > | movableParents () const |
virtual void | move (const Coordinate &to, const KigDocument &doc) |
virtual Coordinate | moveReferencePoint () const |
Additional Inherited Members | |
Public Types inherited from ObjectCalcer | |
typedef myboost::intrusive_ptr < ObjectCalcer > | shared_ptr |
Protected Member Functions inherited from ObjectCalcer | |
ObjectCalcer () | |
void | deref () |
void | ref () |
Protected Attributes inherited from ObjectCalcer | |
std::vector< ObjectCalcer * > | mchildren |
int | refcount |
Detailed Description
This is an ObjectCalcer that has a single parent, and gets a certain property from it in its calc() method.
- See also
- ObjectImp::property
Definition at line 276 of file object_calcer.h.
Constructor & Destructor Documentation
ObjectPropertyCalcer::ObjectPropertyCalcer | ( | ObjectCalcer * | parent, |
int | propid, | ||
bool | islocal | ||
) |
Construct a new ObjectPropertyCalcer, that will get the property from parent with number propid.
Definition at line 147 of file object_calcer.cc.
ObjectPropertyCalcer::ObjectPropertyCalcer | ( | ObjectCalcer * | parent, |
const char * | pintname | ||
) |
Definition at line 137 of file object_calcer.cc.
ObjectPropertyCalcer::~ObjectPropertyCalcer | ( | ) |
Definition at line 162 of file object_calcer.cc.
Member Function Documentation
|
virtual |
Makes the ObjectCalcer recalculate its ObjectImp from its parents.
Implements ObjectCalcer.
Definition at line 183 of file object_calcer.cc.
|
virtual |
Returns the ObjectImp of this ObjectCalcer.
Implements ObjectCalcer.
Definition at line 171 of file object_calcer.cc.
|
virtual |
An ObjectCalcer expects its parents to have an ObjectImp of a certain type.
This method returns the ObjectImpType that o
should have. os
is a list of all the parents in order, and o
is part of it. This method will return the ObjectImpType that the parent should at least be. For example, a Translated object can translate any sort of object, so it will return ObjectImp::stype() here ( the topmost ObjectImpType, that all other ObjectImpType's inherit ).
Implements ObjectCalcer.
Definition at line 214 of file object_calcer.cc.
|
virtual |
If this ObjectCalcer represents a curve, return true if the given point is by construction on this curve.
If this ObjectCalcer represents a point, return true if this point is by construction on the given curve.
Implements ObjectCalcer.
Definition at line 331 of file object_calcer.cc.
ObjectCalcer * ObjectPropertyCalcer::parent | ( | ) | const |
Definition at line 306 of file object_calcer.cc.
|
virtual |
Returns the parent ObjectCalcer's of this ObjectCalcer.
Implements ObjectCalcer.
Definition at line 176 of file object_calcer.cc.
int ObjectPropertyCalcer::propGid | ( | ) | const |
Definition at line 357 of file object_calcer.cc.
int ObjectPropertyCalcer::propLid | ( | ) | const |
Definition at line 352 of file object_calcer.cc.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.