OMK::FixedPoint Class Reference
[Simulated ojects]

This Simulated object give a position in the space. More...

#include <OMKFixedPoint.h>

Inheritance diagram for OMK::FixedPoint:

Inheritance graph
[legend]
Collaboration diagram for OMK::FixedPoint:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

virtual void computeParameters ()
 This part of the compute methods computes the associated data.
virtual bool loadParameters (const ConfigurationParameterDescriptor *node)
 Configuration parameters loader of ExtensibleSimulatedObject.

Protected Attributes

OMK::AttributeT< OMK::Type::Transform_refPosition
 The "RefPosition" attribute.

Private Member Functions

 DECLARE_OBJECT_FACTORY (FixedPoint)

Detailed Description

This Simulated object give a position in the space.

This object defines a position in the space. The configuration is a position which is defined by a Transform (see ParametersAccessor to see how to define a Transform in a configuration file). Example:

object1
{
  Class FixedPoint
  Scheduling
  {
    ...
  }
  Extensions
  {
    ...
  }
  UserParams
  {
    Position [[-30 -30 -400]] // The position is a OMK::Type::Transform
  }
}
This object can be used to define the position of a visual object.

To move a position see example in KeyEmitterExtensionT.

Definition at line 62 of file OMKFixedPoint.h.


Member Function Documentation

OMK::FixedPoint::DECLARE_OBJECT_FACTORY ( FixedPoint   )  [private]

void FixedPoint::computeParameters (  )  [protected, virtual]

This part of the compute methods computes the associated data.

The inputs and outputs should work with associated data, you should use these associated data.

Reimplemented from OMK::ExtensibleSimulatedObject.

Definition at line 52 of file OMKFixedPoint.cpp.

References OMK::SimplePoint::_position, _refPosition, OMK::IAttributeT< PrmType, ModelType, AccessorType >::get(), and OMK::IAttributeT< PrmType, ModelType, AccessorType >::set().

00053 {
00054   _position.set( _refPosition.get() ) ;
00055 }

bool FixedPoint::loadParameters ( const ConfigurationParameterDescriptor node  )  [protected, virtual]

Configuration parameters loader of ExtensibleSimulatedObject.

Parameters:
[in] node the root node of the configuration parameter.
Returns:
true if all needed parameters can be read.
Reads in the configuration node the values to set the attributs. No data or output have been declared, this method does nothing.

Reimplemented from OMK::ExtensibleSimulatedObject.

Definition at line 45 of file OMKFixedPoint.cpp.

References OMK::SimplePoint::_position, _refPosition, OMK::IAttributeT< PrmType, ModelType, AccessorType >::get(), OMK::ExtensibleSimulatedObject::loadParameters(), and OMK::IAttributeT< PrmType, ModelType, AccessorType >::set().

00046 {
00047   bool ok = SimplePoint::loadParameters( node ) ;
00048   _refPosition.set( _position.get() ) ;
00049   return ok ;
00050 }


Member Data Documentation

OMK::AttributeT< OMK::Type::Transform > OMK::FixedPoint::_refPosition [protected]

The "RefPosition" attribute.

Definition at line 69 of file OMKFixedPoint.h.

Referenced by computeParameters(), and loadParameters().


logo OpenMask

Documentation generated on Mon Jun 9 11:46:03 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007