Changeset 2969 for code/branches/weapons/src/orxonox/objects/worldentities
- Timestamp:
- May 11, 2009, 3:58:38 PM (16 years ago)
- Location:
- code/branches/weapons/src/orxonox/objects/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/worldentities/Billboard.cc
r2896 r2969 47 47 this->material_ = ""; 48 48 this->colour_ = ColourValue::White; 49 // this->rotation_ = 0; 49 50 50 51 this->registerVariables(); … … 66 67 XMLPortParam(Billboard, "material", setMaterial, getMaterial, xmlelement, mode); 67 68 XMLPortParam(Billboard, "colour", setColour, getColour, xmlelement, mode).defaultValues(ColourValue::White); 69 // XMLPortParam(Billboard, "rotation", setRotation, getRotation, xmlelement, mode).defaultValues(0); 68 70 } 69 71 … … 72 74 registerVariable(this->material_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial)); 73 75 registerVariable(this->colour_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedColour)); 76 // registerVariable(this->rotation_, variableDirection::toclient, new NetworkCallback<Billboard>(this, &Billboard::changedRotation)); 74 77 } 75 78 … … 87 90 this->attachOgreObject(this->billboard_.getBillboardSet()); 88 91 this->billboard_.setVisible(this->isVisible()); 92 // this->changedRotation(); 89 93 } 90 94 } … … 110 114 this->billboard_.setColour(this->colour_); 111 115 } 116 117 /* 118 void Billboard::changedRotation() 119 { 120 if (this->billboard_.getBillboardSet()) 121 this->billboard_.getBillboardSet()->setRotation(this->rotation_); 122 } 123 */ 112 124 113 125 void Billboard::changedVisibility() -
code/branches/weapons/src/orxonox/objects/worldentities/Billboard.h
r2826 r2969 61 61 inline const ColourValue& getColour() const 62 62 { return this->colour_; } 63 63 /* 64 inline void setRotation(const Radian& rotation) 65 { this->rotation_ = rotation; this->changedRotation(); } 66 inline const Radian& getRotation() const 67 { return this->rotation_; } 68 */ 64 69 virtual void setTeamColour(const ColourValue& colour) 65 70 { this->setColour(colour); } … … 73 78 private: 74 79 void changedMaterial(); 80 // void changedRotation(); 75 81 76 82 BillboardSet billboard_; 77 83 std::string material_; 78 84 ColourValue colour_; 85 // Radian rotation_; 79 86 }; 80 87 }
Note: See TracChangeset
for help on using the changeset viewer.