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

kig

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractLineImp Class Reference

#include <line_imp.h>

Inheritance diagram for AbstractLineImp:
Inheritance graph
[legend]

Public Types

typedef CurveImp Parent
 
- Public Types inherited from CurveImp
typedef ObjectImp Parent
 

Public Member Functions

 ~AbstractLineImp ()
 
LineData data () const
 
bool equals (const ObjectImp &rhs) const
 
const QString equationString () const
 
const char * iconForProperty (int which) const
 
const ObjectImpType * impRequirementForProperty (int which) const
 
bool inRect (const Rect &r, int width, const KigWidget &) const
 
bool isPropertyDefinedOnOrThroughThisImp (int which) const
 
int numberOfProperties () const
 
const QByteArrayList properties () const
 
const QByteArrayList propertiesInternalNames () const
 
ObjectImp * property (int which, const KigDocument &d) const
 
double slope () const
 
- Public Member Functions inherited from CurveImp
Coordinate attachPoint () const
 
QString cartesianEquationString (const KigDocument &w) const
 
virtual bool containsPoint (const Coordinate &p, const KigDocument &) const =0
 
virtual CurveImp * copy () const =0
 
virtual double getParam (const Coordinate &point, const KigDocument &) const
 
virtual const Coordinate getPoint (double param, const KigDocument &) const =0
 
- Public Member Functions inherited from ObjectImp
virtual ~ObjectImp ()
 
virtual bool canFillInNextEscape () const
 
virtual bool contains (const Coordinate &p, int width, const KigWidget &si) const =0
 
virtual void draw (KigPainter &p) const =0
 
virtual void fillInNextEscape (QString &s, const KigDocument &) const
 
int getPropGid (const char *pname) const
 
int getPropLid (int propgid) const
 
const char * getPropName (int propgid) const
 
bool inherits (const ObjectImpType *t) const
 
virtual bool isCache () const
 
virtual Rect surroundingRect () const =0
 
virtual ObjectImp * transform (const Transformation &t) const =0
 
virtual const ObjectImpType * type () const =0
 
bool valid () const
 
virtual void visit (ObjectImpVisitor *vtor) const =0
 

Static Public Member Functions

static const ObjectImpType * stype ()
 
- Static Public Member Functions inherited from CurveImp
static const ObjectImpType * stype ()
 
- Static Public Member Functions inherited from ObjectImp
static const ObjectImpType * stype ()
 

Protected Member Functions

 AbstractLineImp (const LineData &d)
 
 AbstractLineImp (const Coordinate &a, const Coordinate &b)
 
- Protected Member Functions inherited from CurveImp
double getDist (double param, const Coordinate &p, const KigDocument &doc) const
 
double getParamofmin (double a, double b, const Coordinate &p, const KigDocument &doc) const
 
- Protected Member Functions inherited from ObjectImp
 ObjectImp ()
 

Protected Attributes

LineData mdata
 

Detailed Description

An ObjectImp class that is the base of the line-like ObjectImp's: SegmentImp, LineImp and RayImp.

Definition at line 31 of file line_imp.h.

Member Typedef Documentation

typedef CurveImp AbstractLineImp::Parent

Definition at line 40 of file line_imp.h.

Constructor & Destructor Documentation

AbstractLineImp::AbstractLineImp ( const LineData &  d)
protected

Definition at line 474 of file line_imp.cc.

AbstractLineImp::AbstractLineImp ( const Coordinate &  a,
const Coordinate &  b 
)
protected

Definition at line 35 of file line_imp.cc.

AbstractLineImp::~AbstractLineImp ( )

Definition at line 40 of file line_imp.cc.

Member Function Documentation

LineData AbstractLineImp::data ( ) const

Get the LineData for this AbstractLineImp.

Definition at line 359 of file line_imp.cc.

bool AbstractLineImp::equals ( const ObjectImp &  rhs) const
virtual

Returns true if this ObjectImp is equal to rhs.

This function checks whether rhs is of the same ObjectImp type, and whether it contains the same data as this ObjectImp.

It is used e.g. by the KigCommand stuff to see what the user has changed during a move.

Implements ObjectImp.

Definition at line 514 of file line_imp.cc.

const QString AbstractLineImp::equationString ( ) const

Get a string containing the equation of this line in the form "y = a * x + b ".

Definition at line 241 of file line_imp.cc.

const char * AbstractLineImp::iconForProperty ( int  which) const
virtual

Reimplemented from ObjectImp.

Reimplemented in RayImp, and SegmentImp.

Definition at line 61 of file line_imp.cc.

const ObjectImpType * AbstractLineImp::impRequirementForProperty ( int  which) const
virtual

Reimplemented from ObjectImp.

Reimplemented in RayImp, and SegmentImp.

Definition at line 54 of file line_imp.cc.

bool AbstractLineImp::inRect ( const Rect &  r,
int  width,
const KigWidget &  w 
) const
virtual

Implements ObjectImp.

Definition at line 44 of file line_imp.cc.

bool AbstractLineImp::isPropertyDefinedOnOrThroughThisImp ( int  which) const
virtual

Reimplemented from ObjectImp.

Definition at line 624 of file line_imp.cc.

int AbstractLineImp::numberOfProperties ( ) const
virtual

Reimplemented from ObjectImp.

Reimplemented in RayImp, and SegmentImp.

Definition at line 49 of file line_imp.cc.

const QByteArrayList AbstractLineImp::properties ( ) const
virtual

Reimplemented from ObjectImp.

Reimplemented in RayImp, and SegmentImp.

Definition at line 94 of file line_imp.cc.

const QByteArrayList AbstractLineImp::propertiesInternalNames ( ) const
virtual

Reimplemented from ObjectImp.

Reimplemented in RayImp, and SegmentImp.

Definition at line 85 of file line_imp.cc.

ObjectImp * AbstractLineImp::property ( int  which,
const KigDocument &  d 
) const
virtual

Reimplemented from ObjectImp.

Reimplemented in RayImp, and SegmentImp.

Definition at line 73 of file line_imp.cc.

double AbstractLineImp::slope ( ) const

Get the slope of this AbstractLineImp.

For a line through points a( xa, ya ) and b ( xb, yb ), this means the value ( yb - ya ) / ( xb - xa ).

Definition at line 235 of file line_imp.cc.

const ObjectImpType * AbstractLineImp::stype ( )
static

Returns the ObjectImpType representing the AbstractLineImp type.

Definition at line 520 of file line_imp.cc.

Member Data Documentation

LineData AbstractLineImp::mdata
protected

Definition at line 35 of file line_imp.h.


The documentation for this class was generated from the following files:
  • line_imp.h
  • line_imp.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 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