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 _ADDVISUALOBJECTPRM_H_ 00024 #define _ADDVISUALOBJECTPRM_H_ 00025 00026 #include "OMKBase.h" 00027 #include <string> 00028 #include "OMKName.h" 00029 #include "OMKVis.h" 00030 00031 namespace OMK 00032 { 00033 class SimulatedObject ; 00034 class ConfigurationParameterDescriptor ; 00035 namespace Type 00036 { 00037 00158 class OMKVIS_API AddVisualObjectPrm : public Base 00159 { 00160 public: 00162 00163 00164 AddVisualObjectPrm(); 00166 AddVisualObjectPrm( const AddVisualObjectPrm& ref ) ; 00168 AddVisualObjectPrm( const Name& objectName, 00169 const Name& classId, 00170 const Name& VisuName, 00171 const ConfigurationParameterDescriptor* configParam ) ; 00173 virtual ~AddVisualObjectPrm() ; 00175 00177 00178 public: 00180 virtual void resetDefaultValues() ; 00192 virtual bool loadParameters( const ConfigurationParameterDescriptor * node, 00193 const std::string& prefix = "", 00194 SimulatedObject* p = 0 ) ; 00195 protected: 00197 bool innerParametersLoader( const ConfigurationParameterDescriptor * node, 00198 const std::string& prefix = "", 00199 SimulatedObject* p = 0 ) ; 00201 00203 00204 public: 00206 void setObjectName( const Name& objectName ) { _objectName = objectName ; } 00208 const Name& getObjectName() const { return _objectName ; } 00209 00211 void setClassId( const Name& classId ) { _classId = classId ; } 00213 const Name& getClassId() const { return _classId ; } 00214 00216 void setVisuName( const Name& VisuName ) { _visuName = VisuName ; } 00218 const Name& getVisuName() const { return _visuName ; } 00219 00221 void setConfigParam( const ConfigurationParameterDescriptor* configParam ) { _configParam = configParam ; } 00223 const ConfigurationParameterDescriptor* getConfigParam() const { return _configParam ; } 00225 00227 00228 00229 bool operator == ( const AddVisualObjectPrm& ref ) const { return !( *this != ref ) ; } 00231 bool operator != ( const AddVisualObjectPrm& ref ) const ; 00233 AddVisualObjectPrm& operator = ( const AddVisualObjectPrm& ref ) ; 00235 00237 00238 public: 00240 virtual void insertInStream( std::ostream& = std::cout ) const ; 00242 virtual void extract ( std::istream& = std::cin ) ; 00243 00245 virtual void pack ( OutgoingSynchronisationMessage& out ) const ; 00247 virtual void unpack( IncomingSynchronisationMessage& in ) ; 00248 00250 virtual PolatorNT* createPolator() ; 00252 protected: 00254 void _copy( const AddVisualObjectPrm& ref ) ; 00255 00257 00258 00259 00260 00261 Name _objectName ; 00265 Name _classId ; 00269 Name _visuName ; 00273 const ConfigurationParameterDescriptor* _configParam ; 00275 } ; 00276 } // namespace Type 00277 } // namespace OMK 00278 #endif // defined _ADDVISUALOBJECTPRM_H_
Documentation generated on Mon Jun 9 11:45:55 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |