vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CopyProperties.h
Go to the documentation of this file.
1 #ifndef COPYPROPERTIES_H
2 #define COPYPROPERTIES_H
3 
4 #include <vrecko/Ability.h>
5 
6 using namespace vrecko;
7 
8 namespace APObjectUtils
9 {
10 
11 // Defines for CopyProperties::dwCopiedProperties / setProperties() / getProperties()
12 #define COPYPROP_GEOMETRY_COPY 0x00000001
13  // Copy geometry from the original EO.
14 #define COPYPROP_GEOMETRY_REF 0x00000002
15  // Use the original geometry (usage by reference pointer)
16 #define COPYPROP_TRANSFORMATION 0x00000004
17  // Copy the original object's transformation EVERY FRAME.
18 
19 
20 class CopyProperties: public Ability
21 {
22 public:
24  //virtual ~CopyProperties();
25 
26  virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *pParametersNode);
27  virtual void update();
28 
29 protected:
30  unsigned long dwCopyEO;
31  // id of the original object
32  unsigned int dwCopiedProperties;
33  // Combination of COPYPROP_*
34 
35  void setProperties(unsigned int dwNewCopiedProperties);
36  // Combination of COPYPROP_*
37  unsigned int getProperties(void) { return dwCopiedProperties; }
38  // Combination of COPYPROP_*
39 
40 };
41 
42 }
43 
44 #endif