OMKFixedPoint.cpp

Go to the documentation of this file.
00001 /************************************************************************/
00002 /* This file is part of openMask(c) INRIA, CNRS, Universite de Rennes 1 */
00003 /* 1993-2002, thereinafter the Software                                 */
00004 /*                                                                      */
00005 /* The Software has been developped within the Siames Project.          */
00006 /* INRIA, the University of Rennes 1 and CNRS jointly hold intellectual */
00007 /* property rights                                                      */
00008 /*                                                                      */
00009 /* The Software has been registered with the Agence pour la Protection  */
00010 /* des Programmes (APP) under registration number                       */
00011 /* IDDN.FR.001.510008.00.S.P.2001.000.41200                             */
00012 /*                                                                      */
00013 /* This file may be distributed under the terms of the Q Public License */
00014 /* version 1.0 as defined by Trolltech AS of Norway and appearing in    */
00015 /* the file LICENSE.QPL included in the packaging of this file.         */
00016 /*                                                                      */
00017 /* Licensees holding valid specific licenses issued by INRIA, CNRS or   */
00018 /* Universite Rennes 1 for the software may use this file in            */
00019 /* acordance with that specific license                                 */
00020 /************************************************************************/
00021 
00022 #include "OMKFixedPoint.h"
00023 #include "OMKTracer.h"
00024 #include "OMKAttribute.inl"
00025 #include "OMKTransformType.h"
00026 
00027 using namespace OMK ;
00028 using namespace OMK::Type ;
00029 
00030 //-------------------------------------------------------------------------
00031 REGISTER_OBJECT_FACTORY( FixedPoint, "FixedPoint" ) ;
00032 //-----------------------------------------------------------------------------
00033 FixedPoint::FixedPoint( Controller& ctrl, const ObjectDescriptor& objectDescriptor )
00034 : SimplePoint( ctrl, objectDescriptor ),
00035   _refPosition( "RefPosition", Transform( Wm4::Vector3f::ZERO ) )
00036 {
00037   addAttribute( _refPosition ) ;
00038 }
00039 
00040 //-----------------------------------------------------------------------------
00041 FixedPoint::~FixedPoint()
00042 {
00043 }
00044 //-----------------------------------------------------------------------------
00045 bool FixedPoint::loadParameters( const ConfigurationParameterDescriptor * node ) 
00046 {
00047   bool ok = SimplePoint::loadParameters( node ) ;
00048   _refPosition.set( _position.get() ) ;
00049   return ok ;
00050 }
00051 //-----------------------------------------------------------------------------
00052 void FixedPoint::computeParameters() 
00053 {
00054   _position.set( _refPosition.get() ) ;
00055 }
00056 //-----------------------------------------------------------------------------
00057 
00058 

logo OpenMask

Documentation generated on Mon Jun 9 11:45:56 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007