00001 #ifndef OMK_OFFSETEXTENSION_H 00002 #define OMK_OFFSETEXTENSION_H 00003 00004 #include "OMKAddOn.h" 00005 #include "OMKExtension.h" 00006 #include "OMKTransformType.h" 00007 namespace OMK 00008 { 00009 00049 class OMKADDON_API PreOffsetExtension: 00050 public OMK::ExtensionT< ExtensibleSimulatedObject > 00051 { 00052 public: 00055 DECLARE_EXTENSION_FACTORY( PreOffsetExtension ) ; 00058 00059 protected: 00063 virtual bool loadExtensionParameters( const ConfigurationParameterDescriptor * node ) ; 00065 00066 00067 00068 00069 00070 virtual void preComputeParameters() ; 00072 00073 00074 IAccessorT< OMK::Type::Transform >* _attributeAccessor ; 00077 AttributeT< OMK::Type::Transform > _offset ; 00079 bool _post ; 00081 bool _ignoreRotate ; 00083 bool _ignoreScale ; 00084 }; 00085 00086 class OMKADDON_API PostOffsetExtension: 00087 public OMK::PreOffsetExtension 00088 { 00089 public: 00092 DECLARE_EXTENSION_FACTORY( PostOffsetExtension ) ; 00095 00096 protected: 00098 00099 00100 00101 00102 00103 virtual void preComputeParameters() {} 00106 virtual void postComputeParameters() { OMK::PreOffsetExtension::preComputeParameters() ; } 00108 }; 00109 00110 } // namespace OMK 00111 00112 #endif // OMK_OFFSETEXTENSION_H
Documentation generated on Mon Jun 9 11:45:57 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |