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

kig

Public Member Functions | List of all members
MeasureTransportCalcer Class Reference

#include <special_calcers.h>

Inheritance diagram for MeasureTransportCalcer:
Inheritance graph
[legend]

Public Member Functions

 MeasureTransportCalcer (ObjectCalcer *circle, ObjectCalcer *point, ObjectCalcer *segment)
 
 ~MeasureTransportCalcer ()
 
void calc (const KigDocument &)
 
const ObjectImpType * impRequirement (ObjectCalcer *o, const std::vector< ObjectCalcer * > &os) const
 
std::vector< ObjectCalcer * > parents () 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 const ObjectImp * imp () const =0
 
virtual bool isDefinedOnOrThrough (const ObjectCalcer *o) const =0
 
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

Definition at line 21 of file special_calcers.h.

Constructor & Destructor Documentation

MeasureTransportCalcer::MeasureTransportCalcer ( ObjectCalcer *  circle,
ObjectCalcer *  point,
ObjectCalcer *  segment 
)

Definition at line 38 of file special_calcers.cc.

MeasureTransportCalcer::~MeasureTransportCalcer ( )

Definition at line 43 of file special_calcers.cc.

Member Function Documentation

void MeasureTransportCalcer::calc ( const KigDocument &  )
virtual

Makes the ObjectCalcer recalculate its ObjectImp from its parents.

Implements ObjectCalcer.

Definition at line 47 of file special_calcers.cc.

const ObjectImpType * MeasureTransportCalcer::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 69 of file special_calcers.cc.

std::vector< ObjectCalcer * > MeasureTransportCalcer::parents ( ) const
virtual

Returns the parent ObjectCalcer's of this ObjectCalcer.

Implements ObjectCalcer.

Definition at line 29 of file special_calcers.cc.


The documentation for this class was generated from the following files:
  • special_calcers.h
  • special_calcers.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal