OMKAddAnimatorPrm.h

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 
00023 #if !defined _ADDANIMATORPRM_H_
00024 #define _ADDANIMATORPRM_H_
00025 
00026 #include "OMKBase.h" 
00027 #include <string> 
00028 #include "OMKConfigurationParameterDescriptor.h"
00029 #include "OMKName.h"
00030 #include "OMKVis.h"
00031 
00032 namespace OMK
00033 { 
00034 class SimulatedObject ; 
00035 class ConfigurationParameterDescriptor ;
00036 namespace Type
00037 { 
00038 
00039 
00159 class OMKVIS_API AddAnimatorPrm
00160 : public Base
00161 {
00162 public:
00164 
00165 
00166   AddAnimatorPrm();
00168   AddAnimatorPrm( const AddAnimatorPrm& ref ) ;
00170   AddAnimatorPrm( const Name& objectName,
00171                   const Name& classId,
00172                   const Name& visualObjectName,
00173                   const Name& VisuName,
00174                   const ConfigurationParameterDescriptor* configParam ) ;
00176   virtual ~AddAnimatorPrm() ;
00178 
00180 
00181 public:
00183   virtual void resetDefaultValues() ;
00195   virtual bool loadParameters( const ConfigurationParameterDescriptor * node, 
00196                                const std::string& prefix = "", 
00197                                SimulatedObject* p = 0 ) ;
00198 protected:
00200   bool innerParametersLoader( const ConfigurationParameterDescriptor * node, 
00201                               const std::string& prefix = "", 
00202                               SimulatedObject* p = 0 ) ;
00204 
00206 
00207 public:
00209   void setObjectName( const Name& objectName ) { _objectName = objectName ; }
00211   const Name& getObjectName() const { return _objectName ; }
00212 
00214   void setClassId( const Name& classId ) { _classId = classId ; }
00216   const Name& getClassId() const { return _classId ; }
00217 
00219   void setVisualObjectName( const Name& visualObjectName ) { _visualObjectName = visualObjectName ; }
00221   const Name& getVisualObjectName() const { return _visualObjectName ; }
00222 
00224   void setVisuName( const Name& VisuName ) { _visuName = VisuName ; }
00226   const Name& getVisuName() const { return _visuName ; }
00227 
00229   void setConfigParam( const ConfigurationParameterDescriptor* configParam ) { _configParam = configParam ; }
00231   const ConfigurationParameterDescriptor* getConfigParam() const { return _configParam ; }
00233 
00235 
00236 
00237   bool operator == ( const AddAnimatorPrm& ref ) const { return !( *this != ref ) ; } 
00239   bool operator != ( const AddAnimatorPrm& ref ) const ;
00241   AddAnimatorPrm& operator = ( const AddAnimatorPrm& ref ) ;
00243   
00245 
00246 public:
00248   virtual void insertInStream( std::ostream& = std::cout ) const ;
00250   virtual void extract       ( std::istream& = std::cin  ) ;
00251 
00253   virtual void pack  ( OutgoingSynchronisationMessage& out ) const ;
00255   virtual void unpack( IncomingSynchronisationMessage& in  ) ;
00256 
00258   virtual PolatorNT* createPolator() ;
00260 protected:
00262   void _copy( const AddAnimatorPrm& ref ) ;
00263   
00265 
00266 
00267 
00268 
00269   Name _objectName ;
00273   Name _classId ;
00277   Name _visualObjectName ;
00281   Name _visuName ;
00285   const ConfigurationParameterDescriptor* _configParam ;
00287 } ;
00288 } // namespace Type
00289 } // namespace OMK
00290 #endif // defined _ADDANIMATORPRM_H_

logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007