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

step/stepcore

StepCore::ChargedParticle

StepCore::ChargedParticle Class Reference
[Physical bodies]

ChargedParticle with mass and charge. More...

#include <particle.h>

Inheritance diagram for StepCore::ChargedParticle:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ChargedParticle (Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1, double charge=0)
double charge () const
ChargedParticleErrors * chargedParticleErrors ()
void setCharge (double charge)

Protected Member Functions

ObjectErrors * createObjectErrors ()

Protected Attributes

double _charge

Detailed Description

ChargedParticle with mass and charge.

Definition at line 206 of file particle.h.


Constructor & Destructor Documentation

StepCore::ChargedParticle::ChargedParticle ( Vector2d  position = Vector2d::Zero(),
Vector2d  velocity = Vector2d::Zero(),
double  mass = 1,
double  charge = 0 
) [inline, explicit]

Constructs a charged particle.

Definition at line 212 of file particle.h.


Member Function Documentation

double StepCore::ChargedParticle::charge (  )  const [inline]

Charge of the particle.

Definition at line 217 of file particle.h.

ChargedParticleErrors* StepCore::ChargedParticle::chargedParticleErrors (  )  [inline]

Get (and possibly create) ChargedParticleErrors object.

Definition at line 222 of file particle.h.

ObjectErrors* StepCore::ChargedParticle::createObjectErrors (  )  [inline, protected, virtual]

For internal use only.

Creates specific ObjectErrors-derived class (to be reimplemented in derived classes)

Reimplemented from StepCore::Particle.

Definition at line 226 of file particle.h.

void StepCore::ChargedParticle::setCharge ( double  charge  )  [inline]

Charge of the particle.

Definition at line 219 of file particle.h.


Member Data Documentation

double StepCore::ChargedParticle::_charge [protected]

Definition at line 228 of file particle.h.


The documentation for this class was generated from the following file:
  • particle.h

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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