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

step/stepcore

  • StepCore
  • ChargedParticle
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StepCore::ChargedParticle Class Reference
Physical bodies

#include <particle.h>

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

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)
 
- Public Member Functions inherited from StepCore::Particle
 Particle (Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1)
 
Vector2d acceleration () const
 
void addForce (const double *force, const double *forceVariance)
 
void applyForce (const Vector2d &force)
 
const Vector2d & force () const
 
void getAccelerations (double *acceleration, double *accelerationVariance)
 
void getInverseMass (VectorXd *inverseMass, DynSparseRowMatrix *variance, int offset)
 
void getVariables (double *position, double *velocity, double *positionVariance, double *velocityVariance)
 
double kineticEnergy () const
 
double mass () const
 
Vector2d momentum () const
 
ParticleErrors * particleErrors ()
 
const Vector2d & position () const
 
void resetForce (bool resetVariance)
 
void setForce (const Vector2d &force)
 
void setKineticEnergy (double kineticEnergy)
 
void setMass (double mass)
 
void setMomentum (const Vector2d &momentum)
 
void setPosition (const Vector2d &position)
 
void setVariables (const double *position, const double *velocity, const double *positionVariance, const double *velocityVariance)
 
void setVelocity (const Vector2d &velocity)
 
int variablesCount ()
 
const Vector2d & velocity () const
 
- Public Member Functions inherited from StepCore::Item
 Item (const QString &name=QString())
 
 Item (const Item &item)
 
virtual ~Item ()
 
Color color () const
 
void deleteObjectErrors ()
 
ItemGroup * group () const
 
ObjectErrors * objectErrors ()
 
Item & operator= (const Item &item)
 
void setColor (Color color)
 
virtual void setGroup (ItemGroup *group)
 
virtual void setWorld (World *world)
 
ObjectErrors * tryGetObjectErrors () const
 
World * world () const
 
virtual void worldItemRemoved (Item *item STEPCORE_UNUSED)
 
- Public Member Functions inherited from StepCore::Object
 Object (const QString &name=QString())
 
virtual ~Object ()
 
const QString & name () const
 
void setName (const QString &name)
 
- Public Member Functions inherited from StepCore::Body
 Body ()
 
virtual ~Body ()
 
int variablesOffset () const
 

Protected Member Functions

ObjectErrors * createObjectErrors ()
 

Protected Attributes

double _charge
 
- Protected Attributes inherited from StepCore::Particle
Vector2d _force
 
double _mass
 
Vector2d _position
 
Vector2d _velocity
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Additional Inherited Members

- Public Types inherited from StepCore::Particle
enum  { PositionOffset = 0 }
 

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 
)
inlineexplicit

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 ( )
inlineprotectedvirtual

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

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

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