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

step/stepcore

  • StepCore
  • SoftBodySpring
Public Member Functions | List of all members
StepCore::SoftBodySpring Class Reference
Physical forces

#include <softbody.h>

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

Public Member Functions

 SoftBodySpring (double restLength=0, double stiffness=1, double damping=0, Item *bodyPtr1=0, Item *bodyPtr2=0)
 
- Public Member Functions inherited from StepCore::Spring
 Spring (double restLength=0, double stiffness=1, double damping=0, Item *body1=0, Item *body2=0)
 
Object * body1 () const
 
Object * body2 () const
 
void calcForce (bool calcVariances)
 
double damping () const
 
double force () const
 
double length () const
 
Vector2d localPosition1 () const
 
Vector2d localPosition2 () const
 
Particle * particle1 () const
 
Particle * particle2 () const
 
Vector2d position1 () const
 
Vector2d position2 () const
 
double restLength () const
 
RigidBody * rigidBody1 () const
 
RigidBody * rigidBody2 () const
 
void setBody1 (Object *body1)
 
void setBody2 (Object *body2)
 
void setDamping (double damping)
 
void setLocalPosition1 (const Vector2d &localPosition1)
 
void setLocalPosition2 (const Vector2d &localPosition2)
 
void setRestLength (double restLength)
 
void setStiffness (double stiffness)
 
SpringErrors * springErrors ()
 
double stiffness () const
 
Vector2d velocity1 () const
 
Vector2d velocity2 () 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::Force
virtual ~Force ()
 

Additional Inherited Members

- Protected Member Functions inherited from StepCore::Spring
ObjectErrors * createObjectErrors ()
 
- Protected Attributes inherited from StepCore::Spring
Object * _body1
 
Object * _body2
 
double _damping
 
Vector2d _localPosition1
 
Vector2d _localPosition2
 
Particle * _p1
 
Particle * _p2
 
RigidBody * _r1
 
RigidBody * _r2
 
double _restLength
 
double _stiffness
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Detailed Description

Soft body spring.

Definition at line 49 of file softbody.h.

Constructor & Destructor Documentation

StepCore::SoftBodySpring::SoftBodySpring ( double  restLength = 0,
double  stiffness = 1,
double  damping = 0,
Item *  bodyPtr1 = 0,
Item *  bodyPtr2 = 0 
)
inlineexplicit

Constructs a SoftBodySpring.

Definition at line 55 of file softbody.h.


The documentation for this class was generated from the following file:
  • softbody.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