• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kig

ObjectPropertyCalcer Class Reference

#include <object_calcer.h>

Inheritance diagram for ObjectPropertyCalcer:

Inheritance graph
[legend]

List of all members.


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.


Public Member Functions

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
 ObjectPropertyCalcer (ObjectCalcer *parent, const char *pintname)
 ObjectPropertyCalcer (ObjectCalcer *parent, int propid, bool islocal)
ObjectCalcer * parent () const
std::vector< ObjectCalcer * > parents () const
int propGid () const
int propLid () const
 ~ObjectPropertyCalcer ()

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 146 of file object_calcer.cc.

ObjectPropertyCalcer::ObjectPropertyCalcer ( ObjectCalcer *  parent,
const char *  pintname 
)

Definition at line 136 of file object_calcer.cc.

ObjectPropertyCalcer::~ObjectPropertyCalcer (  ) 

Definition at line 161 of file object_calcer.cc.


Member Function Documentation

void ObjectPropertyCalcer::calc ( const KigDocument &   )  [virtual]

Makes the ObjectCalcer recalculate its ObjectImp from its parents.

Implements ObjectCalcer.

Definition at line 182 of file object_calcer.cc.

const ObjectImp * ObjectPropertyCalcer::imp (  )  const [virtual]

Returns the ObjectImp of this ObjectCalcer.

Implements ObjectCalcer.

Definition at line 170 of file object_calcer.cc.

const ObjectImpType * ObjectPropertyCalcer::impRequirement ( ObjectCalcer *  o,
const std::vector< ObjectCalcer * > &  os 
) const [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 213 of file object_calcer.cc.

bool ObjectPropertyCalcer::isDefinedOnOrThrough ( const ObjectCalcer *  o  )  const [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 330 of file object_calcer.cc.

ObjectCalcer * ObjectPropertyCalcer::parent (  )  const

Definition at line 305 of file object_calcer.cc.

std::vector< ObjectCalcer * > ObjectPropertyCalcer::parents (  )  const [virtual]

Returns the parent ObjectCalcer's of this ObjectCalcer.

Implements ObjectCalcer.

Definition at line 175 of file object_calcer.cc.

int ObjectPropertyCalcer::propGid (  )  const

Definition at line 356 of file object_calcer.cc.

int ObjectPropertyCalcer::propLid (  )  const

Definition at line 351 of file object_calcer.cc.


The documentation for this class was generated from the following files:
  • object_calcer.h
  • object_calcer.cc

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal