Documentation


X3DTK::Qt::MassSpringEngineQt Class Reference

#include <massSpringEngineGUI.h>

Inheritance diagram for X3DTK::Qt::MassSpringEngineQt:

MassSpringEngineDesigner List of all members.

Detailed Description

Control widget for an animal::MassSpringEngine.

Definition at line 17 of file massSpringEngineGUI.h.

Public Slots

void setIntegrationMethod (int methodID)
 Set the integration method of the MassSpringSolver.

void setMaxCGiterations (int maxvalue)
 Set the maximum number of conjugate gradient iterations in the implicit integration.

void setImplicitEulerDampingRatio (float r)
 Set the damping ratio in implicit euler.

void setImplicitEulerDividerThreshold (float r)
 Set the divider threshold in implicit euler.

void setIsotropy (int isotropy)
 Set the percentage of isotropy in the implicit Euler method.

void setMmidSubsteps (int nb)
 Set the number of substeps in the modified midpoint method.

void setExponentialDamping (float value)
 Set the value of the exponential damping.

void toggleExponentialDamping (bool)
 Toggle the use of the exponential damping.

void toggleGravity (bool)
 Apply gravity.

void setXgravity (float)
 Set the value of the gravity along x.

void setYgravity (float)
 Set the value of the gravity along y.

void setZgravity (float)
 Set the value of the gravity along z.

void setThresholdDistance (float value)
 Set the value of the distance threshold.

void setCompressed_ok (bool)
 Apply colour of elongated springs.

void setElongated_ok (bool)
 Apply colour of compressed springs.

void setDisplayMassSpring (bool)
 display the massSprings and enable the mass_spring collour check_box

void setPointWidth (int w)
 change point size

void setLineWidth (int w)
 change line width

void toggleDebugInfo (bool)
 show debug info


Signals

void changed ()

Public Member Functions

 MassSpringEngineQt (AMassSpringEngine *massSpring)
 Constructor.

 ~MassSpringEngineQt ()
 Destructor.


Protected Attributes

AMassSpringEngine_massSpringEngine


Constructor & Destructor Documentation

X3DTK::Qt::MassSpringEngineQt::MassSpringEngineQt AMassSpringEngine massSpring  ) 
 

Constructor.

Definition at line 14 of file massSpringEngineGUI.cpp.

References _massSpringEngine, X3DTK::AMassSpringEngine, animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real >::dampingRatio(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_compressed_ok(), animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::get_debugInfo(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_displayMassSpring(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_elongated_ok(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_exponentialDamping(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_gravity(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_lineWidth(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_pointSize(), animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::get_thresholdDistance(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_useExponentialDamping(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_useGravity(), animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::getIsotropy(), animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::getMethod(), main(), animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real >::maxCGiterations(), animal::OdeSolver< t_Positions, t_Vector, t_Real >::MMIDsteps(), setCompressed_ok(), setDisplayMassSpring(), setElongated_ok(), setExponentialDamping(), setImplicitEulerDampingRatio(), setImplicitEulerDividerThreshold(), setIntegrationMethod(), setIsotropy(), setLineWidth(), setMaxCGiterations(), setMmidSubsteps(), setPointWidth(), setThresholdDistance(), setXgravity(), setYgravity(), setZgravity(), animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real >::smallDenominatorThreshold(), toggleDebugInfo(), toggleExponentialDamping(), and toggleGravity().

X3DTK::Qt::MassSpringEngineQt::~MassSpringEngineQt  ) 
 

Destructor.

Definition at line 144 of file massSpringEngineGUI.cpp.


Member Function Documentation

void X3DTK::Qt::MassSpringEngineQt::changed  )  [signal]
 

Referenced by setCompressed_ok(), setDisplayMassSpring(), setElongated_ok(), setExponentialDamping(), setImplicitEulerDampingRatio(), setImplicitEulerDividerThreshold(), setIntegrationMethod(), setIsotropy(), setLineWidth(), setMaxCGiterations(), setMmidSubsteps(), setPointWidth(), setThresholdDistance(), setXgravity(), setYgravity(), setZgravity(), toggleDebugInfo(), toggleExponentialDamping(), and toggleGravity().

void X3DTK::Qt::MassSpringEngineQt::setCompressed_ok bool   )  [slot]
 

Apply colour of elongated springs.

Definition at line 265 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_compressed_ok().

Referenced by MassSpringEngineQt(), and setDisplayMassSpring().

void X3DTK::Qt::MassSpringEngineQt::setDisplayMassSpring bool   )  [slot]
 

display the massSprings and enable the mass_spring collour check_box

Definition at line 279 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_displayMassSpring(), setCompressed_ok(), and setElongated_ok().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setElongated_ok bool   )  [slot]
 

Apply colour of compressed springs.

Definition at line 272 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_elongated_ok().

Referenced by MassSpringEngineQt(), and setDisplayMassSpring().

void X3DTK::Qt::MassSpringEngineQt::setExponentialDamping float  value  )  [slot]
 

Set the value of the exponential damping.

Definition at line 211 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_exponentialDamping().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setImplicitEulerDampingRatio float  r  )  [slot]
 

Set the damping ratio in implicit euler.

Definition at line 195 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real >::setDampingRatio().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setImplicitEulerDividerThreshold float  r  )  [slot]
 

Set the divider threshold in implicit euler.

Definition at line 203 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real >::setSmallDenominatorThreshold().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setIntegrationMethod int  methodID  )  [slot]
 

Set the integration method of the MassSpringSolver.

Definition at line 149 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::getMethod(), and animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::setMethod().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setIsotropy int  isotropy  )  [slot]
 

Set the percentage of isotropy in the implicit Euler method.

Definition at line 179 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::setIsotropy().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setLineWidth int  w  )  [slot]
 

change line width

Definition at line 297 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_lineWidth().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setMaxCGiterations int  maxvalue  )  [slot]
 

Set the maximum number of conjugate gradient iterations in the implicit integration.

Definition at line 171 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real >::setMaxCGiterations().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setMmidSubsteps int  nb  )  [slot]
 

Set the number of substeps in the modified midpoint method.

Definition at line 187 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::OdeSolver< t_Positions, t_Vector, t_Real >::setMMIDsteps().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setPointWidth int  w  )  [slot]
 

change point size

Definition at line 290 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_pointSize().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setThresholdDistance float  value  )  [slot]
 

Set the value of the distance threshold.

Definition at line 258 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::set_thresholdDistance().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setXgravity float   )  [slot]
 

Set the value of the gravity along x.

Definition at line 233 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_gravity(), and animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_gravity().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setYgravity float   )  [slot]
 

Set the value of the gravity along y.

Definition at line 241 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_gravity(), and animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_gravity().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::setZgravity float   )  [slot]
 

Set the value of the gravity along z.

Definition at line 249 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::get_gravity(), and animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_gravity().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::toggleDebugInfo bool   )  [slot]
 

show debug info

Definition at line 304 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::set_debugInfo().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::toggleExponentialDamping bool   )  [slot]
 

Toggle the use of the exponential damping.

Definition at line 219 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_useExponentialDamping().

Referenced by MassSpringEngineQt().

void X3DTK::Qt::MassSpringEngineQt::toggleGravity bool   )  [slot]
 

Apply gravity.

Definition at line 227 of file massSpringEngineGUI.cpp.

References _massSpringEngine, changed(), and animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_useGravity().

Referenced by MassSpringEngineQt().


Member Data Documentation

AMassSpringEngine* X3DTK::Qt::MassSpringEngineQt::_massSpringEngine [protected]
 

Definition at line 89 of file massSpringEngineGUI.h.

Referenced by MassSpringEngineQt(), setCompressed_ok(), setDisplayMassSpring(), setElongated_ok(), setExponentialDamping(), setImplicitEulerDampingRatio(), setImplicitEulerDividerThreshold(), setIntegrationMethod(), setIsotropy(), setLineWidth(), setMaxCGiterations(), setMmidSubsteps(), setPointWidth(), setThresholdDistance(), setXgravity(), setYgravity(), setZgravity(), toggleDebugInfo(), toggleExponentialDamping(), and toggleGravity().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:34 2004 by doxygen 1.3.6