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

step/stepcore

StepCore::Anchor

StepCore::Anchor Class Reference
[Rigid joints]

#include <joint.h>

Inheritance diagram for StepCore::Anchor:

Inheritance graph
[legend]

List of all members.


Detailed Description

Fixes position of the body.

Definition at line 37 of file joint.h.


Public Member Functions

 Anchor (Object *body=0, const Vector2d &position=Vector2d(0), double angle=0)
double angle () const
Object * body () const
int constraintsCount ()
void getConstraintsInfo (ConstraintsInfo *info, int offset)
const Vector2d & position () const
void setAngle (double angle)
void setBody (Object *body)
void setPosition (const Vector2d &position)

Protected Attributes

double _angle
Object * _body
Particle * _p
Vector2d _position
RigidBody * _r

Constructor & Destructor Documentation

StepCore::Anchor::Anchor ( Object *  body = 0,
const Vector2d &  position = Vector2d(0),
double  angle = 0 
) [explicit]

Constructs Anchor.


Member Function Documentation

double StepCore::Anchor::angle (  )  const [inline]

Get angle of the anchor.

Definition at line 56 of file joint.h.

Object* StepCore::Anchor::body (  )  const [inline]

Get pointer to the body.

Definition at line 46 of file joint.h.

int StepCore::Anchor::constraintsCount (  )  [virtual]

Get count of constraints.

Implements StepCore::Joint.

Definition at line 81 of file joint.cc.

void StepCore::Anchor::getConstraintsInfo ( ConstraintsInfo *  info,
int  offset 
) [virtual]

Fill the part of constraints information structure starting at offset.

Implements StepCore::Joint.

Definition at line 88 of file joint.cc.

const Vector2d& StepCore::Anchor::position (  )  const [inline]

Get position of the anchor.

Definition at line 51 of file joint.h.

void StepCore::Anchor::setAngle ( double  angle  )  [inline]

Set angle of the anchor.

Definition at line 58 of file joint.h.

void StepCore::Anchor::setBody ( Object *  body  ) 

Set pointer to the body.

Definition at line 61 of file joint.cc.

void StepCore::Anchor::setPosition ( const Vector2d &  position  )  [inline]

Set position of the anchor.

Definition at line 53 of file joint.h.


Member Data Documentation

double StepCore::Anchor::_angle [protected]

Definition at line 69 of file joint.h.

Object* StepCore::Anchor::_body [protected]

Definition at line 67 of file joint.h.

Particle* StepCore::Anchor::_p [protected]

Definition at line 71 of file joint.h.

Vector2d StepCore::Anchor::_position [protected]

Definition at line 68 of file joint.h.

RigidBody* StepCore::Anchor::_r [protected]

Definition at line 72 of file joint.h.


The documentation for this class was generated from the following files:
  • joint.h
  • joint.cc

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"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
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