#include <OMKFixedPoint.h>
Inheritance diagram for OMK::FixedPoint:
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) |
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
}
}
To move a position see example in KeyEmitterExtensionT.
Definition at line 62 of file OMKFixedPoint.h.
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.
[in] | node | the root node of the configuration parameter. |
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 }
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().
Documentation generated on Mon Jun 9 11:46:03 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |