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

step/stepcore

  • StepCore
  • Pin
Public Member Functions | Protected Attributes | List of all members
StepCore::Pin Class Reference
Rigid joints

#include <joint.h>

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

Public Member Functions

 Pin (Object *body=0, const Vector2d &localPosition=Vector2d::Zero(), const Vector2d &position=Vector2d::Zero())
 
Object * body () const
 
int constraintsCount ()
 
void getConstraintsInfo (ConstraintsInfo *info, int offset)
 
const Vector2d & localPosition () const
 
const Vector2d & position () const
 
void setBody (Object *body)
 
void setLocalPosition (const Vector2d &localPosition)
 
void setPosition (const Vector2d &position)
 
- 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::Joint
virtual ~Joint ()
 

Protected Attributes

Object * _body
 
Vector2d _localPosition
 
Particle * _p
 
Vector2d _position
 
RigidBody * _r
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Additional Inherited Members

- Protected Member Functions inherited from StepCore::Item
virtual ObjectErrors * createObjectErrors ()
 

Detailed Description

Fixes position of a given point on the body.

Definition at line 78 of file joint.h.

Constructor & Destructor Documentation

StepCore::Pin::Pin ( Object *  body = 0,
const Vector2d &  localPosition = Vector2d::Zero(),
const Vector2d &  position = Vector2d::Zero() 
)
explicit

Constructs Pin.

Definition at line 116 of file joint.cc.

Member Function Documentation

Object* StepCore::Pin::body ( ) const
inline

Get pointer to the body.

Definition at line 88 of file joint.h.

int StepCore::Pin::constraintsCount ( )
virtual

Get count of constraints.

Implements StepCore::Joint.

Definition at line 143 of file joint.cc.

void StepCore::Pin::getConstraintsInfo ( ConstraintsInfo *  info,
int  offset 
)
virtual

Fill the part of constraints information structure starting at offset.

Implements StepCore::Joint.

Definition at line 152 of file joint.cc.

const Vector2d& StepCore::Pin::localPosition ( ) const
inline

Local position of the pin on the body.

Definition at line 93 of file joint.h.

const Vector2d& StepCore::Pin::position ( ) const
inline

Get global position of the pin.

Definition at line 98 of file joint.h.

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

Set pointer to the body.

Definition at line 123 of file joint.cc.

void StepCore::Pin::setLocalPosition ( const Vector2d &  localPosition)
inline

Set local position of the pin on the body.

Definition at line 95 of file joint.h.

void StepCore::Pin::setPosition ( const Vector2d &  position)
inline

Set global position of the pin.

Definition at line 100 of file joint.h.

Member Data Documentation

Object* StepCore::Pin::_body
protected

Definition at line 109 of file joint.h.

Vector2d StepCore::Pin::_localPosition
protected

Definition at line 110 of file joint.h.

Particle* StepCore::Pin::_p
protected

Definition at line 113 of file joint.h.

Vector2d StepCore::Pin::_position
protected

Definition at line 111 of file joint.h.

RigidBody* StepCore::Pin::_r
protected

Definition at line 114 of file joint.h.


The documentation for this class was generated from the following files:
  • joint.h
  • joint.cc
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