# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CPSGravity Class Reference

a gravity class. More...

#include <ps_force.h>

Inheritance diagram for NL3D::CPSGravity

Inheritance graph
[legend]
Collaboration diagram for NL3D::CPSGravity:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual void performMotion (CAnimationTime ellapsedTime)
 Compute the force on the targets. More...

virtual void show (CAnimationTime ellapsedTime)
 Show the force (edition mode). More...

void setG (float g)
 set the gravity strenght. More...

float getG (void) const
 get the gravity strenght. More...

 CPSGravity (float g = 9.8f)
virtual void serial (NLMISC::IStream &f)
 serialization. More...

 NLMISC_DECLARE_CLASS (CPSGravity)
virtual bool newElement (void)
 Inhrited from CPSLocatedBindable. we don't store additionnal information so it does nothing. More...

virtual void deleteElement (uint32 index)
 Inhrited from CPSLocatedBindable. we don't store additionnal information so it does nothing. More...

virtual void resize (uint32 size)
 Inhrited from CPSLocatedBindable. we don't store additionnal information so it does nothing. More...


Protected Attributes

float _G

Detailed Description

a gravity class.

Definition at line 102 of file ps_force.h.


Constructor & Destructor Documentation

NL3D::CPSGravity::CPSGravity ( float g = 9.8f ) [inline]
 

Definition at line 118 of file ps_force.h.


Member Function Documentation

NL3D::CPSGravity::NLMISC_DECLARE_CLASS ( CPSGravity )
 

void NL3D::CPSGravity::deleteElement ( uint32 index ) [inline, virtual]
 

Inhrited from CPSLocatedBindable. we don't store additionnal information so it does nothing.

Reimplemented from NL3D::CPSForce.

Definition at line 132 of file ps_force.h.

float NL3D::CPSGravity::getG ( void ) const [inline]
 

get the gravity strenght.

Definition at line 116 of file ps_force.h.

bool NL3D::CPSGravity::newElement ( void ) [inline, virtual]
 

Inhrited from CPSLocatedBindable. we don't store additionnal information so it does nothing.

Reimplemented from NL3D::CPSForce.

Definition at line 129 of file ps_force.h.

void NL3D::CPSGravity::performMotion ( CAnimationTime ellapsedTime ) [virtual]
 

Compute the force on the targets.

Reimplemented from NL3D::CPSForce.

Definition at line 78 of file ps_force.cpp.

void NL3D::CPSGravity::resize ( uint32 size ) [inline, virtual]
 

Inhrited from CPSLocatedBindable. we don't store additionnal information so it does nothing.

Reimplemented from NL3D::CPSForce.

Definition at line 135 of file ps_force.h.

void NL3D::CPSGravity::serial ( NLMISC::IStream & f ) [virtual]
 

serialization.

Reimplemented from NL3D::CPSForce.

Definition at line 179 of file ps_force.cpp.

void NL3D::CPSGravity::setG ( float g ) [inline]
 

set the gravity strenght.

Definition at line 113 of file ps_force.h.

void NL3D::CPSGravity::show ( CAnimationTime ellapsedTime ) [virtual]
 

Show the force (edition mode).

Reimplemented from NL3D::CPSForce.

Definition at line 106 of file ps_force.cpp.


Member Data Documentation

float NL3D::CPSGravity::_G [protected]
 

Definition at line 139 of file ps_force.h.


The documentation for this class was generated from the following files: